Class BrewingRecipe
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.wolfyscript.customcrafting.recipes.types.ICustomRecipe
ICustomRecipe.Serializer
-
Field Summary
Fields inherited from class me.wolfyscript.customcrafting.recipes.types.CustomRecipe
api, conditions, exactMeta, group, hidden, mapper, namespacedKey, priority, result
-
Constructor Summary
ConstructorsConstructorDescriptionBrewingRecipe(BrewingRecipe brewingRecipe)
BrewingRecipe(me.wolfyscript.utilities.util.NamespacedKey namespacedKey, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.JsonNode node)
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
findResultItem(org.bukkit.inventory.ItemStack result)
int
int
int
org.bukkit.Color
List<org.bukkit.potion.PotionEffectType>
int
getIngredient(int slot)
List<me.wolfyscript.utilities.api.inventory.custom_items.CustomItem>
boolean
void
prepareMenu(me.wolfyscript.utilities.api.inventory.gui.GuiHandler<CCCache> guiHandler, me.wolfyscript.utilities.api.inventory.gui.GuiCluster<CCCache> cluster)
void
renderMenu(me.wolfyscript.utilities.api.inventory.gui.GuiWindow<CCCache> guiWindow, me.wolfyscript.utilities.api.inventory.gui.GuiUpdate<CCCache> event)
void
setAllowedItems(Ingredient allowedItems)
void
setAmplifierChange(int amplifierChange)
void
setBrewTime(int brewTime)
void
setDurationChange(int durationChange)
void
setEffectAdditions(Map<org.bukkit.potion.PotionEffect,Boolean> effectAdditions)
void
setEffectColor(org.bukkit.Color effectColor)
void
setEffectRemovals(List<org.bukkit.potion.PotionEffectType> effectRemovals)
void
setEffectUpgrades(Map<org.bukkit.potion.PotionEffectType,me.wolfyscript.utilities.util.Pair<Integer,Integer>> effectUpgrades)
void
setFuelCost(int fuelCost)
void
setIngredient(int slot, Ingredient ingredient)
Used to set Ingredient from cache of the RecipeCreatorvoid
setIngredient(Ingredient ingredient)
void
setRequiredEffects(Map<org.bukkit.potion.PotionEffectType,me.wolfyscript.utilities.util.Pair<Integer,Integer>> requiredEffects)
void
setResetEffects(boolean resetEffects)
void
writeToJson(me.wolfyscript.utilities.libraries.com.fasterxml.jackson.core.JsonGenerator gen, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
Methods inherited from class me.wolfyscript.customcrafting.recipes.types.CustomRecipe
getAPI, getConditions, getGroup, getNamespacedKey, getPriority, getResult, hasNamespacedKey, isExactMeta, isHidden, setConditions, setExactMeta, setGroup, setHidden, setNamespacedKey, setPriority, setResult, writeToBuf
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.wolfyscript.customcrafting.recipes.types.ICustomRecipe
checkCondition, checkConditions, delete, delete, isDisabled, save, save
-
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
-
-
Method Details
-
getRecipeType
-
getPacketType
-
setIngredient
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
-
getIngredient
-
setIngredient
-
getAllowedItems
-
setAllowedItems
-
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
-
setEffectRemovals
-
getEffectAdditions
-
setEffectAdditions
-
getEffectUpgrades
-
setEffectUpgrades
-
getRequiredEffects
-
setRequiredEffects
-
clone
- Specified by:
clone
in interfaceICustomRecipe<BrewingRecipe,FixedResultTarget>
- Specified by:
clone
in classCustomRecipe<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 interfaceICustomRecipe<BrewingRecipe,FixedResultTarget>
- Overrides:
writeToJson
in classCustomRecipe<BrewingRecipe,FixedResultTarget>
- Throws:
IOException
-
findResultItem
public boolean findResultItem(org.bukkit.inventory.ItemStack result) -
getRecipeBookItems
-
prepareMenu
-
renderMenu
-