Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
private float |
clientPartialTickTime |
private static long |
epochTime |
private static java.lang.ref.WeakReference<World> |
worldRef |
Modifier and Type | Method and Description |
---|---|
static float |
getPartialTickTime()
Get current partialTickTime.
|
static float |
getWorldTime(World world)
Get the global world time for the current tick, in seconds.
|
static float |
getWorldTime(World world,
float tickProgress)
Get the global world time for the current tick + partial tick progress, in seconds.
|
static void |
setClientPartialTickTime(float clientPartialTickTime)
Internal hook, do not use.
|
static Animation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Animation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Animation INSTANCE
private float clientPartialTickTime
private static long epochTime
private static java.lang.ref.WeakReference<World> worldRef
public static Animation[] values()
for (Animation c : Animation.values()) System.out.println(c);
public static Animation 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 static float getWorldTime(World world)
public static float getWorldTime(World world, float tickProgress)
public static float getPartialTickTime()
public static void setClientPartialTickTime(float clientPartialTickTime)