Guest User

ItemBlockElementalLight.java

a guest
Jun 29th, 2019
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.onVoid.adjunct.block;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.item.ItemBlock;
  5. import net.minecraft.item.ItemStack;
  6.  
  7. public class ItemBlockElementalLight extends ItemBlock {
  8.    
  9.     public ItemBlockElementalLight(Block block){
  10.         super(block);
  11.         this.setMaxDamage(0);
  12.         this.setHasSubtypes(true);
  13.     }
  14.    
  15.     @Override
  16.     public int getMetadata(int metadata){
  17.         return metadata;
  18.     }
  19.    
  20.     @Override
  21.     public String getUnlocalizedName(ItemStack stack){
  22.         //BlockElementalLight.ElementalLightType variant = BlockElementalLight.ElementalLightType.byMetadata(stack.getMetadata());
  23.         //return super.getUnlocalizedName() + "." + variant.toString();
  24.         return super.getUnlocalizedName();
  25.     }
  26.  
  27. }
RAW Paste Data