public class TickHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
worldCounter
Timer for syncing Minecraft time with system time.
|
Constructor and Description |
---|
TickHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
deregisterStarterList(net.minecraft.entity.player.ServerPlayerEntity player)
Removes a player from the starter Pokémon GUI list.
|
void |
onClientTick(net.minecraftforge.event.TickEvent.ClientTickEvent event) |
void |
onPlayerJoinedServer(net.minecraftforge.event.entity.EntityJoinWorldEvent event) |
void |
onPlayerTick(net.minecraftforge.event.TickEvent.PlayerTickEvent event)
Updates the player.
|
void |
onServerTick(net.minecraftforge.event.TickEvent.ServerTickEvent event)
Syncs world time and checks for opening the starter Pokémon GUI.
|
void |
onWorldTick(net.minecraftforge.event.TickEvent.WorldTickEvent event) |
static void |
registerStarterList(net.minecraft.entity.player.ServerPlayerEntity player)
Adds a player to the starter Pokémon GUI list.
|
public int worldCounter
public void onPlayerTick(net.minecraftforge.event.TickEvent.PlayerTickEvent event)
event
- The event that was fired.public void onClientTick(net.minecraftforge.event.TickEvent.ClientTickEvent event)
public void onServerTick(net.minecraftforge.event.TickEvent.ServerTickEvent event)
event
- The event that was fired.public void onWorldTick(net.minecraftforge.event.TickEvent.WorldTickEvent event)
public static void registerStarterList(net.minecraft.entity.player.ServerPlayerEntity player)
player
- The player to add.public static void deregisterStarterList(net.minecraft.entity.player.ServerPlayerEntity player)
player
- The player to remove.public void onPlayerJoinedServer(net.minecraftforge.event.entity.EntityJoinWorldEvent event)