Class CraftingData

java.lang.Object
me.wolfyscript.customcrafting.recipes.data.RecipeData<CraftingRecipe<?>>
me.wolfyscript.customcrafting.recipes.data.CraftingData

public class CraftingData extends RecipeData<CraftingRecipe<?>>
Besides the usual use case for MergeOptions, 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.
  • Constructor Details

  • Method Details

    • getFoundItems

      @Deprecated public Map<Vec2d,​me.wolfyscript.utilities.api.inventory.custom_items.CustomItem> getFoundItems()
      Deprecated.
      Iterate over the entries of getIngredients() directly!
      Returns:
      the CustomItems found per slot.
    • getIngredients

      public Map<Vec2d,​IngredientData> getIngredients()
      Returns:
      A Map of the Ingredients with the position inside the crafting grid.