Record Class ArmorModelSet<T>
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.ArmorModelSet<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArmorModelSet(T head, T chest, T legs, T feet) Creates an instance of aArmorModelSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <M extends HumanoidModel<?>>
ArmorModelSet<M> bake(ArmorModelSet<ModelLayerLocation> locations, EntityModelSet modelSet, Function<ModelPart, M> factory) 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.get(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> ArmorModelSet<U> voidputFrom(ArmorModelSet<LayerDefinition> values, ImmutableMap.Builder<T, LayerDefinition> output) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
head
The field for theheadrecord component. -
chest
The field for thechestrecord component. -
legs
The field for thelegsrecord component. -
feet
The field for thefeetrecord component.
-
-
Constructor Details
-
ArmorModelSet
Creates an instance of aArmorModelSetrecord class.- Parameters:
head- the value for theheadrecord componentchest- the value for thechestrecord componentlegs- the value for thelegsrecord componentfeet- the value for thefeetrecord component
-
-
Method Details
-
get
-
map
-
putFrom
public void putFrom(ArmorModelSet<LayerDefinition> values, ImmutableMap.Builder<T, LayerDefinition> output) -
bake
public static <M extends HumanoidModel<?>> ArmorModelSet<M> bake(ArmorModelSet<ModelLayerLocation> locations, EntityModelSet modelSet, Function<ModelPart, M> factory) -
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). -
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
-