use of me.desht.pneumaticcraft.client.gui.INeedTickUpdate in project pnc-repressurized by TeamPneumatic.
the class ClientTickHandler method tickEnd.
@SubscribeEvent
public void tickEnd(TickEvent.ClientTickEvent event) {
if (event.phase == TickEvent.Phase.END) {
if (Minecraft.getMinecraft().player == null) {
for (IUpgradeRenderHandler handler : UpgradeRenderHandlerList.instance().upgradeRenderers) {
handler.reset();
}
}
TICKS++;
ModuleRegulatorTube.hasTicked = false;
ModuleRegulatorTube.inverted = false;
ModuleRegulatorTube.inLine = true;
for (int i = 0; i < updatedObjects.size(); i++) {
INeedTickUpdate updatedObject = updatedObjects.get(i).get();
if (updatedObject != null) {
updatedObject.update();
} else {
updatedObjects.remove(i);
i--;
}
}
}
}
Aggregations