Enum Class Tristate

java.lang.Object
java.lang.Enum<Tristate>
dev.latvian.mods.kubejs.util.Tristate
All Implemented Interfaces:
Serializable, Comparable<Tristate>, Constable, net.minecraft.util.StringRepresentable

public enum Tristate extends Enum<Tristate> implements net.minecraft.util.StringRepresentable
  • Enum Constant Details

    • FALSE

      public static final Tristate FALSE
    • TRUE

      public static final Tristate TRUE
    • DEFAULT

      public static final Tristate DEFAULT
  • Field Details

    • VALUES

      public static final Tristate[] VALUES
    • CODEC

      public static final com.mojang.serialization.Codec<Tristate> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,Tristate> STREAM_CODEC
    • name

      public final String name
  • Method Details

    • values

      public static Tristate[] 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 Tristate 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
    • wrap

      public static Tristate wrap(Object from)
    • getSerializedName

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

      public boolean test(boolean enabled)
    • test

      public boolean test(BooleanSupplier enabled)