Advertisement
paxtrex

TileEntityTower1

Apr 17th, 2014
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. imports
  2.  
  3. public class TileEntityTower1 extends BlockContainer{
  4.  
  5.     public TileEntityTower1(int id, Material material) {
  6.         super(id, material);
  7.         this.setCreativeTab(CreativeTabs.tabCombat);
  8.         this.setBlockBounds(0.4F, 0.0F, 0.4F, 0.6F, 3.0F, 0.6F);
  9.         this.setUnlocalizedName(BLOCKSINFO.TOWER1_UNLOCALIZED_NAME);
  10.     }
  11.    
  12.     @Override
  13.     public TileEntity createNewTileEntity(World world) {
  14.         return new TileEntityTower1Entity();
  15.     }
  16.    
  17.     @Override
  18.     public int getRenderType(){
  19.         return -1;
  20.     }
  21.    
  22.     @Override
  23.     public boolean isOpaqueCube(){
  24.         return false;
  25.     }
  26.    
  27.     public boolean renderAsNormalBlock(){
  28.             return false;
  29.     }
  30.    
  31.     public void registerIcons(IconRegister icon){
  32.         this.blockIcon = icon.registerIcon(MODINFO.ID + ":Tower");
  33.        
  34.     }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement