Advertisement
Guest User

PeriodicOre.java

a guest
Jun 29th, 2015
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement