JavaScript is disabled on your browser.
Description
Nested Class Summary
Enum Constant Summary
Field Summary
Method Summary
Enum Constant Details
FALSE
DEFAULT
TRUE
Field Details
CODEC
Method Details
values()
valueOf(String)
of(boolean)
of(Boolean)
get()
getBoxed()
orElse(boolean)
orElseGet(BooleanSupplier)
map(BooleanFunction)
orElseThrow(Supplier)
fromSystemProperty(String)
getSerializedName()
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S>
Enum Constant Summary
Enum Constants
Represents a value that refers to a "default" value, often as a fallback.
Represents the boolean value of false.
Represents the boolean value of true.
Field Summary
Fields
static final com.mojang.serialization.Codec<TriState >
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Returns a parsed TriState from a system property.
boolean
Gets the value of the tri-state.
Gets the value of the tri-state as a boxed, nullable boolean.
Value of this enum as string.
Maps the boolean value of this tri-state if it is
TRUE or
FALSE.
Gets the corresponding tri-state from a boolean value.
Gets a tri-state from a nullable boxed boolean.
boolean
Gets the value of this tri-state.
boolean
Gets the value of this tri-state.
Gets the value of this tri-state, or throws an exception if this tri-state's value is
DEFAULT.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf