Package net.minecraft.util
Enum Class TriState
- All Implemented Interfaces:
Serializable,Comparable<TriState>,Constable,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/util/TriStateintermediary net/minecraft/class_9851official bho
-
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.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TriState> private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanasBoolean(boolean fallback) asString()Returns the unique string representation of the enum, used for serialization.static TriStatemethod_76393(boolean bool) static TriStateReturns the enum constant of this class with the specified name.static TriState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRUE
- Mappings:
Namespace Name Mixin selector named TRUELnet/minecraft/util/TriState;TRUE:Lnet/minecraft/util/TriState;intermediary field_52394Lnet/minecraft/class_9851;field_52394:Lnet/minecraft/class_9851;official aLbho;a:Lbho;
-
FALSE
- Mappings:
Namespace Name Mixin selector named FALSELnet/minecraft/util/TriState;FALSE:Lnet/minecraft/util/TriState;intermediary field_52395Lnet/minecraft/class_9851;field_52395:Lnet/minecraft/class_9851;official bLbho;b:Lbho;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/util/TriState;DEFAULT:Lnet/minecraft/util/TriState;intermediary field_52396Lnet/minecraft/class_9851;field_52396:Lnet/minecraft/class_9851;official cLbho;c:Lbho;
-
-
Field Details
-
field_64315
- Mappings:
Namespace Name Mixin selector named field_64315Lnet/minecraft/util/TriState;field_64315:Lcom/mojang/serialization/Codec;intermediary field_64315Lnet/minecraft/class_9851;field_64315:Lcom/mojang/serialization/Codec;official dLbho;d:Lcom/mojang/serialization/Codec;
-
field_64316
- Mappings:
Namespace Name Mixin selector named field_64316Lnet/minecraft/util/TriState;field_64316:Ljava/lang/String;intermediary field_64316Lnet/minecraft/class_9851;field_64316:Ljava/lang/String;official eLbho;e:Ljava/lang/String;
-
-
Constructor Details
-
TriState
-
-
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
-
method_76393
- Mappings:
Namespace Name Mixin selector named method_76393Lnet/minecraft/util/TriState;method_76393(Z)Lnet/minecraft/util/TriState;intermediary method_76393Lnet/minecraft/class_9851;method_76393(Z)Lnet/minecraft/class_9851;official aLbho;a(Z)Lbho;
-
asBoolean
public boolean asBoolean(boolean fallback) - Mappings:
Namespace Name Mixin selector named asBooleanLnet/minecraft/util/TriState;asBoolean(Z)Zintermediary method_61348Lnet/minecraft/class_9851;method_61348(Z)Zofficial bLbho;b(Z)Z
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbhg;c()Ljava/lang/String;
-