D
Still crashing, here is the class where it crashes
package com.TheRPGAdventurer.items;
import com.TheRPGAdventurer.blocks.BlockDragonBreedEgg;
import com.TheRPGAdventurer.entity.breeds.EnumDragonBreed;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.translation.I18n;
public class ItemDragonBreedEgg extends ItemBlock {
public static final ItemDragonBreedEgg INSTANCE = new ItemDragonBreedEgg();
public ItemDragonBreedEgg() {
super(BlockDragonBreedEgg.INSTANCE);
setMaxDamage(0);
setHasSubtypes(true);
}
@Override
public int getMetadata(int metadata) {
return metadata;
}
@Override
public String getItemStackDisplayName(ItemStack stack) {
EnumDragonBreed type = EnumDragonBreed.META_MAPPING.inverse().get(stack.getMetadata());
String breedName = I18n.translateToLocal("entity.RealmOfTheDragons.RealmOfTheDragon." + type.getName() + ".name");
return I18n.translateToLocalFormatted("item.dragonEgg.name", breedName);
}
}