Advertisement
Guest User

Block

a guest
Jul 13th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. public class BlockFurnitureTableLamp1 extends BlockContainer
  2. {
  3.  
  4.     public BlockFurnitureTableLamp1(Material material)
  5.     {
  6.         super(material);
  7.         this.setCreativeTab(FurnitureMain.furnitureTab);
  8.         this.setHardness(1f);
  9.         this.setLightLevel(14f);
  10.         this.setStepSound(soundTypeWood);
  11.        
  12.        
  13.     }
  14.    
  15.     public int getRenderType()
  16.     {
  17.         return -1;
  18.     }
  19.    
  20.     public boolean isOpaqueCube()
  21.     {
  22.         return false;
  23.     }
  24.    
  25.     public boolean renderAsNormalBlock()
  26.     {
  27.         return false;
  28.     }
  29.    
  30.     @Override
  31.     public TileEntity createNewTileEntity(World var1, int var2)
  32.     {
  33.         return new TileEntityTableLamp1();
  34.     }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement