Record Class EquipmentModel.Layer

java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.equipment.EquipmentModel.Layer
Record Components:
textureId -
dyeable -
usePlayerTexture -
Enclosing class:
EquipmentModel

@Environment(CLIENT) public static record EquipmentModel.Layer(Identifier textureId, Optional<EquipmentModel.Dyeable> dyeable, boolean usePlayerTexture) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/entity/equipment/EquipmentModel$Layer
intermediary net/minecraft/class_10186$class_10189
official hgz$c
named textureId
intermediary comp_3171
official b
named dyeable
intermediary comp_3172
official c
named usePlayerTexture
intermediary comp_3173
official d
  • Field Details Link icon

    • textureId Link icon

      private final Identifier textureId
      The field for the textureId record component.
    • dyeable Link icon

      private final Optional<EquipmentModel.Dyeable> dyeable
      The field for the dyeable record component.
    • usePlayerTexture Link icon

      private final boolean usePlayerTexture
      The field for the usePlayerTexture record component.
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<EquipmentModel.Layer> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_54124 Lnet/minecraft/class_10186$class_10189;field_54124:Lcom/mojang/serialization/Codec;
      official a Lhgz$c;a:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

    • Layer Link icon

      public Layer(Identifier textureId)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;<init>(Lnet/minecraft/util/Identifier;)V
      intermediary <init> Lnet/minecraft/class_10186$class_10189;<init>(Lnet/minecraft/class_2960;)V
      official <init> Lhgz$c;<init>(Lakv;)V
    • Layer Link icon

      public Layer(Identifier identifier, Optional<EquipmentModel.Dyeable> optional, boolean bool)
  • Method Details Link icon

    • createWithLeatherColor Link icon

      public static EquipmentModel.Layer createWithLeatherColor(Identifier textureId, boolean dyeable)
      Mappings:
      Namespace Name Mixin selector
      named createWithLeatherColor Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;createWithLeatherColor(Lnet/minecraft/util/Identifier;Z)Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;
      intermediary method_64005 Lnet/minecraft/class_10186$class_10189;method_64005(Lnet/minecraft/class_2960;Z)Lnet/minecraft/class_10186$class_10189;
      official a Lhgz$c;a(Lakv;Z)Lhgz$c;
    • create Link icon

      public static EquipmentModel.Layer create(Identifier textureId, boolean dyeable)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;create(Lnet/minecraft/util/Identifier;Z)Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;
      intermediary method_64009 Lnet/minecraft/class_10186$class_10189;method_64009(Lnet/minecraft/class_2960;Z)Lnet/minecraft/class_10186$class_10189;
      official b Lhgz$c;b(Lakv;Z)Lhgz$c;
    • getFullTextureId Link icon

      public Identifier getFullTextureId(EquipmentModel.LayerType layerType)
      Mappings:
      Namespace Name Mixin selector
      named getFullTextureId Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;getFullTextureId(Lnet/minecraft/client/render/entity/equipment/EquipmentModel$LayerType;)Lnet/minecraft/util/Identifier;
      intermediary method_64007 Lnet/minecraft/class_10186$class_10189;method_64007(Lnet/minecraft/class_10186$class_10190;)Lnet/minecraft/class_2960;
      official a Lhgz$c;a(Lhgz$d;)Lakv;
    • toString Link icon

      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 Link icon

      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 Link icon

      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • textureId Link icon

      public Identifier textureId()
      Returns the value of the textureId record component.
      Returns:
      the value of the textureId record component
    • dyeable Link icon

      public Optional<EquipmentModel.Dyeable> dyeable()
      Returns the value of the dyeable record component.
      Returns:
      the value of the dyeable record component
    • usePlayerTexture Link icon

      public boolean usePlayerTexture()
      Returns the value of the usePlayerTexture record component.
      Returns:
      the value of the usePlayerTexture record component