Package net.minecraft
Record Class class_11437
java.lang.Object
java.lang.Record
net.minecraft.class_11437
- Record Components:
label-initial-onTrue-onFalse-
- All Implemented Interfaces:
class_11438
public record class_11437(Text label, boolean initial, String onTrue, String onFalse)
extends Record
implements class_11438
- Mappings:
Namespace Name named net/minecraft/class_11437intermediary net/minecraft/class_11437official ashnamed labelintermediary comp_4332official cnamed initialintermediary comp_4333official dnamed onTrueintermediary comp_4334official enamed onFalseintermediary comp_4335official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<class_11437> private final booleanThe field for theinitialrecord component.private final TextThe field for thelabelrecord component.private final StringThe field for theonFalserecord component.private final StringThe field for theonTruerecord component.Fields inherited from interface net.minecraft.class_11438
field_60644 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninitial()Returns the value of theinitialrecord component.label()Returns the value of thelabelrecord component.com.mojang.serialization.MapCodec<class_11437> onFalse()Returns the value of theonFalserecord component.onTrue()Returns the value of theonTruerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
label
The field for thelabelrecord component. -
initial
private final boolean initialThe field for theinitialrecord component. -
onTrue
The field for theonTruerecord component. -
onFalse
The field for theonFalserecord component. -
field_60643
- Mappings:
Namespace Name Mixin selector named field_60643Lnet/minecraft/class_11437;field_60643:Lcom/mojang/serialization/MapCodec;intermediary field_60643Lnet/minecraft/class_11437;field_60643:Lcom/mojang/serialization/MapCodec;official aLash;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_11437
-
-
Method Details
-
method_71717
- Specified by:
method_71717in interfaceclass_11438- Mappings:
Namespace Name Mixin selector named method_71717Lnet/minecraft/class_11438;method_71717()Lcom/mojang/serialization/MapCodec;intermediary method_71717Lnet/minecraft/class_11438;method_71717()Lcom/mojang/serialization/MapCodec;official aLasi;a()Lcom/mojang/serialization/MapCodec;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
initial
public boolean initial()Returns the value of theinitialrecord component.- Returns:
- the value of the
initialrecord component
-
onTrue
Returns the value of theonTruerecord component.- Returns:
- the value of the
onTruerecord component
-
onFalse
Returns the value of theonFalserecord component.- Returns:
- the value of the
onFalserecord component
-