Record Class RecipeBookAddPacket.Entry
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.RecipeBookAddPacket.Entry
- Enclosing class:
RecipeBookAddPacket
public static record RecipeBookAddPacket.Entry(int displayId, RecipeDisplay display, @Nullable Integer group, RecipeBookCategory category, @Nullable List<Ingredient> craftingRequirements, byte flags)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntry(int displayId, RecipeDisplay display, @Nullable Integer group, RecipeBookCategory category, @Nullable List<Ingredient> craftingRequirements, boolean notification, boolean highlight) Entry(int displayId, RecipeDisplay display, @Nullable Integer group, RecipeBookCategory category, @Nullable List<Ingredient> craftingRequirements, byte flags) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.Returns the value of thecraftingRequirementsrecord component.display()Returns the value of thedisplayrecord component.intReturns the value of thedisplayIdrecord component.final booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
Entry
public Entry(int displayId, RecipeDisplay display, @Nullable @Nullable Integer group, RecipeBookCategory category, @Nullable @Nullable List<Ingredient> craftingRequirements, boolean notification, boolean highlight) -
Entry
public Entry(int displayId, RecipeDisplay display, @Nullable @Nullable Integer group, RecipeBookCategory category, @Nullable @Nullable List<Ingredient> craftingRequirements, byte flags) Creates an instance of aEntryrecord class.- Parameters:
displayId- the value for thedisplayIdrecord componentdisplay- the value for thedisplayrecord componentgroup- the value for thegrouprecord componentcategory- the value for thecategoryrecord componentcraftingRequirements- the value for thecraftingRequirementsrecord componentflags- the value for theflagsrecord component
-
-
Method Details
-
notification
public boolean notification() -
highlight
public boolean highlight() -
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. -
displayId
public int displayId()Returns the value of thedisplayIdrecord component.- Returns:
- the value of the
displayIdrecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
group
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
craftingRequirements
Returns the value of thecraftingRequirementsrecord component.- Returns:
- the value of the
craftingRequirementsrecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-