Hi,
when i translate a spawn eggs with the function getTranslation, i don’t have the name of the entity. It’s normal ? or i need to use this :
public static Text getName(ItemStack item){ if(item.get(Keys.SPAWNABLE_ENTITY_TYPE).isPresent()) { return Text.builder(item.getTranslation()) .append(Text.of(" ")) .append(Text.of(item.get(Keys.SPAWNABLE_ENTITY_TYPE).get().getTranslation())) .build(); } return Text.of(item.getTranslation()); }
