Package net.minecraft

Record Class class_10591

java.lang.Object
java.lang.Record
net.minecraft.class_10591
Record Components:
item -
count -
components -

public record class_10591(RegistryEntry<Item> item, int count, ComponentChanges components) extends Record
Mappings:
Namespace Name
named net/minecraft/class_10591
intermediary net/minecraft/class_10591
official dcy
named item
intermediary comp_3483
official c
named count
intermediary comp_3484
official d
named components
intermediary comp_3485
official e
  • 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 ComponentChanges components
      The field for the components record component.
    • field_55716

      private static final com.mojang.serialization.Codec<class_10591> field_55716
      Mappings:
      Namespace Name Mixin selector
      named field_55716 Lnet/minecraft/class_10591;field_55716:Lcom/mojang/serialization/Codec;
      intermediary field_55716 Lnet/minecraft/class_10591;field_55716:Lcom/mojang/serialization/Codec;
      official f Ldcy;f:Lcom/mojang/serialization/Codec;
    • field_55714

      public static final com.mojang.serialization.Codec<class_10591> field_55714
      Mappings:
      Namespace Name Mixin selector
      named field_55714 Lnet/minecraft/class_10591;field_55714:Lcom/mojang/serialization/Codec;
      intermediary field_55714 Lnet/minecraft/class_10591;field_55714:Lcom/mojang/serialization/Codec;
      official a Ldcy;a:Lcom/mojang/serialization/Codec;
    • field_55715

      public static final PacketCodec<RegistryByteBuf,class_10591> field_55715
      Mappings:
      Namespace Name Mixin selector
      named field_55715 Lnet/minecraft/class_10591;field_55715:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_55715 Lnet/minecraft/class_10591;field_55715:Lnet/minecraft/class_9139;
      official b Ldcy;b:Lyn;
  • Constructor Details

  • Method Details

    • method_66341

      private static com.mojang.serialization.DataResult<class_10591> method_66341(class_10591 class_10591)
      Mappings:
      Namespace Name Mixin selector
      named method_66341 Lnet/minecraft/class_10591;method_66341(Lnet/minecraft/class_10591;)Lcom/mojang/serialization/DataResult;
      intermediary method_66341 Lnet/minecraft/class_10591;method_66341(Lnet/minecraft/class_10591;)Lcom/mojang/serialization/DataResult;
      official a Ldcy;a(Ldcy;)Lcom/mojang/serialization/DataResult;
    • method_66340

      public ItemStack method_66340(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named method_66340 Lnet/minecraft/class_10591;method_66340(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
      intermediary method_66340 Lnet/minecraft/class_10591;method_66340(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
      official a Ldcy;a(Lcxh;)Lcxh;
    • method_66338

      public SlotDisplay method_66338()
      Mappings:
      Namespace Name Mixin selector
      named method_66338 Lnet/minecraft/class_10591;method_66338()Lnet/minecraft/recipe/display/SlotDisplay;
      intermediary method_66338 Lnet/minecraft/class_10591;method_66338()Lnet/minecraft/class_10302;
      official a Ldcy;a()Lddh;
    • 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 ComponentChanges components()
      Returns the value of the components record component.
      Returns:
      the value of the components record component