Record Class EquipmentClientInfo
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.EquipmentClientInfo
public record EquipmentClientInfo(Map<EquipmentClientInfo.LayerType, List<EquipmentClientInfo.Layer>> layers)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic final recordstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EquipmentClientInfo> private static final com.mojang.serialization.Codec<List<EquipmentClientInfo.Layer>> private final Map<EquipmentClientInfo.LayerType, List<EquipmentClientInfo.Layer>> The field for thelayersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aEquipmentClientInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic EquipmentClientInfo.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.layers()Returns the value of thelayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
layers
The field for thelayersrecord component. -
LAYER_LIST_CODEC
private static final com.mojang.serialization.Codec<List<EquipmentClientInfo.Layer>> LAYER_LIST_CODEC -
CODEC
-
-
Constructor Details
-
EquipmentClientInfo
public EquipmentClientInfo(Map<EquipmentClientInfo.LayerType, List<EquipmentClientInfo.Layer>> layers) Creates an instance of aEquipmentClientInforecord class.- Parameters:
layers- the value for thelayersrecord component
-
-
Method Details
-
builder
-
getLayers
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
layers
Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-