Record Class EquipmentModel
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.equipment.EquipmentModel
- Record Components:
layers-
@Environment(CLIENT)
public record EquipmentModel(Map<EquipmentModel.LayerType,List<EquipmentModel.Layer>> layers)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/equipment/EquipmentModelintermediary net/minecraft/class_10186official hmwnamed layersintermediary comp_3169official b
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic final recordstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EquipmentModel> private static final com.mojang.serialization.Codec<List<EquipmentModel.Layer>> private final Map<EquipmentModel.LayerType, List<EquipmentModel.Layer>> The field for thelayersrecord component. -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic EquipmentModel.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.getLayers(EquipmentModel.LayerType layerType) 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
- Mappings:
Namespace Name Mixin selector named LAYER_LIST_CODECLnet/minecraft/client/render/entity/equipment/EquipmentModel;LAYER_LIST_CODEC:Lcom/mojang/serialization/Codec;intermediary field_54121Lnet/minecraft/class_10186;field_54121:Lcom/mojang/serialization/Codec;official cLhmw;c:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/entity/equipment/EquipmentModel;CODEC:Lcom/mojang/serialization/Codec;intermediary field_54120Lnet/minecraft/class_10186;field_54120:Lcom/mojang/serialization/Codec;official aLhmw;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
EquipmentModel
-
-
Method Details
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/client/render/entity/equipment/EquipmentModel;builder()Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Builder;intermediary method_63994Lnet/minecraft/class_10186;method_63994()Lnet/minecraft/class_10186$class_10187;official aLhmw;a()Lhmw$a;
-
getLayers
- Mappings:
Namespace Name Mixin selector named getLayersLnet/minecraft/client/render/entity/equipment/EquipmentModel;getLayers(Lnet/minecraft/client/render/entity/equipment/EquipmentModel$LayerType;)Ljava/util/List;intermediary method_63996Lnet/minecraft/class_10186;method_63996(Lnet/minecraft/class_10186$class_10190;)Ljava/util/List;official aLhmw;a(Lhmw$d;)Ljava/util/List;
-
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. 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
-