Record Class CraftingDataTracker.RecipePreview
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.storage.CraftingDataTracker.RecipePreview
- Enclosing class:
CraftingDataTracker
public static record CraftingDataTracker.RecipePreview(CraftingDataStorage recipe, Map<Integer, BedrockItem> slots)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRecipePreview(CraftingDataStorage recipe, Map<Integer, BedrockItem> slots) Creates an instance of aRecipePreviewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.recipe()Returns the value of thereciperecord component.slots()Returns the value of theslotsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecipePreview
Creates an instance of aRecipePreviewrecord class.- Parameters:
recipe- the value for thereciperecord componentslots- the value for theslotsrecord component
-
-
Method Details
-
slots
Returns the value of theslotsrecord component.- Returns:
- the value of the
slotsrecord component
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
recipe
Returns the value of thereciperecord component.- Returns:
- the value of the
reciperecord component
-