Package net.minecraft.item.equipment
Record Class EquipmentModel.Layer
java.lang.Object
java.lang.Record
net.minecraft.item.equipment.EquipmentModel.Layer
- Record Components:
textureId
-dyeable
-usePlayerTexture
-
- Enclosing class:
EquipmentModel
public static record EquipmentModel.Layer(Identifier textureId, Optional<EquipmentModel.Dyeable> dyeable, boolean usePlayerTexture)
extends Record
- Mappings:
Namespace Name named net/minecraft/item/equipment/EquipmentModel$Layer
intermediary net/minecraft/class_10186$class_10189
official dfr$c
named textureId
intermediary comp_3171
official b
named dyeable
intermediary comp_3172
official c
named usePlayerTexture
intermediary comp_3173
official d
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EquipmentModel.Layer> private final Optional
<EquipmentModel.Dyeable> The field for thedyeable
record component.private final Identifier
The field for thetextureId
record component.private final boolean
The field for theusePlayerTexture
record component. -
Constructor Summary
ConstructorDescriptionLayer
(Identifier textureId) Layer
(Identifier identifier, Optional<EquipmentModel.Dyeable> optional, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionstatic EquipmentModel.Layer
createDyeable
(Identifier textureId, boolean dyeable) static EquipmentModel.Layer
createDyeableLeather
(Identifier textureId, boolean dyeable) dyeable()
Returns the value of thedyeable
record component.final boolean
Indicates whether some other object is "equal to" this one.getFullTextureId
(EquipmentModel.LayerType layerType) final int
hashCode()
Returns a hash code value for this object.Returns the value of thetextureId
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theusePlayerTexture
record component.
-
Field Details
-
textureId
The field for thetextureId
record component. -
dyeable
The field for thedyeable
record component. -
usePlayerTexture
private final boolean usePlayerTextureThe field for theusePlayerTexture
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/item/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
Ldfr$c;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Layer
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/item/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>
Ldfr$c;<init>(Lalz;)V
-
Layer
-
-
Method Details
-
createDyeableLeather
- Mappings:
Namespace Name Mixin selector named createDyeableLeather
Lnet/minecraft/item/equipment/EquipmentModel$Layer;createDyeableLeather(Lnet/minecraft/util/Identifier;Z)Lnet/minecraft/item/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
Ldfr$c;a(Lalz;Z)Ldfr$c;
-
createDyeable
- Mappings:
Namespace Name Mixin selector named createDyeable
Lnet/minecraft/item/equipment/EquipmentModel$Layer;createDyeable(Lnet/minecraft/util/Identifier;Z)Lnet/minecraft/item/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
Ldfr$c;b(Lalz;Z)Ldfr$c;
-
getFullTextureId
- Mappings:
Namespace Name Mixin selector named getFullTextureId
Lnet/minecraft/item/equipment/EquipmentModel$Layer;getFullTextureId(Lnet/minecraft/item/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
Ldfr$c;a(Ldfr$d;)Lalz;
-
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 thetextureId
record component.- Returns:
- the value of the
textureId
record component
-
dyeable
Returns the value of thedyeable
record component.- Returns:
- the value of the
dyeable
record component
-
usePlayerTexture
public boolean usePlayerTexture()Returns the value of theusePlayerTexture
record component.- Returns:
- the value of the
usePlayerTexture
record component
-