Package net.minecraft
Record Class class_11442
java.lang.Object
java.lang.Record
net.minecraft.class_11442
- Record Components:
width-entries-label-labelVisible-
- All Implemented Interfaces:
class_11438
public record class_11442(int width, List<class_11442.class_11443> entries, Text label, boolean labelVisible)
extends Record
implements class_11438
- Mappings:
Namespace Name named net/minecraft/class_11442intermediary net/minecraft/class_11442official aslnamed widthintermediary comp_4344official cnamed entriesintermediary comp_4345official dnamed labelintermediary comp_4346official enamed labelVisibleintermediary comp_4347official f
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<class_11442.class_11443> The field for theentriesrecord component.static final com.mojang.serialization.MapCodec<class_11442> private final TextThe field for thelabelrecord component.private final booleanThe field for thelabelVisiblerecord component.private final intThe field for thewidthrecord component.Fields inherited from interface net.minecraft.class_11438
field_60644 -
Constructor Summary
ConstructorsConstructorDescriptionclass_11442(int int2, List<class_11442.class_11443> list, Text text, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.booleanReturns the value of thelabelVisiblerecord component.com.mojang.serialization.MapCodec<class_11442> final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
width
private final int widthThe field for thewidthrecord component. -
entries
The field for theentriesrecord component. -
label
The field for thelabelrecord component. -
labelVisible
private final boolean labelVisibleThe field for thelabelVisiblerecord component. -
field_60647
- Mappings:
Namespace Name Mixin selector named field_60647Lnet/minecraft/class_11442;field_60647:Lcom/mojang/serialization/MapCodec;intermediary field_60647Lnet/minecraft/class_11442;field_60647:Lcom/mojang/serialization/MapCodec;official aLasl;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_11442
-
-
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;
-
method_71731
- Mappings:
Namespace Name Mixin selector named method_71731Lnet/minecraft/class_11442;method_71731()Ljava/util/Optional;intermediary method_71731Lnet/minecraft/class_11442;method_71731()Ljava/util/Optional;official bLasl;b()Ljava/util/Optional;
-
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 '=='. -
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
labelVisible
public boolean labelVisible()Returns the value of thelabelVisiblerecord component.- Returns:
- the value of the
labelVisiblerecord component
-