Search in sources :

Example 1 with TileBC_Neptune

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);
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) TileBC_Neptune(buildcraft.lib.tile.TileBC_Neptune)

Example 2 with TileBC_Neptune

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);
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) TileBC_Neptune(buildcraft.lib.tile.TileBC_Neptune)

Example 3 with TileBC_Neptune

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);
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) TileBC_Neptune(buildcraft.lib.tile.TileBC_Neptune)

Example 4 with TileBC_Neptune

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);
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) TileBC_Neptune(buildcraft.lib.tile.TileBC_Neptune)

Example 5 with TileBC_Neptune

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);
    }
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) TileBC_Neptune(buildcraft.lib.tile.TileBC_Neptune)

Aggregations

TileBC_Neptune (buildcraft.lib.tile.TileBC_Neptune)5 TileEntity (net.minecraft.tileentity.TileEntity)5