예제 #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);
 }
예제 #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);
 }
예제 #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;
 }