Advertisement
circuitdh

Items.java

Jun 29th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.47 KB | None | 0 0
  1. package net.bleachcraft.init;
  2.  
  3. import net.bleachcraft.Items.BleachBottle;
  4. import net.bleachcraft.Items.BleachBottleClorox;
  5. import net.bleachcraft.Items.BleachBottleTide;
  6. import net.bleachcraft.Items.BleachChemicals;
  7. import net.minecraft.client.Minecraft;
  8. import net.minecraft.client.renderer.block.model.ModelResourceLocation;
  9. import net.minecraft.item.Item;
  10. import net.minecraftforge.fml.common.registry.GameRegistry;
  11.  
  12. public class Items {
  13.    
  14.     public static Item bleachBottleClorox;
  15.     public static Item bleachChemicals;
  16.     public static Item bleachBottle;
  17.     public static Item bleachBottleTide;
  18.  
  19.     public static void registerItems() {
  20.        
  21.  
  22.         //Clorox texture
  23.         bleachBottleClorox = new BleachBottleClorox();
  24.         GameRegistry.registerItem(bleachBottleClorox, "bleachBottleClorox");
  25.         Item bleachBottleCloroxItem = GameRegistry.findItem("bleachcraft", "bleachBottleClorox");
  26.         ModelResourceLocation bleachBottleCloroxModel = new ModelResourceLocation("bleachcraft:bleachBottleClorox", "inventory");
  27.         Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(bleachBottleClorox, 0, bleachBottleCloroxModel);
  28.                
  29.         //Mundane Bleach Texture
  30.         bleachBottle = new BleachBottle();
  31.         GameRegistry.registerItem(bleachBottle, "bleachBottle");
  32.         Item bleachBottleItem = GameRegistry.findItem("bleachcraft", "bleachBottle");
  33.         ModelResourceLocation bleachBottleModel = new ModelResourceLocation("bleachcraft:bleachBottle", "inventory");
  34.         Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(bleachBottle, 0, bleachBottleModel);
  35.                
  36.         //Tide texture
  37.         bleachBottleTide = new BleachBottleTide();
  38.         GameRegistry.registerItem(bleachBottleTide, "bleachBottleTide");
  39.         Item bleachBottleTideItem = GameRegistry.findItem("bleachcraft", "bleachBottleTide");
  40.         ModelResourceLocation bleachBottleTideModel = new ModelResourceLocation("bleachcraft:bleachBottleTide", "inventory");
  41.         Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(bleachBottleTide, 0, bleachBottleTideModel);
  42.                
  43.         //Bleach chemicals texture
  44.         bleachChemicals = new BleachChemicals();
  45.         GameRegistry.registerItem(bleachChemicals, "bleachChemicals");
  46.         Item bleachChemicalsItem = GameRegistry.findItem("bleachcraft", "bleachChemicals");
  47.         ModelResourceLocation bleachChemicalsModel = new ModelResourceLocation("bleachcraft:bleachChemicals", "inventory");
  48.         Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(bleachChemicals, 0, bleachChemicalsModel);
  49.        
  50.     }
  51.  
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement