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, List<EquipmentClientInfo.TrimOverride> trimOverrides)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic final recordstatic enumstatic final recordstatic final record -
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.private final List<EquipmentClientInfo.TrimOverride> The field for thetrimOverridesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEquipmentClientInfo(Map<EquipmentClientInfo.LayerType, List<EquipmentClientInfo.Layer>> layers, List<EquipmentClientInfo.TrimOverride> trimOverrides) Creates 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.Returns the value of thetrimOverridesrecord component.
-
Field Details
-
layers
The field for thelayersrecord component. -
trimOverrides
The field for thetrimOverridesrecord 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, List<EquipmentClientInfo.TrimOverride> trimOverrides) Creates an instance of aEquipmentClientInforecord class.- Parameters:
layers- the value for thelayersrecord componenttrimOverrides- the value for thetrimOverridesrecord 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
-
trimOverrides
Returns the value of thetrimOverridesrecord component.- Returns:
- the value of the
trimOverridesrecord component
-