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 | Field and Description |
|---|---|
java.util.function.Predicate<java.lang.Integer> |
tickCondition |
static java.util.concurrent.ConcurrentMap<java.lang.Integer,java.util.ArrayList<WorldTime>> |
worldTimes |
| Modifier and Type | Method and Description |
|---|---|
static java.util.ArrayList<WorldTime> |
getCurrent(net.minecraft.world.World world) |
java.lang.String |
getUnlocalizedName() |
static void |
updateWorldTime(net.minecraft.world.World world) |
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, valueOfgetLocalizedName, getTranslatedNamepublic 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 java.util.function.Predicate<java.lang.Integer> tickCondition
public static java.util.concurrent.ConcurrentMap<java.lang.Integer,java.util.ArrayList<WorldTime>> worldTimes
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.lang.String getUnlocalizedName()
getUnlocalizedName in interface ITranslatablepublic static java.util.ArrayList<WorldTime> getCurrent(net.minecraft.world.World world)
public static void updateWorldTime(net.minecraft.world.World world)