Advertisement
Guest User

all da code

a guest
Jul 30th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.97 KB | None | 0 0
  1. package com.amoddev.mysticalkelpmod.util;
  2.  
  3. import com.amoddev.mysticalkelpmod.MysticalKelpMod;
  4. import com.amoddev.mysticalkelpmod.armor.MysticalKelpModArmorTier;
  5. import com.amoddev.mysticalkelpmod.items.ItemBase;
  6. import com.amoddev.mysticalkelpmod.tools.MysticalKelpModItemTier;
  7. import net.minecraft.inventory.EquipmentSlotType;
  8. import net.minecraft.item.*;
  9. import net.minecraftforge.fml.RegistryObject;
  10. import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
  11. import net.minecraftforge.registries.DeferredRegister;
  12. import net.minecraftforge.registries.ForgeRegistries;
  13.  
  14. public class ItemRegistryHandler {
  15.  
  16. public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS,MysticalKelpMod.MOD_ID);
  17.  
  18. public static void init() {
  19.  
  20. ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
  21.  
  22. }
  23.  
  24. //Items
  25.  
  26. public static final RegistryObject<Item> OPAL = ITEMS.register("opal", ItemBase::new);
  27. public static final RegistryObject<Item> PLATINUM = ITEMS.register("platinum", ItemBase::new);
  28. public static final RegistryObject<Item> CRUDE_PLATINUM = ITEMS.register("crude_platinum", ItemBase::new);
  29. public static final RegistryObject<Item> ACTINIUM = ITEMS.register("actinium", ItemBase::new);
  30. public static final RegistryObject<Item> HOLMIUM = ITEMS.register("holmium", ItemBase::new);
  31. public static final RegistryObject<Item> TUNGSTEN = ITEMS.register("tungsten", ItemBase::new);
  32.  
  33. public static final RegistryObject<Item> SODIUM = ITEMS.register("sodium", ItemBase::new);
  34.  
  35. public static final RegistryObject<Item> OPAL_TEA = ITEMS.register("opal_tea", ItemBase::new);
  36. public static final RegistryObject<Item> PLATINUM_TEA = ITEMS.register("platinum_tea", ItemBase::new);
  37. public static final RegistryObject<Item> ACTINIUM_TEA = ITEMS.register("actinium_tea", ItemBase::new);
  38. public static final RegistryObject<Item> HOLMIUM_TEA = ITEMS.register("holmium_tea", ItemBase::new);
  39. public static final RegistryObject<Item> TUNGSTEN_TEA = ITEMS.register("tungsten_tea", ItemBase::new);
  40. public static final RegistryObject<Item> SODIUM_TEA = ITEMS.register("sodium_tea", ItemBase::new);
  41.  
  42. public static final RegistryObject<Item> MYSTICALKELPITEM = ITEMS.register("mysticalkelpitem",ItemBase::new);
  43.  
  44. public static final RegistryObject<Item> DIAMOND_TEA = ITEMS.register("diamond_tea", ItemBase::new);
  45. public static final RegistryObject<Item> IRON_TEA = ITEMS.register("iron_tea", ItemBase::new);
  46. public static final RegistryObject<Item> QUARTZ_TEA = ITEMS.register("quartz_tea", ItemBase::new);
  47. public static final RegistryObject<Item> REDSTONE_TEA = ITEMS.register("redstone_tea", ItemBase::new);
  48. public static final RegistryObject<Item> GOLD_TEA = ITEMS.register("gold_tea", ItemBase::new);
  49.  
  50. public static final RegistryObject<Item> COIL = ITEMS.register("coil", ItemBase::new);
  51. public static final RegistryObject<Item> ELECTRON_TUBE = ITEMS.register("electron_tube", ItemBase::new);
  52. public static final RegistryObject<Item> PLATING = ITEMS.register("plating", ItemBase::new);
  53. public static final RegistryObject<Item> CASING = ITEMS.register("casing", ItemBase::new);
  54. public static final RegistryObject<Item> GLUE = ITEMS.register("glue", ItemBase::new);
  55. public static final RegistryObject<Item> KELP_STRING = ITEMS.register("kelp_string", ItemBase::new);
  56. public static final RegistryObject<Item> SUPER_CONDUCTING_WIRE = ITEMS.register("super_conducting_wire",ItemBase::new);
  57. public static final RegistryObject<Item> DEHIDRATION_CATALIST = ITEMS.register("dehidration_catalist",ItemBase::new);
  58.  
  59.  
  60. //toools
  61. public static final RegistryObject<PickaxeItem> SODIUM_PICKAXE = ITEMS.register("sodium_pickaxe",()->
  62.  
  63. new PickaxeItem(MysticalKelpModItemTier.SODIUM_PICKAXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  64.  
  65. );
  66. public static final RegistryObject<PickaxeItem> SODIUM_SWORD = ITEMS.register("sodium_sword",()->
  67.  
  68. new PickaxeItem(MysticalKelpModItemTier.SODIUM_SWORD,0,-3.5f,new Item.Properties().group(MysticalKelpMod.TAB))
  69.  
  70. );
  71. public static final RegistryObject<PickaxeItem> SODIUM_SHOVEL = ITEMS.register("sodium_shovel",()->
  72.  
  73. new PickaxeItem(MysticalKelpModItemTier.SODIUM_SHOVEL,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  74.  
  75. );
  76. public static final RegistryObject<PickaxeItem> SODIUM_AXE = ITEMS.register("sodium_axe",()->
  77.  
  78. new PickaxeItem(MysticalKelpModItemTier.SODIUM_AXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  79.  
  80. );
  81.  
  82.  
  83.  
  84.  
  85. public static final RegistryObject<PickaxeItem> TUNGSTEN_PICKAXE = ITEMS.register("tungsten_pickaxe",()->
  86.  
  87. new PickaxeItem(MysticalKelpModItemTier.TUNGSTEN_PICKAXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  88.  
  89. );
  90. public static final RegistryObject<PickaxeItem> TUNGSTEN_SWORD = ITEMS.register("tungsten_sword",()->
  91.  
  92. new PickaxeItem(MysticalKelpModItemTier.TUNGSTEN_SWORD,0,-3.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  93.  
  94. );
  95. public static final RegistryObject<PickaxeItem> TUNGSTEN_SHOVEL = ITEMS.register("tungsten_shovel",()->
  96.  
  97. new PickaxeItem(MysticalKelpModItemTier.TUNGSTEN_SHOVEL,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  98.  
  99. );
  100. public static final RegistryObject<PickaxeItem> TUNGSTEN_AXE = ITEMS.register("tungsten_axe",()->
  101.  
  102. new PickaxeItem(MysticalKelpModItemTier.TUNGSTEN_AXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  103.  
  104. );
  105.  
  106.  
  107.  
  108.  
  109. public static final RegistryObject<PickaxeItem> HOLMIUM_PICKAXE = ITEMS.register("holmium_pickaxe",()->
  110.  
  111. new PickaxeItem(MysticalKelpModItemTier.HOLMIUM_PICKAXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  112.  
  113. );
  114. public static final RegistryObject<PickaxeItem> HOLMIUM_SWORD = ITEMS.register("holmium_sword",()->
  115.  
  116. new PickaxeItem(MysticalKelpModItemTier.HOLMIUM_SWORD,0,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  117.  
  118. );
  119. public static final RegistryObject<PickaxeItem> HOLMIUM_SHOVEL = ITEMS.register("holmium_shovel",()->
  120.  
  121. new PickaxeItem(MysticalKelpModItemTier.HOLMIUM_SHOVEL,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  122.  
  123. );
  124. public static final RegistryObject<PickaxeItem> HOLMIUM_AXE = ITEMS.register("holmium_axe",()->
  125.  
  126. new PickaxeItem(MysticalKelpModItemTier.HOLMIUM_AXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  127.  
  128. );
  129.  
  130.  
  131.  
  132. public static final RegistryObject<PickaxeItem> ACTINIUM_PICKAXE = ITEMS.register("actinium_pickaxe",()->
  133.  
  134. new PickaxeItem(MysticalKelpModItemTier.ACTINIUM_PICKAXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  135.  
  136. );
  137. public static final RegistryObject<PickaxeItem> ACTINIUM_SWORD = ITEMS.register("actinium_sword",()->
  138.  
  139. new PickaxeItem(MysticalKelpModItemTier.ACTINIUM_SWORD,0,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  140.  
  141. );
  142. public static final RegistryObject<PickaxeItem> ACTINIUM_SHOVEL = ITEMS.register("actinium_shovel",()->
  143.  
  144. new PickaxeItem(MysticalKelpModItemTier.ACTINIUM_SHOVEL,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  145.  
  146. );
  147. public static final RegistryObject<PickaxeItem> ACTINIUM_AXE = ITEMS.register("actinium_axe",()->
  148.  
  149. new PickaxeItem(MysticalKelpModItemTier.ACTINIUM_AXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  150.  
  151. );
  152.  
  153.  
  154.  
  155.  
  156. public static final RegistryObject<PickaxeItem> PLATINUM_PICKAXE = ITEMS.register("platinum_pickaxe",()->
  157.  
  158. new PickaxeItem(MysticalKelpModItemTier.PLATINUM_PICKAXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  159.  
  160. );
  161. public static final RegistryObject<PickaxeItem> PLATINUM_SWORD = ITEMS.register("platinum_sword",()->
  162.  
  163. new PickaxeItem(MysticalKelpModItemTier.PLATINUM_SWORD,0,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  164.  
  165. );
  166. public static final RegistryObject<PickaxeItem> PLATINUM_SHOVEL = ITEMS.register("platinum_shovel",()->
  167.  
  168. new PickaxeItem(MysticalKelpModItemTier.PLATINUM_SHOVEL,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  169.  
  170. );
  171. public static final RegistryObject<PickaxeItem> PLATINUM_AXE = ITEMS.register("platinum_axe",()->
  172.  
  173. new PickaxeItem(MysticalKelpModItemTier.PLATINUM_AXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  174.  
  175. );
  176.  
  177.  
  178. public static final RegistryObject<PickaxeItem> OPAL_PICKAXE = ITEMS.register("opal_pickaxe",()->
  179.  
  180. new PickaxeItem(MysticalKelpModItemTier.OPAL_PICKAXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  181.  
  182. );
  183. public static final RegistryObject<PickaxeItem> OPAL_SWORD = ITEMS.register("opal_sword",()->
  184.  
  185. new PickaxeItem(MysticalKelpModItemTier.OPAL_SWORD,0,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  186.  
  187. );
  188. public static final RegistryObject<PickaxeItem> OPAL_SHOVEL = ITEMS.register("opal_shovel",()->
  189.  
  190. new PickaxeItem(MysticalKelpModItemTier.OPAL_SHOVEL,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  191.  
  192. );
  193. public static final RegistryObject<PickaxeItem> OPAL_AXE = ITEMS.register("opal_axe",()->
  194.  
  195. new PickaxeItem(MysticalKelpModItemTier.OPAL_AXE,1,-2.0f,new Item.Properties().group(MysticalKelpMod.TAB))
  196.  
  197. );
  198.  
  199. //armor
  200.  
  201. public static final RegistryObject<ArmorItem> SODIUM_HELM = ITEMS.register("sodium_helm",()->
  202. new ArmorItem(MysticalKelpModArmorTier.SODIUM, EquipmentSlotType.HEAD,new Item.Properties().group(MysticalKelpMod.TAB)));
  203.  
  204. public static final RegistryObject<ArmorItem> SODIUM_CHEST = ITEMS.register("sodium_chest",()->
  205. new ArmorItem(MysticalKelpModArmorTier.SODIUM, EquipmentSlotType.CHEST,new Item.Properties().group(MysticalKelpMod.TAB)));
  206.  
  207. public static final RegistryObject<ArmorItem> SODIUM_LEG = ITEMS.register("sodium_leg",()->
  208. new ArmorItem(MysticalKelpModArmorTier.SODIUM, EquipmentSlotType.LEGS,new Item.Properties().group(MysticalKelpMod.TAB)));
  209.  
  210. public static final RegistryObject<ArmorItem> SODIUM_BOOT = ITEMS.register("sodium_boot",()->
  211. new ArmorItem(MysticalKelpModArmorTier.SODIUM, EquipmentSlotType.FEET,new Item.Properties().group(MysticalKelpMod.TAB)));
  212.  
  213.  
  214. public static final RegistryObject<ArmorItem> TUNGSTEN_HELM = ITEMS.register("tungsten_helm",()->
  215. new ArmorItem(MysticalKelpModArmorTier.TUNGSTEN, EquipmentSlotType.HEAD,new Item.Properties().group(MysticalKelpMod.TAB)));
  216.  
  217. public static final RegistryObject<ArmorItem> TUNGSTEN_CHEST = ITEMS.register("tungsten_chest",()->
  218. new ArmorItem(MysticalKelpModArmorTier.TUNGSTEN, EquipmentSlotType.CHEST,new Item.Properties().group(MysticalKelpMod.TAB)));
  219.  
  220. public static final RegistryObject<ArmorItem> TUNGSTEN_LEG = ITEMS.register("tungsten_leg",()->
  221. new ArmorItem(MysticalKelpModArmorTier.TUNGSTEN, EquipmentSlotType.LEGS,new Item.Properties().group(MysticalKelpMod.TAB)));
  222.  
  223. public static final RegistryObject<ArmorItem> TUNGSTEN_BOOT = ITEMS.register("tungsten_boot",()->
  224. new ArmorItem(MysticalKelpModArmorTier.TUNGSTEN, EquipmentSlotType.FEET,new Item.Properties().group(MysticalKelpMod.TAB)));
  225.  
  226.  
  227. public static final RegistryObject<ArmorItem> HOLMIUM_HELM = ITEMS.register("holmium_helm",()->
  228. new ArmorItem(MysticalKelpModArmorTier.HOLMIUM, EquipmentSlotType.HEAD,new Item.Properties().group(MysticalKelpMod.TAB)));
  229.  
  230. public static final RegistryObject<ArmorItem> HOLMIUM_CHEST = ITEMS.register("holmium_chest",()->
  231. new ArmorItem(MysticalKelpModArmorTier.HOLMIUM, EquipmentSlotType.CHEST,new Item.Properties().group(MysticalKelpMod.TAB)));
  232.  
  233. public static final RegistryObject<ArmorItem> HOLMIUM_LEG = ITEMS.register("holmium_leg",()->
  234. new ArmorItem(MysticalKelpModArmorTier.HOLMIUM, EquipmentSlotType.LEGS,new Item.Properties().group(MysticalKelpMod.TAB)));
  235.  
  236. public static final RegistryObject<ArmorItem> HOLMIUM_BOOT = ITEMS.register("holmium_boot",()->
  237. new ArmorItem(MysticalKelpModArmorTier.HOLMIUM, EquipmentSlotType.FEET,new Item.Properties().group(MysticalKelpMod.TAB)));
  238.  
  239.  
  240. public static final RegistryObject<ArmorItem> ACTINIUM_HELM = ITEMS.register("actinium_helm",()->
  241. new ArmorItem(MysticalKelpModArmorTier.ACTINIUM, EquipmentSlotType.HEAD,new Item.Properties().group(MysticalKelpMod.TAB)));
  242.  
  243. public static final RegistryObject<ArmorItem> ACTINIUM_CHEST = ITEMS.register("actinium_chest",()->
  244. new ArmorItem(MysticalKelpModArmorTier.ACTINIUM, EquipmentSlotType.CHEST,new Item.Properties().group(MysticalKelpMod.TAB)));
  245.  
  246. public static final RegistryObject<ArmorItem> ACTINIUM_LEG = ITEMS.register("actinium_leg",()->
  247. new ArmorItem(MysticalKelpModArmorTier.ACTINIUM, EquipmentSlotType.LEGS,new Item.Properties().group(MysticalKelpMod.TAB)));
  248.  
  249. public static final RegistryObject<ArmorItem> ACTINIUM_BOOT = ITEMS.register("actinium_boot",()->
  250. new ArmorItem(MysticalKelpModArmorTier.ACTINIUM, EquipmentSlotType.FEET,new Item.Properties().group(MysticalKelpMod.TAB)));
  251.  
  252. public static final RegistryObject<ArmorItem> PLATINUM_HELM = ITEMS.register("platinum_helm",()->
  253. new ArmorItem(MysticalKelpModArmorTier.PLATINUM, EquipmentSlotType.HEAD,new Item.Properties().group(MysticalKelpMod.TAB)));
  254.  
  255. public static final RegistryObject<ArmorItem> PLATINUM_CHEST = ITEMS.register("platinum_chest",()->
  256. new ArmorItem(MysticalKelpModArmorTier.PLATINUM, EquipmentSlotType.CHEST,new Item.Properties().group(MysticalKelpMod.TAB)));
  257.  
  258. public static final RegistryObject<ArmorItem> PLATINUM_LEG = ITEMS.register("platinum_leg",()->
  259. new ArmorItem(MysticalKelpModArmorTier.PLATINUM, EquipmentSlotType.LEGS,new Item.Properties().group(MysticalKelpMod.TAB)));
  260.  
  261. public static final RegistryObject<ArmorItem> PLATINUM_BOOT = ITEMS.register("platinum_boot",()->
  262. new ArmorItem(MysticalKelpModArmorTier.PLATINUM, EquipmentSlotType.FEET,new Item.Properties().group(MysticalKelpMod.TAB)));
  263.  
  264. public static final RegistryObject<ArmorItem> OPAL_HELM = ITEMS.register("opal_helm",()->
  265. new ArmorItem(MysticalKelpModArmorTier.OPAL, EquipmentSlotType.HEAD,new Item.Properties().group(MysticalKelpMod.TAB)));
  266.  
  267. public static final RegistryObject<ArmorItem> OPAL_CHEST = ITEMS.register("opal_chest",()->
  268. new ArmorItem(MysticalKelpModArmorTier.OPAL, EquipmentSlotType.CHEST,new Item.Properties().group(MysticalKelpMod.TAB)));
  269.  
  270. public static final RegistryObject<ArmorItem> OPAL_LEG = ITEMS.register("opal_leg",()->
  271. new ArmorItem(MysticalKelpModArmorTier.OPAL, EquipmentSlotType.LEGS,new Item.Properties().group(MysticalKelpMod.TAB)));
  272.  
  273. public static final RegistryObject<ArmorItem> OPAL_BOOT = ITEMS.register("opal_boot",()->
  274. new ArmorItem(MysticalKelpModArmorTier.OPAL, EquipmentSlotType.FEET,new Item.Properties().group(MysticalKelpMod.TAB)));
  275.  
  276. }
  277.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement