Record Class RecipeBookAddS2CPacket.Entry

java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.RecipeBookAddS2CPacket.Entry
Record Components:
contents -
flags -
Enclosing class:
RecipeBookAddS2CPacket

public static record RecipeBookAddS2CPacket.Entry(RecipeDisplayEntry contents, byte flags) extends Record
Mappings:
Namespace Name
named net/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry
intermediary net/minecraft/class_10266$class_10267
official afe$a
named contents
intermediary comp_3233
official d
named flags
intermediary comp_3234
official e
  • Field Details

    • contents

      private final RecipeDisplayEntry contents
      The field for the contents record component.
    • flags

      private final byte flags
      The field for the flags record component.
    • SHOW_NOTIFICATION

      public static final byte SHOW_NOTIFICATION
      If set, shows a toast for the unlocked recipe. Has value 0x1.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SHOW_NOTIFICATION Lnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;SHOW_NOTIFICATION:B
      intermediary field_54518 Lnet/minecraft/class_10266$class_10267;field_54518:B
      official a Lafe$a;a:B
    • HIGHLIGHTED

      public static final byte HIGHLIGHTED
      If set, plays an animation when the recipe is first viewed on the recipe book. Has value 0x2.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HIGHLIGHTED Lnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;HIGHLIGHTED:B
      intermediary field_54519 Lnet/minecraft/class_10266$class_10267;field_54519:B
      official b Lafe$a;b:B
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,RecipeBookAddS2CPacket.Entry> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_54520 Lnet/minecraft/class_10266$class_10267;field_54520:Lnet/minecraft/class_9139;
      official c Lafe$a;c:Lzt;
  • Constructor Details

    • Entry

      public Entry(RecipeDisplayEntry display, boolean showNotification, boolean highlighted)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;<init>(Lnet/minecraft/recipe/RecipeDisplayEntry;ZZ)V
      intermediary <init> Lnet/minecraft/class_10266$class_10267;<init>(Lnet/minecraft/class_10297;ZZ)V
      official <init> Lafe$a;<init>(Lddj;ZZ)V
    • Entry

      public Entry(RecipeDisplayEntry recipeDisplayEntry, byte byte2)
  • Method Details

    • shouldShowNotification

      public boolean shouldShowNotification()
      Mappings:
      Namespace Name Mixin selector
      named shouldShowNotification Lnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;shouldShowNotification()Z
      intermediary method_64561 Lnet/minecraft/class_10266$class_10267;method_64561()Z
      official a Lafe$a;a()Z
    • isHighlighted

      public boolean isHighlighted()
      Mappings:
      Namespace Name Mixin selector
      named isHighlighted Lnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;isHighlighted()Z
      intermediary method_64562 Lnet/minecraft/class_10266$class_10267;method_64562()Z
      official b Lafe$a;b()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.
    • contents

      public RecipeDisplayEntry contents()
      Returns the value of the contents record component.
      Returns:
      the value of the contents record component
    • flags

      public byte flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component