public ItemModFood(int food, float sat, boolean wolfFood, String name) { super(food, sat, wolfFood); this.name = name; setCreativeTab(DivineRPGTabs.food); setTextureName(Reference.PREFIX + name); setUnlocalizedName(name); GameRegistry.registerItem(this, name); LangRegistry.addItem(this); }
public ItemModShovel(ToolMaterial tool, String name) { super(tool); this.name = name; setCreativeTab(DivineRPGTabs.tools); setTextureName(Reference.PREFIX + name); setUnlocalizedName(name); GameRegistry.registerItem(this, name); LangRegistry.addItem(this); }