public class GlobalCounter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GlobalCounter.GlobalCounterData
Data holder for the global counter data.
|
| Modifier and Type | Method and Description |
|---|---|
static GlobalCounter |
getInstance() |
int |
getNext(java.lang.String key)
Get the next counter value for the given key.
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound tag)
Read the counters.
|
void |
reset()
Reset the stored counters.
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound tag)
Write the counters.
|
public static GlobalCounter getInstance()
public void readFromNBT(net.minecraft.nbt.NBTTagCompound tag)
tag - The tag to read from.public void writeToNBT(net.minecraft.nbt.NBTTagCompound tag)
tag - The tag to write to.public int getNext(java.lang.String key)
key - the key for the counter.public void reset()