Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package logico.geartech.gear.blocks;
- import ...
- public class BlockShaft extends BlockContainer {
- public BlockShaft (final int id) {
- super(id, Material.iron);
- setBlockName("gearShaft");
- setCreativeTab(CreativeTabs.tabMisc);
- //setBlockBounds(0F, 0.4375F, 0.4375F, 1F, 0.5625F, 0.5625F);
- }
- @Override public TileEntityShaft createNewTileEntity(final World world) {
- return new TileEntityShaft();
- }
- @Override public void onBlockAdded (final World world, final int x, final int y, final int z) {
- world.setBlockTileEntity(x, y, z, createNewTileEntity(world));
- ((TileEntityShaft) world.getBlockTileEntity(x, y, z)).updateConnections();
- world.notifyBlocksOfNeighborChange(x, y, z, this.blockID);
- }
- @Override public void onNeighborBlockChange (final World world, final int x, final int y, final int z, final int blockID) {
- ((TileEntityShaft) world.getBlockTileEntity(x, y, z)).updateConnections();
- }
- @Override public boolean isOpaqueCube () {
- return false;
- }
- @Override public boolean renderAsNormalBlock () {
- return false;
- }
- @Override public boolean hasTileEntity (final int metadata) {
- return true;
- }
- @Override public int getRenderType () {
- return ClientProxyGear.shaftModelId;
- }
- @Override public int getBlockTextureFromSide (final int side) {
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement