Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package rcpotatosoup.modsqaud.init;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.resources.model.ModelResourceLocation;
- import net.minecraft.item.Item;
- import net.minecraft.item.Item.ToolMaterial;
- import net.minecraft.item.ItemArmor.ArmorMaterial;
- import net.minecraftforge.common.util.EnumHelper;
- import net.minecraftforge.fml.common.registry.GameRegistry;
- import rcpotatosoup.modsqaud.ModSqaud;
- import rcpotatosoup.modsqaud.Reference;
- import rcpotatosoup.modsqaud.items.ItemModArmor;
- import rcpotatosoup.modsqaud.items.ItemModPickaxe;
- import rcpotatosoup.modsqaud.items.ItemModSword;
- public class sitems {
- public static Item chaos_gem;
- public static Item order_gem;
- public static Item chaos_core;
- public static Item order_core;
- public static Item chaos_fragment;
- public static Item order_fragment;
- public static Item magic_gem;
- public static Item enchanted_stick;
- public static Item feast;
- public static Item sword_of_order;
- public static Item sword_of_chaos;
- public static Item magic_wand;
- public static Item pickaxe_of_order;
- public static Item pickaxe_of_chaos;
- public static Item helmet_of_order;
- public static Item chestplate_of_order;
- public static Item leggings_of_order;
- public static Item boots_of_order;
- public static Item helmet_of_chaos;
- public static Item chestplate_of_chaos;
- public static Item leggings_of_chaos;
- public static Item boots_of_chaos;
- public static Item magic_hood;
- public static Item magic_cloak;
- public static Item magic_pants;
- public static Item magic_shoes;
- public static ToolMaterial chaos = EnumHelper.addToolMaterial("chaos", 6, 6666, 15.0F, 66.0F, 30);
- public static ToolMaterial order = EnumHelper.addToolMaterial("order", 7, 7777, 15.0F, 77.0F, 60);
- public static ToolMaterial magic = EnumHelper.addToolMaterial("magic", 10, 10000, 25.0F, 120.0F, 50);
- private static String chaos2;
- public static ArmorMaterial chaos1 = EnumHelper.addArmorMaterial("chaos1", chaos2, 6666, new int[] {3, 8, 6, 3}, (int) 30.0F);
- private static String order2;
- public static ArmorMaterial order1 = EnumHelper.addArmorMaterial("order1", order2, 7777, new int[] {3, 8, 6, 3}, (int) 60.0F);
- private static String magic2;
- public static ArmorMaterial magic1 = EnumHelper.addArmorMaterial("magic1", magic2, 10000, new int[] {3, 8, 6, 3}, (int) 50.0F);
- public static void init() {
- chaos_gem = new Item().setUnlocalizedName("chaos_gem").setCreativeTab(ModSqaud.tabModSqaud);
- order_gem = new Item().setUnlocalizedName("order_gem").setCreativeTab(ModSqaud.tabModSqaud);
- chaos_core = new Item().setUnlocalizedName("chaos_core").setCreativeTab(ModSqaud.tabModSqaud);
- order_core = new Item().setUnlocalizedName("order_core").setCreativeTab(ModSqaud.tabModSqaud);
- chaos_fragment = new Item().setUnlocalizedName("chaos_fragment").setCreativeTab(ModSqaud.tabModSqaud);
- order_fragment = new Item().setUnlocalizedName("order_fragment").setCreativeTab(ModSqaud.tabModSqaud);
- enchanted_stick = new Item().setUnlocalizedName("enchanted_stick").setCreativeTab(ModSqaud.tabModSqaud);
- feast = new Item().setUnlocalizedName("feast").setCreativeTab(ModSqaud.tabModSqaud);
- sword_of_chaos = new Item().setUnlocalizedName("sword_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- sword_of_order = new Item().setUnlocalizedName("sword_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- magic_wand = new Item().setUnlocalizedName("magic_wand").setCreativeTab(ModSqaud.tabModSqaud);
- pickaxe_of_order = new Item().setUnlocalizedName("pickaxe_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- pickaxe_of_chaos = new Item().setUnlocalizedName("pickaxe_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- helmet_of_order = new Item().setUnlocalizedName("helmet_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- chestplate_of_order = new Item().setUnlocalizedName("chestplate_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- leggings_of_order = new Item().setUnlocalizedName("leggings_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- boots_of_order = new Item().setUnlocalizedName("boots_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- helmet_of_chaos = new Item().setUnlocalizedName("helmet_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- chestplate_of_chaos = new Item().setUnlocalizedName("chestplate_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- leggings_of_chaos = new Item().setUnlocalizedName("leggings_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- boots_of_chaos = new Item().setUnlocalizedName("boots_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- magic_hood = new Item().setUnlocalizedName("magic_hood").setCreativeTab(ModSqaud.tabModSqaud);
- magic_cloak = new Item().setUnlocalizedName("magic_cloak").setCreativeTab(ModSqaud.tabModSqaud);
- magic_pants = new Item().setUnlocalizedName("magic_pants").setCreativeTab(ModSqaud.tabModSqaud);
- magic_shoes = new Item().setUnlocalizedName("magic_shoes").setCreativeTab(ModSqaud.tabModSqaud);
- }
- public static void register()
- {
- GameRegistry.registerItem(chaos_gem, chaos_gem.getUnlocalizedName().substring(5), "chaos_gem").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(order_gem, order_gem.getUnlocalizedName().substring(5), "order_gem").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(magic_gem, magic_gem.getUnlocalizedName().substring(5), "magic_gem").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(chaos_core, chaos_core.getUnlocalizedName().substring(5), "chaos_core").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(order_core, order_core.getUnlocalizedName().substring(5), "order_core").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(chaos_fragment, chaos_fragment.getUnlocalizedName().substring(5), "chaos_fragment").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(order_fragment, order_fragment.getUnlocalizedName().substring(5), "order_fragment").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(enchanted_stick, enchanted_stick.getUnlocalizedName().substring(5), "enchanted_stick").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(feast, feast.getUnlocalizedName().substring(5), "feast").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(sword_of_chaos = new ItemModSword("sword_of_chaos", chaos),sword_of_chaos.getUnlocalizedName().substring(5), "sword_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(sword_of_order = new ItemModSword("sword_of_order", order),sword_of_order.getUnlocalizedName().substring(5), "sword_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(magic_wand = new ItemModSword("magic_wand", magic),magic_wand.getUnlocalizedName().substring(5), "magic_wand").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(pickaxe_of_chaos = new ItemModPickaxe("pickaxe_of_chaos", chaos), pickaxe_of_chaos.getUnlocalizedName().substring(5), "pickaxe_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(pickaxe_of_order = new ItemModPickaxe("pickaxe_of_order", order), pickaxe_of_order.getUnlocalizedName().substring(5), "pickaxe_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(helmet_of_order = new ItemModArmor("helmet_of_order", order1, 1, 0),helmet_of_order.getUnlocalizedName().substring(5), "helmet_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(chestplate_of_order = new ItemModArmor("chestplate_of_order", order1, 1, 1),chestplate_of_order.getUnlocalizedName().substring(5), "chestplate_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(leggings_of_order = new ItemModArmor("leggings_of_order", order1, 2, 2),leggings_of_order.getUnlocalizedName().substring(5), "leggings_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(boots_of_order = new ItemModArmor("boots_of_order", order1, 1, 3),boots_of_order.getUnlocalizedName().substring(5), "boots_of_order").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(helmet_of_chaos = new ItemModArmor("helmet_of_chaos", chaos1, 1, 0),helmet_of_chaos.getUnlocalizedName().substring(5), "helmet_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(chestplate_of_chaos = new ItemModArmor("chestplate_of_chaos", chaos1, 1, 1),chestplate_of_chaos.getUnlocalizedName().substring(5), "chestplate_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(leggings_of_chaos = new ItemModArmor("leggings_of_chaos", chaos1, 2, 2),leggings_of_chaos.getUnlocalizedName().substring(5), "leggings_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(boots_of_chaos = new ItemModArmor("boots_of_chaos", chaos1, 1, 3),boots_of_chaos.getUnlocalizedName().substring(5), "boots_of_chaos").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(magic_hood = new ItemModArmor("magic_hood", magic1, 1, 0),magic_hood.getUnlocalizedName().substring(5), "magic_hood").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(magic_cloak = new ItemModArmor("magic_cloak", magic1, 1, 1),magic_cloak.getUnlocalizedName().substring(5), "magic_cloak").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(magic_pants = new ItemModArmor("magic_pants", magic1, 2, 2),magic_pants.getUnlocalizedName().substring(5), "magic_pants").setCreativeTab(ModSqaud.tabModSqaud);
- GameRegistry.registerItem(magic_shoes = new ItemModArmor("magic_shoes", magic1, 1, 3),magic_shoes.getUnlocalizedName().substring(5), "magic_shoes").setCreativeTab(ModSqaud.tabModSqaud);
- }
- public static void registerRenders()
- {
- registerRender(chaos_gem);
- registerRender(order_gem);
- registerRender(magic_gem);
- registerRender(chaos_core);
- registerRender(order_core);
- registerRender(chaos_fragment);
- registerRender(order_fragment);
- registerRender(enchanted_stick);
- registerRender(feast);
- registerRender(sword_of_order);
- registerRender(sword_of_chaos);
- registerRender(magic_wand);
- registerRender(pickaxe_of_order);
- registerRender(pickaxe_of_chaos);
- registerRender(helmet_of_order);
- registerRender(chestplate_of_order);
- registerRender(leggings_of_order);
- registerRender(boots_of_order);
- registerRender(helmet_of_chaos);
- registerRender(chestplate_of_chaos);
- registerRender(leggings_of_chaos);
- registerRender(boots_of_chaos);
- registerRender(magic_hood);
- registerRender(magic_cloak);
- registerRender(magic_pants);
- registerRender(magic_shoes);
- }
- public static void registerRender(Item item)
- {
- Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment