Advertisement
Guest User

Untitled

a guest
Mar 6th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. package com.rbs.slurpiesdongles.events;
  2.  
  3. import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
  4. import net.minecraftforge.fml.common.gameevent.TickEvent;
  5.  
  6. /**
  7. * Created by RedBu on 3/4/2017.
  8. */
  9. public class TickEvents {
  10. @SubscribeEvent
  11. public static void playerTick(TickEvent.PlayerTickEvent event) {
  12. if (event.phase == TickEvent.Phase.END) {
  13. }
  14. if (!event.player.getEntityWorld().isRemote) {
  15. event.player.getCapability(Timers.CAPABILITY, null).tick();
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement