SHARE
TWEET

Untitled

a guest Aug 1st, 2017 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.rbs.slurpiesdongles.init;
  2.  
  3. import com.rbs.slurpiesdongles.SlurpiesDongles;
  4. import com.rbs.slurpiesdongles.armor.ArmorRubyArmor;
  5. import com.rbs.slurpiesdongles.armor.ArmorSapphireArmor;
  6. import com.rbs.slurpiesdongles.items.*;
  7. import net.minecraft.client.Minecraft;
  8. import net.minecraft.client.renderer.block.model.ModelResourceLocation;
  9. import net.minecraft.init.Blocks;
  10. import net.minecraft.inventory.EntityEquipmentSlot;
  11. import net.minecraft.item.Item;
  12. import net.minecraft.item.ItemSeeds;
  13. import net.minecraftforge.registries.IForgeRegistry;
  14.  
  15. /**
  16.  * Created by Consular on 7/19/2017.
  17.  */
  18. public class SDItems {
  19.  
  20.  
  21.  
  22.     //armor
  23.     /*
  24.     public static Item rubyHelmet = new ArmorRubyArmor("ruby_helmet", ConfigPreInit.ruby_armor, "ruby", EntityEquipmentSlot.HEAD);
  25.     public static Item rubyChestplate = new ArmorRubyArmor("ruby_chestplate", ConfigPreInit.ruby_armor, "ruby", EntityEquipmentSlot.CHEST);
  26.     public static Item rubyLeggings = new ArmorRubyArmor("ruby_leggings", ConfigPreInit.ruby_armor, "ruby", EntityEquipmentSlot.LEGS);
  27.     public static Item rubyBoots = new ArmorRubyArmor("ruby_boots", ConfigPreInit.ruby_armor, "ruby", EntityEquipmentSlot.FEET);
  28.     */
  29.     public static Item sapphireHelmet = new ArmorSapphireArmor("sapphire_helmet", ConfigPreInit.sapphireArmor, "sapphire",EntityEquipmentSlot.HEAD);
  30.     public static Item sapphireChestplate = new ArmorSapphireArmor("sapphire_chestplate", ConfigPreInit.sapphireArmor, "sapphire", EntityEquipmentSlot.CHEST);
  31.     public static Item sapphireLeggings = new ArmorSapphireArmor("sapphire_leggings", ConfigPreInit.sapphireArmor, "sapphire", EntityEquipmentSlot.LEGS);
  32.     public static Item sapphireBoots = new ArmorSapphireArmor("sapphire_boots", ConfigPreInit.sapphireArmor, "sapphire", EntityEquipmentSlot.FEET);
  33.  
  34.  
  35.     //Dust
  36.     public static Item blueGlowstoneDust = new ItemBase("blue_glowstone_dust");
  37.     public static Item grayGlowstoneDust = new ItemBase("gray_glowstone_dust");
  38.     public static Item greenGlowstoneDust = new ItemBase("green_glowstone_dust");
  39.     public static Item orangeGlowstoneDust = new ItemBase("orange_glowstone_dust");
  40.     public static Item pinkGlowstoneDust = new ItemBase("pink_glowstone_dust");
  41.     public static Item purpleGlowstoneDust = new ItemBase("purple_glowstone_dust");
  42.     public static Item redGlowstoneDust = new ItemBase("red_glowstone_dust");
  43.  
  44.     //Items
  45.     public static Item blender = new ItemBlender("blender");
  46.     public static Item hammer = new ItemBase("hammer");
  47.     public static Item hotWater = new ItemBase("hot_water");
  48.     public static Item knife = new ItemBase("knife");
  49.     public static Item popsSign = new ItemBase("pops_sign");
  50.     public static Item timeStaff = new ItemTimeStaff("time_staff");
  51.     public static Item topazHandle = new ItemBase("topaz_handle");
  52.     public static Item VMPUpgrade = new ItemBase("vmp_upgrade");
  53.     public static Item repairItem = new DaRepairItem("repair");
  54.  
  55.  
  56.     //Gems
  57.     public static Item lignite = new ItemLignite("lignite");
  58.     public static Item ruby = new ItemBase("ruby");
  59.     public static Item sapphire = new ItemBase("sapphire");
  60.     public static Item hardenedTopaz = new ItemBase("hardened_topaz");
  61.     public static Item topaz = new ItemBase("topaz");
  62.  
  63.     //Seeds
  64.     public static ItemSeeds cornSeed = new ItemCornSeed("corn_seed", SDBlocks.cornCrop, Blocks.FARMLAND);
  65.  
  66.  
  67.     public static void register(IForgeRegistry<Item> registry) {
  68.         registry.registerAll(
  69.                 //armor
  70.                 //ruby_helmet,
  71.                 //ruby_chestplate,
  72.                 //ruby_leggings,
  73.                 //ruby_boots,
  74.                 sapphireHelmet,
  75.                 sapphireChestplate,
  76.                 sapphireLeggings,
  77.                 sapphireBoots,
  78.  
  79.                 //Dust
  80.                 blueGlowstoneDust,
  81.                 grayGlowstoneDust,
  82.                 greenGlowstoneDust,
  83.                 orangeGlowstoneDust,
  84.                 pinkGlowstoneDust,
  85.                 purpleGlowstoneDust,
  86.                 redGlowstoneDust,
  87.  
  88.                 //Items
  89.                 blender.setContainerItem(SDItems.blender),
  90.                 hammer,
  91.                 hotWater,
  92.                 knife.setContainerItem(SDItems.knife),
  93.                 popsSign,
  94.                 timeStaff,
  95.                 topazHandle,
  96.                 VMPUpgrade,
  97.                 repairItem,
  98.  
  99.                 //Gems
  100.                 lignite,
  101.                 ruby,
  102.                 sapphire,
  103.                 hardenedTopaz,
  104.                 topaz,
  105.  
  106.                 //Seeds
  107.                 cornSeed
  108.  
  109.         );
  110.  
  111.     }
  112.     public static void registerModels() {
  113.         //Armor
  114.         //registerRender(ruby_helmet);
  115.         //registerRender(ruby_chestplate);
  116.        // registerRender(ruby_leggings);
  117.        // registerRender(ruby_boots);
  118.         registerRender(sapphireHelmet);
  119.         registerRender(sapphireChestplate);
  120.         registerRender(sapphireLeggings);
  121.         registerRender(sapphireBoots);
  122.  
  123.         //Dust
  124.         registerRender(blueGlowstoneDust);
  125.         registerRender(grayGlowstoneDust);
  126.         registerRender(greenGlowstoneDust);
  127.         registerRender(orangeGlowstoneDust);
  128.         registerRender(pinkGlowstoneDust);
  129.         registerRender(purpleGlowstoneDust);
  130.         registerRender(redGlowstoneDust);
  131.  
  132.         //Items
  133.         registerRender(blender);
  134.         registerRender(hammer);
  135.         registerRender(hotWater);
  136.         registerRender(knife);
  137.         registerRender(popsSign);
  138.         registerRender(timeStaff);
  139.         registerRender(topazHandle);
  140.         registerRender(VMPUpgrade);
  141.         registerRender(repairItem);
  142.  
  143.         //Gems
  144.         registerRender(lignite);
  145.         registerRender(ruby);
  146.         registerRender(sapphire);
  147.         registerRender(hardenedTopaz);
  148.         registerRender(topaz);
  149.  
  150.         //Seeds
  151.         registerRender(cornSeed);
  152.  
  153.  
  154.     }
  155.     public static void registerRender(Item item) {
  156.         Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(SlurpiesDongles.modId + ":" + item.getUnlocalizedName().substring(5), "inventory"));
  157.     }
  158. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top