Record Class EquipmentModelData<T>
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.model.EquipmentModelData<T>
- Record Components:
head-chest-legs-feet-
@Environment(CLIENT)
public record EquipmentModelData<T>(T head, T chest, T legs, T feet)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/model/EquipmentModelDataintermediary net/minecraft/class_11677official hmtnamed headintermediary comp_4542official anamed chestintermediary comp_4543official bnamed legsintermediary comp_4544official cnamed feetintermediary comp_4545official d
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(EquipmentModelData<TexturedModelData> texturedModelData, ImmutableMap.Builder<T, TexturedModelData> builder) chest()Returns the value of thechestrecord component.final booleanIndicates whether some other object is "equal to" this one.feet()Returns the value of thefeetrecord component.getModelData(EquipmentSlot slot) final inthashCode()Returns a hash code value for this object.head()Returns the value of theheadrecord component.legs()Returns the value of thelegsrecord component.<U> EquipmentModelData<U> static <M extends BipedEntityModel<?>>
EquipmentModelData<M> mapToEntityModel(EquipmentModelData<EntityModelLayer> data, LoadedEntityModels models, Function<ModelPart, M> modelPartToModel) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
EquipmentModelData
-
-
Method Details
-
getModelData
- Mappings:
Namespace Name Mixin selector named getModelDataLnet/minecraft/client/render/entity/model/EquipmentModelData;getModelData(Lnet/minecraft/entity/EquipmentSlot;)Ljava/lang/Object;intermediary method_72959Lnet/minecraft/class_11677;method_72959(Lnet/minecraft/class_1304;)Ljava/lang/Object;official aLhmt;a(Lcef;)Ljava/lang/Object;
-
map
- Mappings:
Namespace Name Mixin selector named mapLnet/minecraft/client/render/entity/model/EquipmentModelData;map(Ljava/util/function/Function;)Lnet/minecraft/client/render/entity/model/EquipmentModelData;intermediary method_72962Lnet/minecraft/class_11677;method_72962(Ljava/util/function/Function;)Lnet/minecraft/class_11677;official aLhmt;a(Ljava/util/function/Function;)Lhmt;
-
addTo
public void addTo(EquipmentModelData<TexturedModelData> texturedModelData, ImmutableMap.Builder<T, TexturedModelData> builder) - Mappings:
Namespace Name Mixin selector named addToLnet/minecraft/client/render/entity/model/EquipmentModelData;addTo(Lnet/minecraft/client/render/entity/model/EquipmentModelData;Lcom/google/common/collect/ImmutableMap$Builder;)Vintermediary method_72960Lnet/minecraft/class_11677;method_72960(Lnet/minecraft/class_11677;Lcom/google/common/collect/ImmutableMap$Builder;)Vofficial aLhmt;a(Lhmt;Lcom/google/common/collect/ImmutableMap$Builder;)V
-
mapToEntityModel
public static <M extends BipedEntityModel<?>> EquipmentModelData<M> mapToEntityModel(EquipmentModelData<EntityModelLayer> data, LoadedEntityModels models, Function<ModelPart, M> modelPartToModel) - Mappings:
Namespace Name Mixin selector named mapToEntityModelLnet/minecraft/client/render/entity/model/EquipmentModelData;mapToEntityModel(Lnet/minecraft/client/render/entity/model/EquipmentModelData;Lnet/minecraft/client/render/entity/model/LoadedEntityModels;Ljava/util/function/Function;)Lnet/minecraft/client/render/entity/model/EquipmentModelData;intermediary method_72961Lnet/minecraft/class_11677;method_72961(Lnet/minecraft/class_11677;Lnet/minecraft/class_5599;Ljava/util/function/Function;)Lnet/minecraft/class_11677;official aLhmt;a(Lhmt;Lgyk;Ljava/util/function/Function;)Lhmt;
-
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). -
head
Returns the value of theheadrecord component.- Returns:
- the value of the
headrecord component
-
chest
Returns the value of thechestrecord component.- Returns:
- the value of the
chestrecord component
-
legs
Returns the value of thelegsrecord component.- Returns:
- the value of the
legsrecord component
-
feet
Returns the value of thefeetrecord component.- Returns:
- the value of the
feetrecord component
-