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, @NotNull RecipeDisplay display, @Nullable Integer group, @NotNull RecipeBookCategory category, @Nullable List<Ingredient> craftingRequirements, byte flags)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntry(int displayId, @NotNull RecipeDisplay display, @Nullable Integer group, @NotNull RecipeBookCategory category, @Nullable List<Ingredient> craftingRequirements, boolean notification, boolean highlight) Entry(int displayId, @NotNull RecipeDisplay display, @Nullable Integer group, @NotNull RecipeBookCategory category, @Nullable List<Ingredient> craftingRequirements, byte flags) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull RecipeBookCategorycategory()Returns the value of thecategoryrecord component.@Nullable List<Ingredient> Returns the value of thecraftingRequirementsrecord component.@NotNull RecipeDisplaydisplay()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.@Nullable Integergroup()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, @NotNull @NotNull RecipeDisplay display, @Nullable @Nullable Integer group, @NotNull @NotNull RecipeBookCategory category, @Nullable @Nullable List<Ingredient> craftingRequirements, boolean notification, boolean highlight) -
Entry
public Entry(int displayId, @NotNull @NotNull RecipeDisplay display, @Nullable @Nullable Integer group, @NotNull @NotNull 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
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 '=='. -
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
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
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
-