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()booleanfindResultItem(org.bukkit.inventory.ItemStack result)intintintorg.bukkit.ColorList<org.bukkit.potion.PotionEffectType>intgetIngredient(int slot)List<me.wolfyscript.utilities.api.inventory.custom_items.CustomItem>booleanvoidprepareMenu(me.wolfyscript.utilities.api.inventory.gui.GuiHandler<CCCache> guiHandler, me.wolfyscript.utilities.api.inventory.gui.GuiCluster<CCCache> cluster)voidrenderMenu(me.wolfyscript.utilities.api.inventory.gui.GuiWindow<CCCache> guiWindow, me.wolfyscript.utilities.api.inventory.gui.GuiUpdate<CCCache> event)voidsetAllowedItems(Ingredient allowedItems)voidsetAmplifierChange(int amplifierChange)voidsetBrewTime(int brewTime)voidsetDurationChange(int durationChange)voidsetEffectAdditions(Map<org.bukkit.potion.PotionEffect,Boolean> effectAdditions)voidsetEffectColor(org.bukkit.Color effectColor)voidsetEffectRemovals(List<org.bukkit.potion.PotionEffectType> effectRemovals)voidsetEffectUpgrades(Map<org.bukkit.potion.PotionEffectType,me.wolfyscript.utilities.util.Pair<Integer,Integer>> effectUpgrades)voidsetFuelCost(int fuelCost)voidsetIngredient(int slot, Ingredient ingredient)Used to set Ingredient from cache of the RecipeCreatorvoidsetIngredient(Ingredient ingredient)voidsetRequiredEffects(Map<org.bukkit.potion.PotionEffectType,me.wolfyscript.utilities.util.Pair<Integer,Integer>> requiredEffects)voidsetResetEffects(boolean resetEffects)voidwriteToJson(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, writeToBufMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ICustomRecipeUsed 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:
clonein interfaceICustomRecipe<BrewingRecipe,FixedResultTarget>- Specified by:
clonein 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:
writeToJsonin interfaceICustomRecipe<BrewingRecipe,FixedResultTarget>- Overrides:
writeToJsonin classCustomRecipe<BrewingRecipe,FixedResultTarget>- Throws:
IOException
-
findResultItem
public boolean findResultItem(org.bukkit.inventory.ItemStack result) -
getRecipeBookItems
-
prepareMenu
-
renderMenu
-