Search in sources :

Example 11 with EnergyTileUnloadEvent

use of ic2.api.energy.event.EnergyTileUnloadEvent in project Flux-Networks by SonarSonic.

the class TileFluxIC2 method invalidate.

@Override
@Optional.Method(modid = "ic2")
public void invalidate() {
    super.invalidate();
    if (!this.getWorld().isRemote && IC2Connected) {
        MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
        IC2Connected = false;
    }
}
Also used : EnergyTileUnloadEvent(ic2.api.energy.event.EnergyTileUnloadEvent)

Aggregations

EnergyTileUnloadEvent (ic2.api.energy.event.EnergyTileUnloadEvent)11 IEnergyTile (ic2.api.energy.tile.IEnergyTile)1