Search in sources :

Example 6 with ICamouflagedTile

use of forestry.api.core.ICamouflagedTile in project ForestryMC by ForestryMC.

the class GreenhouseController method onMachineDisassembled.

@Override
protected void onMachineDisassembled() {
    super.onMachineDisassembled();
    provider.clear(false);
    provider.getStorage().removeProviderFromChunks();
    this.centerPos = BlockPos.ORIGIN;
    for (IMultiblockComponent comp : connectedParts) {
        if (comp instanceof ICamouflagedTile) {
            world.markBlockRangeForRenderUpdate(comp.getCoordinates(), comp.getCoordinates());
        }
    }
    limits = null;
}
Also used : ICamouflagedTile(forestry.api.core.ICamouflagedTile) IMultiblockComponent(forestry.api.multiblock.IMultiblockComponent)

Aggregations

ICamouflagedTile (forestry.api.core.ICamouflagedTile)6 IMultiblockComponent (forestry.api.multiblock.IMultiblockComponent)6 ICamouflageHandler (forestry.api.core.ICamouflageHandler)4 IMultiblockController (forestry.api.multiblock.IMultiblockController)4 TileEntity (net.minecraft.tileentity.TileEntity)4 ItemStack (net.minecraft.item.ItemStack)2 PacketCamouflageSelectionServer (forestry.greenhouse.network.packets.PacketCamouflageSelectionServer)1 Nullable (javax.annotation.Nullable)1 BlockPos (net.minecraft.util.math.BlockPos)1