Enum Class Time.TimeSource

java.lang.Object
java.lang.Enum<Time.TimeSource>
net.minecraft.client.renderer.item.properties.numeric.Time.TimeSource
All Implemented Interfaces:
Serializable, Comparable<Time.TimeSource>, Constable, StringRepresentable
Enclosing class:
Time

public static enum Time.TimeSource extends Enum<Time.TimeSource> implements StringRepresentable
  • Enum Constant Details

  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Time.TimeSource> CODEC
    • name

      private final String name
  • Constructor Details

    • TimeSource

      private TimeSource(String p_390521_)
  • Method Details

    • values

      public static Time.TimeSource[] 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 Time.TimeSource 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
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface StringRepresentable
    • get

      abstract float get(ClientLevel p_390505_, ItemStack p_390478_, Entity p_390420_, RandomSource p_390390_)