Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }