Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package dem.tutorialmod.init;
- import dem.tutorialmod.init.tools.BetterItemAxe;
- import dem.tutorialmod.init.tools.BetterItemPickaxe;
- import dem.tutorialmod.init.tools.BetterItemShovel;
- import dem.tutorialmod.main.Reference;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.renderer.block.model.ModelResourceLocation;
- import net.minecraft.item.Item;
- import net.minecraft.item.Item.ToolMaterial;
- import net.minecraftforge.fml.common.registry.GameRegistry;
- public class BetterTools {
- public static Item PLATINUM_PICKAXE;
- public static Item DEMIUM_PICKAXE;
- public static Item OLLIUM_PICKAXE;
- public static Item PLATINUM_AXE;
- public static Item DEMIUM_AXE;
- public static Item OLLIUM_AXE;
- public static Item PLATINUM_SHOVEL;
- public static Item DEMIUM_SHOVEL;
- public static Item OLLIUM_SHOVEL;
- public static Item DIAMOND_PAXEL;
- public static Item GOLD_PAXEL;
- public static Item STONE_PAXEL;
- public static Item WOOD_PAXEL;
- public static Item IRON_PAXEL;
- public static Item PLATINUM_PAXEL;
- //public static Item OLLIUM_PAXEL;
- //public static Item DEMIUM_PAXEL;
- public static void init()
- {
- //remember to change better item to the tool V
- PLATINUM_PICKAXE = new BetterItemPickaxe(BetterToolMaterials.PLATINUM, "platinum_pickaxe");
- PLATINUM_AXE = new BetterItemAxe(BetterToolMaterials.PLATINUM, "platinum_axe");
- PLATINUM_SHOVEL = new BetterItemShovel(BetterToolMaterials.PLATINUM, "platinum_shovel");
- DEMIUM_PICKAXE = new BetterItemPickaxe(BetterToolMaterials.DEMIUM, "demium_pickaxe");
- DEMIUM_AXE = new BetterItemAxe(BetterToolMaterials.DEMIUM, "demium_axe");
- DEMIUM_SHOVEL = new BetterItemShovel(BetterToolMaterials.DEMIUM, "demium_shovel");
- OLLIUM_PICKAXE = new BetterItemPickaxe(BetterToolMaterials.OLLIUM, "ollium_pickaxe");
- OLLIUM_AXE = new BetterItemAxe(BetterToolMaterials.OLLIUM, "ollium_axe");
- OLLIUM_SHOVEL = new BetterItemShovel(BetterToolMaterials.OLLIUM, "ollium_shovel");
- DIAMOND_PAXEL = new TutorialItemPaxel(ToolMaterial.DIAMOND, "diamond_paxel");
- GOLD_PAXEL = new TutorialItemPaxel(ToolMaterial.GOLD, "gold_paxel");
- STONE_PAXEL = new TutorialItemPaxel(ToolMaterial.STONE, "stone_paxel");
- WOOD_PAXEL = new TutorialItemPaxel(ToolMaterial.WOOD, "wood_paxel");
- IRON_PAXEL = new TutorialItemPaxel(ToolMaterial.IRON, "iron_paxel"); //for loop
- PLATINUM_PAXEL = new TutorialItemPaxel(BetterToolMaterials.PLATINUM, "platinum_paxel");
- }
- public static void register()
- {
- registerItem(PLATINUM_PICKAXE);
- registerItem(PLATINUM_AXE);
- registerItem(PLATINUM_SHOVEL);
- registerItem(DEMIUM_PICKAXE);
- registerItem(DEMIUM_AXE);
- registerItem(DEMIUM_SHOVEL);
- registerItem(OLLIUM_PICKAXE);
- registerItem(OLLIUM_AXE);
- registerItem(OLLIUM_SHOVEL);
- registerItem(DIAMOND_PAXEL);
- registerItem(GOLD_PAXEL);
- registerItem(STONE_PAXEL);
- registerItem(WOOD_PAXEL);
- registerItem(IRON_PAXEL);
- registerItem(PLATINUM_PAXEL);
- //registerItem(OLLIUM_PAXEL);
- //registerItem(DEMIUM_PAXEL);
- }
- public static void registerItem(Item item)
- {
- GameRegistry.register(item);
- Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
- }
- //registerItem Start\\
- /*public static Item registerItem (Item item, String name)
- {
- return registerItem(item, name, null);
- }
- public static Item registerItem (Item item, String name, CreativeTabs tab)
- {
- GameRegistry.register(item, new ResourceLocation(Reference.MODID, name));
- return item;
- }*/
- //registerItem End\\
- }
Advertisement
Add Comment
Please, Sign In to add comment