Package net.minecraft

Record Class class_10938.class_10939

java.lang.Object
java.lang.Record
net.minecraft.class_10938.class_10939
Record Components:
item -
count -
components -
All Implemented Interfaces:
class_10938
Enclosing interface:
class_10938

public static record class_10938.class_10939(RegistryEntry<Item> item, int count, class_10936 components) extends Record implements class_10938
Mappings:
Namespace Name
named net/minecraft/class_10938$class_10939
intermediary net/minecraft/class_10938$class_10939
official wb$a
named item
intermediary comp_3876
official d
named count
intermediary comp_3877
official e
named components
intermediary comp_3878
official f
  • Field Details

    • item

      private final RegistryEntry<Item> item
      The field for the item record component.
    • count

      private final int count
      The field for the count record component.
    • components

      private final class_10936 components
      The field for the components record component.
    • field_58178

      public static final PacketCodec<RegistryByteBuf,class_10938.class_10939> field_58178
      Mappings:
      Namespace Name Mixin selector
      named field_58178 Lnet/minecraft/class_10938$class_10939;field_58178:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_58178 Lnet/minecraft/class_10938$class_10939;field_58178:Lnet/minecraft/class_9139;
      official c Lwb$a;c:Lze;
  • Constructor Details

  • Method Details

    • method_68850

      public boolean method_68850(ItemStack itemStack, class_10936.class_10937 class_10937)
      Specified by:
      method_68850 in interface class_10938
      Mappings:
      Namespace Name Mixin selector
      named method_68850 Lnet/minecraft/class_10938;method_68850(Lnet/minecraft/item/ItemStack;Lnet/minecraft/class_10936$class_10937;)Z
      intermediary method_68850 Lnet/minecraft/class_10938;method_68850(Lnet/minecraft/class_1799;Lnet/minecraft/class_10936$class_10937;)Z
      official a Lwb;a(Ldak;Lwa$a;)Z
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • item

      public RegistryEntry<Item> item()
      Returns the value of the item record component.
      Returns:
      the value of the item record component
    • count

      public int count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component
    • components

      public class_10936 components()
      Returns the value of the components record component.
      Returns:
      the value of the components record component