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
  • Field Details

    • id

      private final RegistryKey<Item> id
      The field for the id record component.
    • translationKey

      private final Optional<String> translationKey
      The field for the translationKey record component.
    • field_44045

      static final com.mojang.serialization.Codec<class_8390.class_8394> 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

  • Method Details

    • method_50601

      public class_8390.class_8393 method_50601()
      Specified by:
      method_50601 in interface class_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

      public boolean method_50602(ServerPlayerEntity serverPlayerEntity, int int2, boolean bool)
      Specified by:
      method_50602 in interface class_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

      public Text method_50604()
      Specified by:
      method_50604 in interface class_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

      public static String method_50617(RegistryKey<Item> registryKey)
      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

      public final 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public RegistryKey<Item> id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • translationKey

      public Optional<String> translationKey()
      Returns the value of the translationKey record component.
      Returns:
      the value of the translationKey record component