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 Summary
Modifier and TypeFieldDescriptionprivate final RecipeDisplayEntry
The field for thecontents
record component.private final byte
The field for theflags
record component.static final byte
If set, plays an animation when the recipe is first viewed on the recipe book.static final PacketCodec
<RegistryByteBuf, RecipeBookAddS2CPacket.Entry> static final byte
If set, shows a toast for the unlocked recipe. -
Constructor Summary
ConstructorDescriptionEntry
(RecipeDisplayEntry display, boolean showNotification, boolean highlighted) Entry
(RecipeDisplayEntry recipeDisplayEntry, byte byte2) -
Method Summary
Modifier and TypeMethodDescriptioncontents()
Returns the value of thecontents
record component.final boolean
Indicates whether some other object is "equal to" this one.byte
flags()
Returns the value of theflags
record component.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
contents
The field for thecontents
record component. -
flags
private final byte flagsThe field for theflags
record component. -
SHOW_NOTIFICATION
public static final byte SHOW_NOTIFICATIONIf 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 HIGHLIGHTEDIf 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
- 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
- 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
-
-
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
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
contents
Returns the value of thecontents
record component.- Returns:
- the value of the
contents
record component
-
flags
public byte flags()Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-