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/EquipmentModelData
intermediary net/minecraft/class_11677
official hmt
named head
intermediary comp_4542
official a
named chest
intermediary comp_4543
official b
named legs
intermediary comp_4544
official c
named feet
intermediary comp_4545
official d
  • Field Details

    • chest

      private final T chest
      The field for the chest record component.
    • legs

      private final T legs
      The field for the legs record component.
    • feet

      private final T feet
      The field for the feet record component.
  • Constructor Details

    • EquipmentModelData

      public EquipmentModelData(T t, T t2, T t3, T t4)
  • Method Details

    • getModelData

      public T getModelData(EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named getModelData Lnet/minecraft/client/render/entity/model/EquipmentModelData;getModelData(Lnet/minecraft/entity/EquipmentSlot;)Ljava/lang/Object;
      intermediary method_72959 Lnet/minecraft/class_11677;method_72959(Lnet/minecraft/class_1304;)Ljava/lang/Object;
      official a Lhmt;a(Lcef;)Ljava/lang/Object;
    • map

      public <U> EquipmentModelData<U> map(Function<? super T,? extends U> f)
      Mappings:
      Namespace Name Mixin selector
      named map Lnet/minecraft/client/render/entity/model/EquipmentModelData;map(Ljava/util/function/Function;)Lnet/minecraft/client/render/entity/model/EquipmentModelData;
      intermediary method_72962 Lnet/minecraft/class_11677;method_72962(Ljava/util/function/Function;)Lnet/minecraft/class_11677;
      official a Lhmt;a(Ljava/util/function/Function;)Lhmt;
    • addTo

      public void addTo(EquipmentModelData<TexturedModelData> texturedModelData, ImmutableMap.Builder<T,TexturedModelData> builder)
      Mappings:
      Namespace Name Mixin selector
      named addTo Lnet/minecraft/client/render/entity/model/EquipmentModelData;addTo(Lnet/minecraft/client/render/entity/model/EquipmentModelData;Lcom/google/common/collect/ImmutableMap$Builder;)V
      intermediary method_72960 Lnet/minecraft/class_11677;method_72960(Lnet/minecraft/class_11677;Lcom/google/common/collect/ImmutableMap$Builder;)V
      official a Lhmt;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 mapToEntityModel Lnet/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_72961 Lnet/minecraft/class_11677;method_72961(Lnet/minecraft/class_11677;Lnet/minecraft/class_5599;Ljava/util/function/Function;)Lnet/minecraft/class_11677;
      official a Lhmt;a(Lhmt;Lgyk;Ljava/util/function/Function;)Lhmt;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • head

      public T head()
      Returns the value of the head record component.
      Returns:
      the value of the head record component
    • chest

      public T chest()
      Returns the value of the chest record component.
      Returns:
      the value of the chest record component
    • legs

      public T legs()
      Returns the value of the legs record component.
      Returns:
      the value of the legs record component
    • feet

      public T feet()
      Returns the value of the feet record component.
      Returns:
      the value of the feet record component