Enum Class SkyClock

java.lang.Object
java.lang.Enum<SkyClock>
net.ixdarklord.coolcatcanvas.api.client.sky.SkyClock
All Implemented Interfaces:
Serializable, Comparable<SkyClock>, Constable, net.minecraft.util.StringRepresentable

public enum SkyClock extends Enum<SkyClock> implements 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>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S extends net.minecraft.util.StringRepresentable>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Days 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.
    Seconds of real time: keeps going while the game is paused.
    Vanilla's star angle in degrees.
    Vanilla's sun angle in degrees: rotating around [0, 0, 1] at speed 1 follows the sun.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<SkyClock>
     

    Fields inherited from interface net.minecraft.util.StringRepresentable

    PRE_BUILT_MAP_THRESHOLD
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    Whether it counts seconds, and so can time an animation's frames.
    static SkyClock
    Returns the enum constant of this class with the specified name.
    static SkyClock[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • REAL_TIME

      public static final SkyClock REAL_TIME
      Seconds of real time: keeps going while the game is paused.
    • GAME_TIME

      public static final SkyClock GAME_TIME
      Seconds of the level's game time (20 ticks each): stops with the game.
    • DAY_TIME

      public static final SkyClock 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

      public static final SkyClock SUN_ANGLE
      Vanilla's sun angle in degrees: rotating around [0, 0, 1] at speed 1 follows the sun.
    • MOON_ANGLE

      public static final SkyClock MOON_ANGLE
      Vanilla's moon angle in degrees.
    • STAR_ANGLE

      public static final SkyClock STAR_ANGLE
      Vanilla's star angle in degrees.
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<SkyClock> CODEC
  • Method Details

    • values

      public static SkyClock[] 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

      public static SkyClock valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isTime

      public boolean isTime()
      Whether it counts seconds, and so can time an animation's frames.
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable