Guest User

BasicEggblock.java

a guest
Apr 8th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 KB | None | 0 0
  1. package fossils.basic;
  2.  
  3. import net.minecraft.block.BlockContainer;
  4. import net.minecraft.block.material.Material;
  5. import net.minecraft.tileentity.TileEntity;
  6. import net.minecraft.world.World;
  7.  
  8. public class BasicEggBlock extends BlockContainer
  9. {
  10.     public TileEntity entity;
  11.  
  12.     public BasicEggBlock(String name, TileEntity entity)
  13.     {
  14.         super(Material.rock);
  15.         this.entity = entity;
  16.         this.setCreativeTab(null);
  17.         this.setBlockTextureName("fossils:Egg");
  18.         this.setBlockName(name);
  19.         this.setBlockUnbreakable();
  20.         this.setBlockBounds(0.2f, 0.0f, 0.25f, 0.75f, 0.8f, 0.8f);
  21.     }
  22.  
  23.     public TileEntity createNewTileEntity(World var1, int var2)
  24.     {
  25.         return entity;
  26.     }
  27.  
  28.     public int getRenderType()
  29.     {
  30.         return -1;
  31.     }
  32.  
  33.     public boolean isOpaqueCube()
  34.     {
  35.         return false;
  36.     }
  37.  
  38.     public boolean renderAsNormalBlock()
  39.     {
  40.         return false;
  41.     }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment