Interface ICustomRecipe<C extends ICustomRecipe<?,​?>,​T extends ResultTarget>

All Superinterfaces:
me.wolfyscript.utilities.util.Keyed
All Known Implementing Classes:
AdvancedCraftingRecipe, BrewingRecipe, CauldronRecipe, CraftingRecipe, CustomAnvilRecipe, CustomBlastRecipe, CustomCampfireRecipe, CustomCookingRecipe, CustomFurnaceRecipe, CustomRecipe, CustomSmithingRecipe, CustomSmokerRecipe, CustomStonecutterRecipe, EliteCraftingRecipe, GrindstoneRecipe, ShapedCraftRecipe, ShapedEliteCraftRecipe, ShapelessCraftRecipe, ShapelessEliteCraftRecipe

public interface ICustomRecipe<C extends ICustomRecipe<?,​?>,​T extends ResultTarget> extends me.wolfyscript.utilities.util.Keyed
  • Method Details

    • getAPI

      me.wolfyscript.utilities.api.WolfyUtilities getAPI()
    • hasNamespacedKey

      boolean hasNamespacedKey()
    • getNamespacedKey

      me.wolfyscript.utilities.util.NamespacedKey getNamespacedKey()
      Specified by:
      getNamespacedKey in interface me.wolfyscript.utilities.util.Keyed
    • setNamespacedKey

      void setNamespacedKey(me.wolfyscript.utilities.util.NamespacedKey namespacedKey)
    • getRecipeType

      RecipeType<C> getRecipeType()
    • getPacketType

      RecipePacketType getPacketType()
    • getGroup

      String getGroup()
    • setGroup

      void setGroup(String group)
    • getResult

      Result<T> getResult()
    • setResult

      void setResult(Result<T> result)
    • setIngredient

      void setIngredient(int slot, Ingredient ingredient)
      Used to set Ingredient from cache of the RecipeCreator
      Parameters:
      slot - The slot of the ingredient in the recipe.
      ingredient - The ingredient to set
    • getIngredient

      Ingredient getIngredient(int slot)
    • getPriority

      RecipePriority getPriority()
    • setPriority

      void setPriority(RecipePriority priority)
    • isExactMeta

      boolean isExactMeta()
    • setExactMeta

      void setExactMeta(boolean exactMeta)
    • getConditions

      Conditions getConditions()
    • setConditions

      void setConditions(Conditions conditions)
    • checkConditions

      default boolean checkConditions(Conditions.Data data)
      Checks all the conditions of the recipe against specified data.
      Parameters:
      data - The data to check the conditions against.
      Returns:
      True if the conditions are met.
    • checkCondition

      default boolean checkCondition(String id, Conditions.Data data)
      Checks a specific condition of this recipe against the specified data. If the condition does not exist, it will return true.
      Parameters:
      id - The id of the Condition.
      data - The data to check the condition against.
      Returns:
      True if condition is valid or non existent.
    • isHidden

      boolean isHidden()
    • setHidden

      void setHidden(boolean hidden)
    • isDisabled

      default boolean isDisabled()
    • clone

      C clone()
    • save

      default boolean save(@Nullable @Nullable org.bukkit.entity.Player player)
      This method saves the Recipe into the File or the Database. It can also send a confirmation message to the player if the player is not null.
    • save

      default boolean save()
    • delete

      default boolean delete(@Nullable @Nullable org.bukkit.entity.Player player)
    • delete

      default boolean delete()
    • writeToJson

      void writeToJson(me.wolfyscript.utilities.libraries.com.fasterxml.jackson.core.JsonGenerator gen, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException
      Throws:
      IOException
    • writeToBuf

      void writeToBuf(me.wolfyscript.utilities.api.nms.network.MCByteBuf byteBuf)
    • findResultItem

      default boolean findResultItem(org.bukkit.inventory.ItemStack result)
    • getRecipeBookItems

      default List<me.wolfyscript.utilities.api.inventory.custom_items.CustomItem> getRecipeBookItems()
    • renderMenu

      void renderMenu(me.wolfyscript.utilities.api.inventory.gui.GuiWindow<CCCache> guiWindow, me.wolfyscript.utilities.api.inventory.gui.GuiUpdate<CCCache> event)
    • prepareMenu

      void prepareMenu(me.wolfyscript.utilities.api.inventory.gui.GuiHandler<CCCache> guiHandler, me.wolfyscript.utilities.api.inventory.gui.GuiCluster<CCCache> cluster)