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 - ady$a- named - contents- intermediary - comp_3233- official - d- named - flags- intermediary - comp_3234- official - e
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionEntry(RecipeDisplayEntry display, boolean showNotification, boolean highlighted) Entry(RecipeDisplayEntry recipeDisplayEntry, byte byte2) 
- 
Method SummaryModifier 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- 
contentsThe field for thecontentsrecord component.
- 
flagsprivate final byte flagsThe field for theflagsrecord component.
- 
SHOW_NOTIFICATIONpublic 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- Lady$a;a:B
 
- 
HIGHLIGHTEDpublic 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- Lady$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- Lady$a;c:Lyn;
 
 
- 
- 
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>- Lady$a;<init>(Ldcl;ZZ)V
 
- 
Entry
 
- 
- 
Method Details- 
shouldShowNotificationpublic 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- Lady$a;a()Z
 
- 
isHighlightedpublic 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- Lady$a;b()Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
contentsReturns the value of thecontentsrecord component.- Returns:
- the value of the contentsrecord component
 
- 
flagspublic byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the flagsrecord component
 
 
-