blob: 97808e1b93fca87af67015a9be06b3f9d3dc9d27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package tectech;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
import cpw.mods.fml.common.gameevent.TickEvent.ServerTickEvent;
import tectech.mechanics.tesla.ITeslaConnectable.TeslaUtil;
public class TecTechEventHandlers {
public static void init() {
FMLCommonHandler.instance()
.bus()
.register(new TecTechEventHandlers());
}
@SubscribeEvent
public void onServerTickEnd(ServerTickEvent event) {
if (event.phase == Phase.END) {
TeslaUtil.housekeep();
}
}
}
|