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$Entryintermediary net/minecraft/class_10266$class_10267official aer$anamed contentsintermediary comp_3233official dnamed flagsintermediary comp_3234official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipeDisplayEntryThe field for thecontentsrecord component.private final byteThe field for theflagsrecord component.static final byteIf set, plays an animation when the recipe is first viewed on the recipe book.static final PacketCodec<RegistryByteBuf, RecipeBookAddS2CPacket.Entry> static final byteIf set, shows a toast for the unlocked recipe. -
Constructor Summary
ConstructorsConstructorDescriptionEntry(RecipeDisplayEntry display, boolean showNotification, boolean highlighted) Entry(RecipeDisplayEntry recipeDisplayEntry, byte byte2) -
Method Summary
Modifier and TypeMethodDescriptioncontents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
contents
The field for thecontentsrecord component. -
flags
private final byte flagsThe field for theflagsrecord 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_NOTIFICATIONLnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;SHOW_NOTIFICATION:Bintermediary field_54518Lnet/minecraft/class_10266$class_10267;field_54518:Bofficial aLaer$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 HIGHLIGHTEDLnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;HIGHLIGHTED:Bintermediary field_54519Lnet/minecraft/class_10266$class_10267;field_54519:Bofficial bLaer$a;b:B
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_54520Lnet/minecraft/class_10266$class_10267;field_54520:Lnet/minecraft/class_9139;official cLaer$a;c:Lze;
-
-
Constructor Details
-
Entry
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;<init>(Lnet/minecraft/recipe/RecipeDisplayEntry;ZZ)Vintermediary <init>Lnet/minecraft/class_10266$class_10267;<init>(Lnet/minecraft/class_10297;ZZ)Vofficial <init>Laer$a;<init>(Ldgi;ZZ)V
-
Entry
-
-
Method Details
-
shouldShowNotification
public boolean shouldShowNotification()- Mappings:
Namespace Name Mixin selector named shouldShowNotificationLnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;shouldShowNotification()Zintermediary method_64561Lnet/minecraft/class_10266$class_10267;method_64561()Zofficial aLaer$a;a()Z
-
isHighlighted
public boolean isHighlighted()- Mappings:
Namespace Name Mixin selector named isHighlightedLnet/minecraft/network/packet/s2c/play/RecipeBookAddS2CPacket$Entry;isHighlighted()Zintermediary method_64562Lnet/minecraft/class_10266$class_10267;method_64562()Zofficial bLaer$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 thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-