Package net.minecraft.item.trim
Record Class ArmorTrimMaterial
java.lang.Object
java.lang.Record
net.minecraft.item.trim.ArmorTrimMaterial
- Record Components:
assetName-ingredient-itemModelIndex-overrideArmorMaterials-description-
public record ArmorTrimMaterial(String assetName, RegistryEntry<Item> ingredient, float itemModelIndex, Map<RegistryEntry<ArmorMaterial>,String> overrideArmorMaterials, Text description)
extends Record
- Mappings:
Namespace Name named net/minecraft/item/trim/ArmorTrimMaterialintermediary net/minecraft/class_8054official cwynamed assetNameintermediary comp_1208official enamed ingredientintermediary comp_1209official fnamed itemModelIndexintermediary comp_1210official gnamed overrideArmorMaterialsintermediary comp_1237official hnamed descriptionintermediary comp_1212official i
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theassetNamerecord component.static final com.mojang.serialization.Codec<ArmorTrimMaterial> private final TextThe field for thedescriptionrecord component.static final com.mojang.serialization.Codec<RegistryEntry<ArmorTrimMaterial>> static final PacketCodec<RegistryByteBuf, RegistryEntry<ArmorTrimMaterial>> private final RegistryEntry<Item> The field for theingredientrecord component.private final floatThe field for theitemModelIndexrecord component.private final Map<RegistryEntry<ArmorMaterial>, String> The field for theoverrideArmorMaterialsrecord component.static final PacketCodec<RegistryByteBuf, ArmorTrimMaterial> -
Constructor Summary
ConstructorsConstructorDescriptionArmorTrimMaterial(String string, RegistryEntry<Item> registryEntry, float float2, Map<RegistryEntry<ArmorMaterial>, String> map, Text text) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassetNamerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theingredientrecord component.floatReturns the value of theitemModelIndexrecord component.static ArmorTrimMaterialof(String assetName, Item ingredient, float itemModelIndex, Text description, Map<RegistryEntry<ArmorMaterial>, String> overrideArmorMaterials) Returns the value of theoverrideArmorMaterialsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
assetName
The field for theassetNamerecord component. -
ingredient
The field for theingredientrecord component. -
itemModelIndex
private final float itemModelIndexThe field for theitemModelIndexrecord component. -
overrideArmorMaterials
The field for theoverrideArmorMaterialsrecord component. -
description
The field for thedescriptionrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/item/trim/ArmorTrimMaterial;CODEC:Lcom/mojang/serialization/Codec;intermediary field_42002Lnet/minecraft/class_8054;field_42002:Lcom/mojang/serialization/Codec;official aLcwy;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/item/trim/ArmorTrimMaterial;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49280Lnet/minecraft/class_8054;field_49280:Lnet/minecraft/class_9139;official bLcwy;b:Lyx;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODECLnet/minecraft/item/trim/ArmorTrimMaterial;ENTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_42003Lnet/minecraft/class_8054;field_42003:Lcom/mojang/serialization/Codec;official cLcwy;c:Lcom/mojang/serialization/Codec;
-
ENTRY_PACKET_CODEC
public static final PacketCodec<RegistryByteBuf,RegistryEntry<ArmorTrimMaterial>> ENTRY_PACKET_CODEC- Mappings:
Namespace Name Mixin selector named ENTRY_PACKET_CODECLnet/minecraft/item/trim/ArmorTrimMaterial;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49281Lnet/minecraft/class_8054;field_49281:Lnet/minecraft/class_9139;official dLcwy;d:Lyx;
-
-
Constructor Details
-
ArmorTrimMaterial
public ArmorTrimMaterial(String string, RegistryEntry<Item> registryEntry, float float2, Map<RegistryEntry<ArmorMaterial>, String> map, Text text)
-
-
Method Details
-
of
public static ArmorTrimMaterial of(String assetName, Item ingredient, float itemModelIndex, Text description, Map<RegistryEntry<ArmorMaterial>, String> overrideArmorMaterials) - Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/item/trim/ArmorTrimMaterial;of(Ljava/lang/String;Lnet/minecraft/item/Item;FLnet/minecraft/text/Text;Ljava/util/Map;)Lnet/minecraft/item/trim/ArmorTrimMaterial;intermediary method_48438Lnet/minecraft/class_8054;method_48438(Ljava/lang/String;Lnet/minecraft/class_1792;FLnet/minecraft/class_2561;Ljava/util/Map;)Lnet/minecraft/class_8054;official aLcwy;a(Ljava/lang/String;Lcul;FLwz;Ljava/util/Map;)Lcwy;
-
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 '=='. -
assetName
Returns the value of theassetNamerecord component.- Returns:
- the value of the
assetNamerecord component
-
ingredient
Returns the value of theingredientrecord component.- Returns:
- the value of the
ingredientrecord component
-
itemModelIndex
public float itemModelIndex()Returns the value of theitemModelIndexrecord component.- Returns:
- the value of the
itemModelIndexrecord component
-
overrideArmorMaterials
Returns the value of theoverrideArmorMaterialsrecord component.- Returns:
- the value of the
overrideArmorMaterialsrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-