use of micdoodle8.mods.galacticraft.core.tile.IMultiBlock in project Galacticraft by micdoodle8.
the class BlockLandingPadFull method breakBlock.
@Override
public void breakBlock(World worldIn, BlockPos pos, IBlockState state) {
final TileEntity var9 = worldIn.getTileEntity(pos);
if (var9 instanceof IMultiBlock) {
((IMultiBlock) var9).onDestroy(var9);
}
super.breakBlock(worldIn, pos, state);
}
use of micdoodle8.mods.galacticraft.core.tile.IMultiBlock in project MorePlanets by SteveKunG.
the class TileEntityDummy method onBlockRemoval.
public void onBlockRemoval() {
if (this.mainBlockPosition != null) {
TileEntity tileEntity = this.world.getTileEntity(this.mainBlockPosition);
if (tileEntity instanceof IMultiBlock) {
IMultiBlock mainBlock = (IMultiBlock) tileEntity;
mainBlock.onDestroy(this);
}
}
}
Aggregations