Class CraftingData
java.lang.Object
me.wolfyscript.customcrafting.recipes.data.RecipeData<CraftingRecipe<?>>
me.wolfyscript.customcrafting.recipes.data.CraftingData
Besides the usual use case for
Additionally, it saves the position of the IngredientData inside the crafting grid.
MergeOption
s,
this data is also used internally when a player takes out the result so the recipe doesn't need to be verified again.
Additionally, it saves the position of the IngredientData inside the crafting grid.
-
Field Summary
Fields inherited from class me.wolfyscript.customcrafting.recipes.data.RecipeData
indexedBySlot, recipe, result
-
Constructor Summary
ConstructorsConstructorDescriptionCraftingData(CraftingRecipe<?> recipe, Map<Vec2d,IngredientData> ingredients)
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Methods inherited from class me.wolfyscript.customcrafting.recipes.data.RecipeData
getBySlot, getBySlots, getRecipe, getResult, setResult
-
Constructor Details
-
CraftingData
-
-
Method Details
-
getFoundItems
@Deprecated public Map<Vec2d,me.wolfyscript.utilities.api.inventory.custom_items.CustomItem> getFoundItems()Deprecated.Iterate over the entries ofgetIngredients()
directly!- Returns:
- the CustomItems found per slot.
-
getIngredients
- Returns:
- A Map of the Ingredients with the position inside the crafting grid.
-
getIngredients()
directly!