Package net.minecraft
Record Class class_8054
java.lang.Object
java.lang.Record
net.minecraft.class_8054
- Record Components:
assetName
-ingredient
-itemModelIndex
-incompatibleArmorMaterial
-description
-
public record class_8054(String assetName, RegistryEntry<Item> ingredient, float itemModelIndex, Optional<ArmorMaterials> incompatibleArmorMaterial, Text description)
extends Record
- Mappings:
Namespace Name official cgu
intermediary net/minecraft/class_8054
named net/minecraft/class_8054
official c
intermediary comp_1208
named assetName
official d
intermediary comp_1209
named ingredient
official e
intermediary comp_1210
named itemModelIndex
official f
intermediary comp_1211
named incompatibleArmorMaterial
official g
intermediary comp_1212
named description
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for theassetName
record component.private final Text
The field for thedescription
record component.static final com.mojang.serialization.Codec<class_8054>
static final com.mojang.serialization.Codec<RegistryEntry<class_8054>>
private final Optional<ArmorMaterials>
The field for theincompatibleArmorMaterial
record component.private final RegistryEntry<Item>
The field for theingredient
record component.private final float
The field for theitemModelIndex
record component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_8054
(String string, RegistryEntry<Item> registryEntry, float float2, Optional<ArmorMaterials> optional, Text text) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassetName
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theincompatibleArmorMaterial
record component.Returns the value of theingredient
record component.float
Returns the value of theitemModelIndex
record component.static class_8054
method_48438
(String string, Item item, float float2, Optional<ArmorMaterials> optional, Text text) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
assetName
The field for theassetName
record component. -
ingredient
The field for theingredient
record component. -
itemModelIndex
private final float itemModelIndexThe field for theitemModelIndex
record component. -
incompatibleArmorMaterial
The field for theincompatibleArmorMaterial
record component. -
description
The field for thedescription
record component. -
field_42002
- Mappings:
Namespace Name Mixin selector official a
Lcgu;a:Lcom/mojang/serialization/Codec;
intermediary field_42002
Lnet/minecraft/class_8054;field_42002:Lcom/mojang/serialization/Codec;
named field_42002
Lnet/minecraft/class_8054;field_42002:Lcom/mojang/serialization/Codec;
-
field_42003
- Mappings:
Namespace Name Mixin selector official b
Lcgu;b:Lcom/mojang/serialization/Codec;
intermediary field_42003
Lnet/minecraft/class_8054;field_42003:Lcom/mojang/serialization/Codec;
named field_42003
Lnet/minecraft/class_8054;field_42003:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_8054
public class_8054(String string, RegistryEntry<Item> registryEntry, float float2, Optional<ArmorMaterials> optional, Text text)
-
-
Method Details
-
method_48438
public static class_8054 method_48438(String string, Item item, float float2, Optional<ArmorMaterials> optional, Text text) - Mappings:
Namespace Name Mixin selector official a
Lcgu;a(Ljava/lang/String;Lcen;FLjava/util/Optional;Lta;)Lcgu;
intermediary method_48438
Lnet/minecraft/class_8054;method_48438(Ljava/lang/String;Lnet/minecraft/class_1792;FLjava/util/Optional;Lnet/minecraft/class_2561;)Lnet/minecraft/class_8054;
named method_48438
Lnet/minecraft/class_8054;method_48438(Ljava/lang/String;Lnet/minecraft/item/Item;FLjava/util/Optional;Lnet/minecraft/text/Text;)Lnet/minecraft/class_8054;
-
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 theassetName
record component.- Returns:
- the value of the
assetName
record component
-
ingredient
Returns the value of theingredient
record component.- Returns:
- the value of the
ingredient
record component
-
itemModelIndex
public float itemModelIndex()Returns the value of theitemModelIndex
record component.- Returns:
- the value of the
itemModelIndex
record component
-
incompatibleArmorMaterial
Returns the value of theincompatibleArmorMaterial
record component.- Returns:
- the value of the
incompatibleArmorMaterial
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-