use of buildcraft.lib.tile.TileBC_Neptune in project BuildCraft by BuildCraft.
the class BlockBCTile_Neptune method onBlockExploded.
@Override
public void onBlockExploded(World world, BlockPos pos, Explosion explosion) {
TileEntity tile = world.getTileEntity(pos);
if (tile instanceof TileBC_Neptune) {
TileBC_Neptune tileBC = (TileBC_Neptune) tile;
tileBC.onExplode(explosion);
}
super.onBlockExploded(world, pos, explosion);
}
use of buildcraft.lib.tile.TileBC_Neptune in project BuildCraft by BuildCraft.
the class BlockBCTile_Neptune method onBlockPlacedBy.
@Override
public void onBlockPlacedBy(World world, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) {
TileEntity tile = world.getTileEntity(pos);
if (tile instanceof TileBC_Neptune) {
TileBC_Neptune tileBC = (TileBC_Neptune) tile;
tileBC.onPlacedBy(placer, stack);
}
super.onBlockPlacedBy(world, pos, state, placer, stack);
}
use of buildcraft.lib.tile.TileBC_Neptune in project BuildCraft by BuildCraft.
the class BlockBCTile_Neptune method getDrops.
@Override
public void getDrops(NonNullList<ItemStack> drops, IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
TileEntity tile = world.getTileEntity(pos);
if (tile instanceof TileBC_Neptune) {
TileBC_Neptune tileBC = (TileBC_Neptune) tile;
tileBC.addDrops(drops, fortune);
}
super.getDrops(drops, world, pos, state, fortune);
}
use of buildcraft.lib.tile.TileBC_Neptune in project BuildCraft by BuildCraft.
the class BlockBCTile_Neptune method breakBlock.
@Override
public void breakBlock(World world, BlockPos pos, IBlockState state) {
TileEntity tile = world.getTileEntity(pos);
if (tile instanceof TileBC_Neptune) {
TileBC_Neptune tileBC = (TileBC_Neptune) tile;
tileBC.onRemove();
}
super.breakBlock(world, pos, state);
}
use of buildcraft.lib.tile.TileBC_Neptune in project BuildCraft by BuildCraft.
the class BlockBCTile_Neptune method neighborChanged.
@Override
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block block, BlockPos fromPos) {
super.neighborChanged(state, world, pos, block, fromPos);
TileEntity tile = world.getTileEntity(pos);
if (tile instanceof TileBC_Neptune) {
TileBC_Neptune tileBC = (TileBC_Neptune) tile;
tileBC.onNeighbourBlockChanged(block, fromPos);
}
}
Aggregations