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$Layerintermediary net/minecraft/class_10186$class_10189official hmw$cnamed textureIdintermediary comp_3171official bnamed dyeableintermediary comp_3172official cnamed usePlayerTextureintermediary comp_3173official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EquipmentModel.Layer> private final Optional<EquipmentModel.Dyeable> The field for thedyeablerecord component.private final IdentifierThe field for thetextureIdrecord component.private final booleanThe field for theusePlayerTexturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLayer(Identifier textureId) Layer(Identifier identifier, Optional<EquipmentModel.Dyeable> optional, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionstatic EquipmentModel.Layercreate(Identifier textureId, boolean dyeable) static EquipmentModel.LayercreateWithLeatherColor(Identifier textureId, boolean dyeable) dyeable()Returns the value of thedyeablerecord component.final booleanIndicates whether some other object is "equal to" this one.getFullTextureId(EquipmentModel.LayerType layerType) final inthashCode()Returns a hash code value for this object.Returns the value of thetextureIdrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theusePlayerTexturerecord component.
-
Field Details
-
textureId
The field for thetextureIdrecord component. -
dyeable
The field for thedyeablerecord component. -
usePlayerTexture
private final boolean usePlayerTextureThe field for theusePlayerTexturerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;CODEC:Lcom/mojang/serialization/Codec;intermediary field_54124Lnet/minecraft/class_10186$class_10189;field_54124:Lcom/mojang/serialization/Codec;official aLhmw$c;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Layer
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;<init>(Lnet/minecraft/util/Identifier;)Vintermediary <init>Lnet/minecraft/class_10186$class_10189;<init>(Lnet/minecraft/class_2960;)Vofficial <init>Lhmw$c;<init>(Lalr;)V
-
Layer
-
-
Method Details
-
createWithLeatherColor
- Mappings:
Namespace Name Mixin selector named createWithLeatherColorLnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;createWithLeatherColor(Lnet/minecraft/util/Identifier;Z)Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;intermediary method_64005Lnet/minecraft/class_10186$class_10189;method_64005(Lnet/minecraft/class_2960;Z)Lnet/minecraft/class_10186$class_10189;official aLhmw$c;a(Lalr;Z)Lhmw$c;
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;create(Lnet/minecraft/util/Identifier;Z)Lnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;intermediary method_64009Lnet/minecraft/class_10186$class_10189;method_64009(Lnet/minecraft/class_2960;Z)Lnet/minecraft/class_10186$class_10189;official bLhmw$c;b(Lalr;Z)Lhmw$c;
-
getFullTextureId
- Mappings:
Namespace Name Mixin selector named getFullTextureIdLnet/minecraft/client/render/entity/equipment/EquipmentModel$Layer;getFullTextureId(Lnet/minecraft/client/render/entity/equipment/EquipmentModel$LayerType;)Lnet/minecraft/util/Identifier;intermediary method_64007Lnet/minecraft/class_10186$class_10189;method_64007(Lnet/minecraft/class_10186$class_10190;)Lnet/minecraft/class_2960;official aLhmw$c;a(Lhmw$d;)Lalr;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
textureId
Returns the value of thetextureIdrecord component.- Returns:
- the value of the
textureIdrecord component
-
dyeable
Returns the value of thedyeablerecord component.- Returns:
- the value of the
dyeablerecord component
-
usePlayerTexture
public boolean usePlayerTexture()Returns the value of theusePlayerTexturerecord component.- Returns:
- the value of the
usePlayerTexturerecord component
-