Record Class RecipeDisplayEntry
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.recipe.display.RecipeDisplayEntry
public record RecipeDisplayEntry(int id, RecipeDisplay display, OptionalInt group, int category, @Nullable List<HolderSet> craftingRequirements)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRecipeDisplayEntry(int id, RecipeDisplay display, OptionalInt group, int category, @Nullable List<HolderSet> craftingRequirements) Creates an instance of aRecipeDisplayEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcategory()Returns the value of thecategoryrecord component.Returns the value of thecraftingRequirementsrecord component.display()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecipeDisplayEntry
public RecipeDisplayEntry(int id, RecipeDisplay display, OptionalInt group, int category, @Nullable List<HolderSet> craftingRequirements) Creates an instance of aRecipeDisplayEntryrecord class.- Parameters:
id- the value for theidrecord componentdisplay- the value for thedisplayrecord componentgroup- the value for thegrouprecord componentcategory- the value for thecategoryrecord componentcraftingRequirements- the value for thecraftingRequirementsrecord component
-
-
Method Details
-
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 '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord 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
public int 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
-