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$d
intermediary net/minecraft/class_8390$class_8394
named net/minecraft/class_8390$class_8394
official e
intermediary comp_1420
named id
official f
intermediary comp_1421
named 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 theid
record component.The field for thetranslationKey
record 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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.boolean
method_50602
(ServerPlayerEntity serverPlayerEntity, int int2, boolean bool) static String
method_50617
(RegistryKey<Item> registryKey) final String
toString()
Returns a string representation of this record class.Returns the value of thetranslationKey
record component.
-
Field Details
-
id
The field for theid
record component. -
translationKey
The field for thetranslationKey
record component. -
field_44045
- Mappings:
Namespace Name Mixin selector official g
Lbgw$d;g:Lcom/mojang/serialization/Codec;
intermediary field_44045
Lnet/minecraft/class_8390$class_8394;field_44045:Lcom/mojang/serialization/Codec;
named field_44045
Lnet/minecraft/class_8390$class_8394;field_44045:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_8394
-
-
Method Details
-
method_50601
- Specified by:
method_50601
in interfaceclass_8390
- Mappings:
Namespace Name Mixin selector official a
Lbgw;a()Lbgw$c;
intermediary method_50601
Lnet/minecraft/class_8390;method_50601()Lnet/minecraft/class_8390$class_8393;
named method_50601
Lnet/minecraft/class_8390;method_50601()Lnet/minecraft/class_8390$class_8393;
-
method_50602
- Specified by:
method_50602
in interfaceclass_8390
- Mappings:
Namespace Name Mixin selector official a
Lbgw;a(Lail;IZ)Z
intermediary method_50602
Lnet/minecraft/class_8390;method_50602(Lnet/minecraft/class_3222;IZ)Z
named method_50602
Lnet/minecraft/class_8390;method_50602(Lnet/minecraft/server/network/ServerPlayerEntity;IZ)Z
-
method_50604
- Specified by:
method_50604
in interfaceclass_8390
- Mappings:
Namespace Name Mixin selector official b
Lbgw;b()Lsw;
intermediary method_50604
Lnet/minecraft/class_8390;method_50604()Lnet/minecraft/class_2561;
named method_50604
Lnet/minecraft/class_8390;method_50604()Lnet/minecraft/text/Text;
-
method_50617
- Mappings:
Namespace Name Mixin selector official a
Lbgw$d;a(Lacx;)Ljava/lang/String;
intermediary method_50617
Lnet/minecraft/class_8390$class_8394;method_50617(Lnet/minecraft/class_5321;)Ljava/lang/String;
named method_50617
Lnet/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 theid
record component.- Returns:
- the value of the
id
record component
-
translationKey
Returns the value of thetranslationKey
record component.- Returns:
- the value of the
translationKey
record component
-