Search in sources :

Example 6 with IMultiTile

use of icbm.classic.api.tile.multiblock.IMultiTile in project ICBM-Classic by BuiltBrokenModding.

the class BlockMultiblock method breakBlock.

@Override
public void breakBlock(World world, BlockPos pos, IBlockState state) {
    IMultiTile tile = getTile(world, pos);
    if (tile != null && tile.getHost() != null) {
        tile.getHost().onMultiTileBroken(tile, null, true);
    }
    super.breakBlock(world, pos, state);
}
Also used : IMultiTile(icbm.classic.api.tile.multiblock.IMultiTile)

Aggregations

IMultiTile (icbm.classic.api.tile.multiblock.IMultiTile)6 TileEntity (net.minecraft.tileentity.TileEntity)4 ItemStack (net.minecraft.item.ItemStack)2 BlockPos (net.minecraft.util.math.BlockPos)2 IMissileLauncher (icbm.classic.api.caps.IMissileLauncher)1 IMultiTileHost (icbm.classic.api.tile.multiblock.IMultiTileHost)1 Location (icbm.classic.lib.transform.vector.Location)1 Block (net.minecraft.block.Block)1 IBlockState (net.minecraft.block.state.IBlockState)1