Enum Class SkyClock
- All Implemented Interfaces:
Serializable,Comparable<SkyClock>,Constable,net.minecraft.util.StringRepresentable
What drives a layer's rotation or animation. A rotation's speed is in degrees per unit of its clock.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDays of the dimension's clock, from 0 to 1 over one day and night: a speed of 360 turns once a day.Seconds of the level's game time (20 ticks each): stops with the game.Vanilla's moon angle in degrees: on 1.20.1, always opposite the sun.Seconds of real time: keeps going while the game is paused.Vanilla's star angle in degrees: on 1.20.1, the stars turn with the sun.Vanilla's sun angle in degrees: rotating around[0, 0, 1]at speed 1 follows the sun. -
Field Summary
FieldsFields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
Modifier and TypeMethodDescriptionbooleanisTime()Whether it counts seconds, and so can time an animation's frames.static SkyClockReturns the enum constant of this class with the specified name.static SkyClock[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REAL_TIME
Seconds of real time: keeps going while the game is paused. -
GAME_TIME
Seconds of the level's game time (20 ticks each): stops with the game. -
DAY_TIME
Days of the dimension's clock, from 0 to 1 over one day and night: a speed of 360 turns once a day. -
SUN_ANGLE
Vanilla's sun angle in degrees: rotating around[0, 0, 1]at speed 1 follows the sun. -
MOON_ANGLE
Vanilla's moon angle in degrees: on 1.20.1, always opposite the sun. -
STAR_ANGLE
Vanilla's star angle in degrees: on 1.20.1, the stars turn with the sun.
-
-
Field Details
-
CODEC
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isTime
public boolean isTime()Whether it counts seconds, and so can time an animation's frames. -
getSerializedName
- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable
-