- AuraPylon added effects

This commit is contained in:
HellFirePvP committed 2015-11-29 18:08:27 +01:00
1 parent 6c5032f5d6
commit 5d366d08a4
11 files changed
+151 -52

No files matched your search

@@ -0,0 +1,36 @@
package makeo.gadomancy.client.events;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
import cpw.mods.fml.common.network.FMLNetworkEvent;
import makeo.gadomancy.client.effect.EffectHandler;
import makeo.gadomancy.client.util.FamiliarHandlerClient;
/**
* This class is part of the Gadomancy Mod
* Gadomancy is Open Source and distributed under the
* GNU LESSER GENERAL PUBLIC LICENSE
* for more read the LICENSE file
*
* Created by HellFirePvP @ 01.11.2015 10:41
*/
public class ClientHandler {
public static int ticks;
@SubscribeEvent
public void onClientTick(TickEvent.ClientTickEvent event) {
if(event.phase.equals(TickEvent.Phase.END)) {
FamiliarHandlerClient.playerTickEvent();
ticks++;
EffectHandler.getInstance().tick();
}
}
@SubscribeEvent
public void onDc(FMLNetworkEvent.ClientDisconnectionFromServerEvent event) {
EffectHandler.getInstance().clear();
}
}