Изменить высоту ItemDisplay customNameJAVA

Программисты JAVA общаются здесь
Anonymous
Изменить высоту ItemDisplay customName

Сообщение Anonymous »

Есть ли способ изменить высоту customName объекта ItemDisplay? Прямо сейчас customName ItemDisplay находится прямо в displayName моего плеера. Мой текущий код:
ItemDisplay crystalDisplay = player.getWorld().spawn(player.getLocation(), ItemDisplay.class, display -> {

display.setItemStack(itemStack);

Transformation transformation = display.getTransformation();
transformation.getScale().set(0.5f, 0.5f, 0.5f);
transformation.getTranslation().set(0f, 0.8f, 0f);
display.setTransformation(transformation);

display.setBillboard(Display.Billboard.CENTER);
display.setInvulnerable(true);
display.setCustomNameVisible(true);
display.customName(miniMessage.deserialize("HP"));

display.setInterpolationDuration(20);
display.setInterpolationDelay(0);

player_display.put(player.getUniqueId(), display);

});
player.addPassenger(spacer);
spacer.addPassenger(crystalDisplay);


Подробнее здесь: https://stackoverflow.com/questions/799 ... customname

Вернуться в «JAVA»