SHARE
TWEET

PeriodicOre.java

a guest Jun 29th, 2015 13 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class PeriodicOre extends Block {
  2.  
  3.         public static PeriodicOre instance;
  4.        
  5.         public PeriodicOre() {
  6.                 super(Material.rock);
  7.                 instance = this;
  8.                
  9.         }
  10.        
  11.         @SideOnly(Side.CLIENT)
  12.         public EnumWorldBlockLayer getBlockLayer() {
  13.                 return EnumWorldBlockLayer.SOLID;
  14.         }
  15.        
  16.         public boolean isFullCube() {
  17.                 return true;
  18.         }
  19.        
  20.         public int getRenderType() {
  21.                 return 3;
  22.         }
  23.        
  24.         public boolean isOpaqueCube() {
  25.                 return true;
  26.         }
  27.        
  28.        
  29.     public Item getItemDropped(IBlockState state, Random rand, int fortune)
  30.     {
  31.         return Item.getItemFromBlock(this);
  32.     }
  33.    
  34.     public static PeriodicOre getInstance() {
  35.         return instance;
  36.     }
  37.    
  38.        
  39. }
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