Class CauldronRecipe
java.lang.Object
me.wolfyscript.customcrafting.recipes.types.CustomRecipe<CauldronRecipe,NoneResultTarget>
me.wolfyscript.customcrafting.recipes.types.cauldron.CauldronRecipe
- All Implemented Interfaces:
ICustomRecipe<CauldronRecipe,NoneResultTarget>
,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
ConstructorsConstructorDescriptionCauldronRecipe(CauldronRecipe cauldronRecipe)
CauldronRecipe(me.wolfyscript.utilities.util.NamespacedKey namespacedKey, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.JsonNode node)
-
Method Summary
Modifier and TypeMethodDescriptionList<org.bukkit.entity.Item>
checkRecipe(List<org.bukkit.entity.Item> items)
clone()
boolean
int
me.wolfyscript.utilities.api.inventory.custom_items.CustomItem
getIngredient(int slot)
int
float
getXp()
boolean
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
setCookingTime(int cookingTime)
void
setDropItems(boolean dropItems)
void
setHandItem(me.wolfyscript.utilities.api.inventory.custom_items.CustomItem handItem)
void
setIngredient(int slot, Ingredient ingredient)
Used to set Ingredient from cache of the RecipeCreatorvoid
setIngredient(Ingredient ingredients)
void
setNeedsFire(boolean needsFire)
void
setNeedsWater(boolean needsWater)
void
setWaterLevel(int waterLevel)
void
setXp(float xp)
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, findResultItem, getRecipeBookItems, isDisabled, save, save
-
Constructor Details
-
CauldronRecipe
public CauldronRecipe(me.wolfyscript.utilities.util.NamespacedKey namespacedKey, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.JsonNode node) -
CauldronRecipe
public CauldronRecipe() -
CauldronRecipe
-
-
Method Details
-
getCookingTime
public int getCookingTime() -
setCookingTime
public void setCookingTime(int cookingTime) -
needsFire
public boolean needsFire() -
setNeedsFire
public void setNeedsFire(boolean needsFire) -
getWaterLevel
public int getWaterLevel() -
setWaterLevel
public void setWaterLevel(int waterLevel) -
needsWater
public boolean needsWater() -
setNeedsWater
public void setNeedsWater(boolean needsWater) -
getXp
public float getXp() -
setXp
public void setXp(float xp) -
getIngredient
-
setIngredient
-
dropItems
public boolean dropItems() -
setDropItems
public void setDropItems(boolean dropItems) -
checkRecipe
-
getHandItem
public me.wolfyscript.utilities.api.inventory.custom_items.CustomItem getHandItem() -
setHandItem
public void setHandItem(me.wolfyscript.utilities.api.inventory.custom_items.CustomItem handItem) -
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
-
clone
- Specified by:
clone
in interfaceICustomRecipe<CauldronRecipe,NoneResultTarget>
- Specified by:
clone
in classCustomRecipe<CauldronRecipe,NoneResultTarget>
-
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<CauldronRecipe,NoneResultTarget>
- Overrides:
writeToJson
in classCustomRecipe<CauldronRecipe,NoneResultTarget>
- Throws:
IOException
-
prepareMenu
-
renderMenu
-