Package net.minecraft
Record Class class_8390.class_8394
java.lang.Object
java.lang.Record
net.minecraft.class_8390.class_8394
- Record Components:
id-translationKey-
- All Implemented Interfaces:
class_8390
- Enclosing interface:
class_8390
public static record class_8390.class_8394(RegistryKey<Item> id, Optional<String> translationKey)
extends Record
implements class_8390
- Mappings:
Namespace Name official bgw$dintermediary net/minecraft/class_8390$class_8394named net/minecraft/class_8390$class_8394official eintermediary comp_1420named idofficial fintermediary comp_1421named translationKey
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_8390
class_8390.class_8391, class_8390.class_8392, class_8390.class_8393, class_8390.class_8394, class_8390.class_8395 -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final com.mojang.serialization.Codec<class_8390.class_8394>private final RegistryKey<Item>The field for theidrecord component.The field for thetranslationKeyrecord component.Fields inherited from interface net.minecraft.class_8390
field_44030, field_44031, field_44032, field_44033 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanmethod_50602(ServerPlayerEntity serverPlayerEntity, int int2, boolean bool) static Stringmethod_50617(RegistryKey<Item> registryKey) final StringtoString()Returns a string representation of this record class.Returns the value of thetranslationKeyrecord component.
-
Field Details
-
id
The field for theidrecord component. -
translationKey
The field for thetranslationKeyrecord component. -
field_44045
- Mappings:
Namespace Name Mixin selector official gLbgw$d;g:Lcom/mojang/serialization/Codec;intermediary field_44045Lnet/minecraft/class_8390$class_8394;field_44045:Lcom/mojang/serialization/Codec;named field_44045Lnet/minecraft/class_8390$class_8394;field_44045:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_8394
-
-
Method Details
-
method_50601
- Specified by:
method_50601in interfaceclass_8390- Mappings:
Namespace Name Mixin selector official aLbgw;a()Lbgw$c;intermediary method_50601Lnet/minecraft/class_8390;method_50601()Lnet/minecraft/class_8390$class_8393;named method_50601Lnet/minecraft/class_8390;method_50601()Lnet/minecraft/class_8390$class_8393;
-
method_50602
- Specified by:
method_50602in interfaceclass_8390- Mappings:
Namespace Name Mixin selector official aLbgw;a(Lail;IZ)Zintermediary method_50602Lnet/minecraft/class_8390;method_50602(Lnet/minecraft/class_3222;IZ)Znamed method_50602Lnet/minecraft/class_8390;method_50602(Lnet/minecraft/server/network/ServerPlayerEntity;IZ)Z
-
method_50604
- Specified by:
method_50604in interfaceclass_8390- Mappings:
Namespace Name Mixin selector official bLbgw;b()Lsw;intermediary method_50604Lnet/minecraft/class_8390;method_50604()Lnet/minecraft/class_2561;named method_50604Lnet/minecraft/class_8390;method_50604()Lnet/minecraft/text/Text;
-
method_50617
- Mappings:
Namespace Name Mixin selector official aLbgw$d;a(Lacx;)Ljava/lang/String;intermediary method_50617Lnet/minecraft/class_8390$class_8394;method_50617(Lnet/minecraft/class_5321;)Ljava/lang/String;named method_50617Lnet/minecraft/class_8390$class_8394;method_50617(Lnet/minecraft/registry/RegistryKey;)Ljava/lang/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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
translationKey
Returns the value of thetranslationKeyrecord component.- Returns:
- the value of the
translationKeyrecord component
-