public class ClientSoulNetworkHandler
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdatePlayer(java.lang.String uuid)
Add the given player to the server list of essence watchers.
|
int |
getCurrentEssence(java.lang.String uuid)
Get the cached current essence.
|
static ClientSoulNetworkHandler |
getInstance() |
void |
onServerTick(net.minecraftforge.fml.common.gameevent.TickEvent.ServerTickEvent event)
When a server tick event is received.
|
void |
onWorldLoad(net.minecraftforge.event.world.WorldEvent.Load event)
When a world is loaded.
|
static void |
reset()
Reset the instance.
|
void |
setCurrentEssence(java.lang.String uuid,
int currentEssence)
Set the essence for the player.
|
public static void reset()
public static ClientSoulNetworkHandler getInstance()
public int getCurrentEssence(java.lang.String uuid)
uuid - The owner uuid.public void setCurrentEssence(java.lang.String uuid,
int currentEssence)
uuid - The player uuid.currentEssence - The essence.public void addUpdatePlayer(java.lang.String uuid)
uuid - Player uuidpublic void onServerTick(net.minecraftforge.fml.common.gameevent.TickEvent.ServerTickEvent event)
event - The received event.public void onWorldLoad(net.minecraftforge.event.world.WorldEvent.Load event)
event - the event.