public enum WorldTime extends java.lang.Enum<WorldTime> implements ITranslatable
Enum Constant and Description |
---|
AFTERNOON |
DAWN |
DAY |
DUSK |
MIDDAY |
MIDNIGHT |
MORNING |
NIGHT |
Modifier and Type | Method and Description |
---|---|
static java.util.List<WorldTime> |
getCurrent(net.minecraft.world.World world) |
java.util.function.LongPredicate |
getTickCondition() |
java.lang.String |
getTranslationKey() |
static WorldTime |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WorldTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getLocalizedName, getTranslatedName
public static final WorldTime DAWN
public static final WorldTime MORNING
public static final WorldTime DAY
public static final WorldTime MIDDAY
public static final WorldTime AFTERNOON
public static final WorldTime DUSK
public static final WorldTime NIGHT
public static final WorldTime MIDNIGHT
public static WorldTime[] values()
for (WorldTime c : WorldTime.values()) System.out.println(c);
public static WorldTime 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 java.util.function.LongPredicate getTickCondition()
public java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable
public static java.util.List<WorldTime> getCurrent(net.minecraft.world.World world)