Exemplo 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);
 }
Exemplo 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);
 }
Exemplo n.º 3
0
 public BlockFrostedChest(String name, boolean dropsSnowflake) {
   super(Material.wood);
   setCreativeTab(DivineRPGTabs.blocks);
   setStepSound(soundTypeGlass);
   setTextureName("ice");
   setUnlocalizedName(name);
   GameRegistry.registerBlock(this, name);
   LangRegistry.addBlock(this);
   this.dropsSnowflake = dropsSnowflake;
 }