Record Class ClientboundRecipeBookAddPacket.Entry
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipeBookAddPacket.Entry
- Enclosing class:
ClientboundRecipeBookAddPacket
public static record ClientboundRecipeBookAddPacket.Entry(RecipeDisplayEntry contents, boolean notification, boolean highlight)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(RecipeDisplayEntry contents, boolean notification, boolean highlight) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehighlightrecord component.booleanReturns the value of thenotificationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
contents- the value for thecontentsrecord componentnotification- the value for thenotificationrecord componenthighlight- the value for thehighlightrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
notification
public boolean notification()Returns the value of thenotificationrecord component.- Returns:
- the value of the
notificationrecord component
-
highlight
public boolean highlight()Returns the value of thehighlightrecord component.- Returns:
- the value of the
highlightrecord component
-