Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fossils.basic;
- import net.minecraft.block.BlockContainer;
- import net.minecraft.block.material.Material;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.world.World;
- public class BasicEggBlock extends BlockContainer
- {
- public TileEntity entity;
- public BasicEggBlock(String name, TileEntity entity)
- {
- super(Material.rock);
- this.entity = entity;
- this.setCreativeTab(null);
- this.setBlockTextureName("fossils:Egg");
- this.setBlockName(name);
- this.setBlockUnbreakable();
- this.setBlockBounds(0.2f, 0.0f, 0.25f, 0.75f, 0.8f, 0.8f);
- }
- public TileEntity createNewTileEntity(World var1, int var2)
- {
- return entity;
- }
- public int getRenderType()
- {
- return -1;
- }
- public boolean isOpaqueCube()
- {
- return false;
- }
- public boolean renderAsNormalBlock()
- {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment