java.lang.Object
me.wolfyscript.customcrafting.recipes.types.CustomRecipe<BrewingRecipe,​FixedResultTarget>
me.wolfyscript.customcrafting.recipes.types.brewing.BrewingRecipe
All Implemented Interfaces:
ICustomRecipe<BrewingRecipe,​FixedResultTarget>, me.wolfyscript.utilities.util.Keyed

public class BrewingRecipe extends CustomRecipe<BrewingRecipe,​FixedResultTarget>
  • Constructor Details

    • BrewingRecipe

      public BrewingRecipe(me.wolfyscript.utilities.util.NamespacedKey namespacedKey, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.JsonNode node)
    • BrewingRecipe

      public BrewingRecipe()
    • BrewingRecipe

      public BrewingRecipe(BrewingRecipe brewingRecipe)
  • Method Details

    • getRecipeType

      public RecipeType<BrewingRecipe> getRecipeType()
    • getPacketType

      public RecipePacketType getPacketType()
    • setIngredient

      public void setIngredient(int slot, Ingredient ingredient)
      Description copied from interface: ICustomRecipe
      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

      public Ingredient getIngredient(int slot)
    • getIngredient

      public Ingredient getIngredient()
    • setIngredient

      public void setIngredient(Ingredient ingredient)
    • getAllowedItems

      public Ingredient getAllowedItems()
    • setAllowedItems

      public void setAllowedItems(Ingredient allowedItems)
    • getFuelCost

      public int getFuelCost()
    • setFuelCost

      public void setFuelCost(int fuelCost)
    • getBrewTime

      public int getBrewTime()
    • setBrewTime

      public void setBrewTime(int brewTime)
    • getDurationChange

      public int getDurationChange()
    • setDurationChange

      public void setDurationChange(int durationChange)
    • getAmplifierChange

      public int getAmplifierChange()
    • setAmplifierChange

      public void setAmplifierChange(int amplifierChange)
    • isResetEffects

      public boolean isResetEffects()
    • setResetEffects

      public void setResetEffects(boolean resetEffects)
    • getEffectColor

      public org.bukkit.Color getEffectColor()
    • setEffectColor

      public void setEffectColor(org.bukkit.Color effectColor)
    • getEffectRemovals

      public List<org.bukkit.potion.PotionEffectType> getEffectRemovals()
    • setEffectRemovals

      public void setEffectRemovals(List<org.bukkit.potion.PotionEffectType> effectRemovals)
    • getEffectAdditions

      public Map<org.bukkit.potion.PotionEffect,​Boolean> getEffectAdditions()
    • setEffectAdditions

      public void setEffectAdditions(Map<org.bukkit.potion.PotionEffect,​Boolean> effectAdditions)
    • getEffectUpgrades

      public Map<org.bukkit.potion.PotionEffectType,​me.wolfyscript.utilities.util.Pair<Integer,​Integer>> getEffectUpgrades()
    • setEffectUpgrades

      public void setEffectUpgrades(Map<org.bukkit.potion.PotionEffectType,​me.wolfyscript.utilities.util.Pair<Integer,​Integer>> effectUpgrades)
    • getRequiredEffects

      public Map<org.bukkit.potion.PotionEffectType,​me.wolfyscript.utilities.util.Pair<Integer,​Integer>> getRequiredEffects()
    • setRequiredEffects

      public void setRequiredEffects(Map<org.bukkit.potion.PotionEffectType,​me.wolfyscript.utilities.util.Pair<Integer,​Integer>> requiredEffects)
    • clone

      public BrewingRecipe clone()
      Specified by:
      clone in interface ICustomRecipe<BrewingRecipe,​FixedResultTarget>
      Specified by:
      clone in class CustomRecipe<BrewingRecipe,​FixedResultTarget>
    • writeToJson

      public void writeToJson(me.wolfyscript.utilities.libraries.com.fasterxml.jackson.core.JsonGenerator gen, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException
      Specified by:
      writeToJson in interface ICustomRecipe<BrewingRecipe,​FixedResultTarget>
      Overrides:
      writeToJson in class CustomRecipe<BrewingRecipe,​FixedResultTarget>
      Throws:
      IOException
    • findResultItem

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

      public List<me.wolfyscript.utilities.api.inventory.custom_items.CustomItem> getRecipeBookItems()
    • prepareMenu

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

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