public enum TickRateHandler extends java.lang.Enum<TickRateHandler>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_TPS |
| Modifier and Type | Method and Description |
|---|---|
long |
getTickRate() |
float |
getTPS() |
void |
resetTPS() |
void |
setTPS(float tps) |
static TickRateHandler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TickRateHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TickRateHandler INSTANCE
public static final float DEFAULT_TPS
public static TickRateHandler[] values()
for (TickRateHandler c : TickRateHandler.values()) System.out.println(c);
public static TickRateHandler valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic float getTPS()
public void setTPS(float tps)
public void resetTPS()
public long getTickRate()