@Override public void validate() { super.validate(); if (!_isAddedToEnergyNet) { _didFirstAddToNet = false; } }
@Override public void invalidate() { if (_isAddedToEnergyNet) { if (!worldObj.isRemote) { MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this)); } _isAddedToEnergyNet = false; } super.invalidate(); }
@Override public void updateEntity() { super.updateEntity(); if (!_didFirstAddToNet && !worldObj.isRemote) { MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this)); _didFirstAddToNet = true; _isAddedToEnergyNet = true; } if (worldObj.getWorldTime() - _lastTickInjected > 2) { _euLastTick = 0; } }
@Override public void updateEntity() { super.updateEntity(); }