Class CustomStonecutterRecipe
java.lang.Object
me.wolfyscript.customcrafting.recipes.types.CustomRecipe<CustomStonecutterRecipe,FixedResultTarget>
me.wolfyscript.customcrafting.recipes.types.stonecutter.CustomStonecutterRecipe
- All Implemented Interfaces:
ICustomRecipe<CustomStonecutterRecipe,FixedResultTarget>,ICustomVanillaRecipe<org.bukkit.inventory.StonecuttingRecipe>,me.wolfyscript.utilities.util.Keyed
public class CustomStonecutterRecipe
extends CustomRecipe<CustomStonecutterRecipe,FixedResultTarget>
implements ICustomVanillaRecipe<org.bukkit.inventory.StonecuttingRecipe>
-
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
ConstructorsConstructorDescriptionCustomStonecutterRecipe(CustomStonecutterRecipe customStonecutterRecipe)CustomStonecutterRecipe(me.wolfyscript.utilities.util.NamespacedKey namespacedKey, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.JsonNode node) -
Method Summary
Modifier and TypeMethodDescriptionclone()getIngredient(int slot)org.bukkit.inventory.StonecuttingRecipevoidprepareMenu(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)voidsetIngredient(int slot, Ingredient ingredient)Used to set Ingredient from cache of the RecipeCreatorvoidsetSource(Ingredient source)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, findResultItem, getRecipeBookItems, isDisabled, save, save
-
Constructor Details
-
CustomStonecutterRecipe
public CustomStonecutterRecipe() -
CustomStonecutterRecipe
public CustomStonecutterRecipe(me.wolfyscript.utilities.util.NamespacedKey namespacedKey, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.JsonNode node) -
CustomStonecutterRecipe
-
-
Method Details
-
getSource
-
setSource
-
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<CustomStonecutterRecipe,FixedResultTarget>- Overrides:
writeToJsonin classCustomRecipe<CustomStonecutterRecipe,FixedResultTarget>- Throws:
IOException
-
getRecipeType
- Specified by:
getRecipeTypein interfaceICustomRecipe<CustomStonecutterRecipe,FixedResultTarget>
-
getPacketType
- Specified by:
getPacketTypein interfaceICustomRecipe<CustomStonecutterRecipe,FixedResultTarget>
-
setIngredient
Description copied from interface:ICustomRecipeUsed to set Ingredient from cache of the RecipeCreator- Specified by:
setIngredientin interfaceICustomRecipe<CustomStonecutterRecipe,FixedResultTarget>- Parameters:
slot- The slot of the ingredient in the recipe.ingredient- The ingredient to set
-
getIngredient
- Specified by:
getIngredientin interfaceICustomRecipe<CustomStonecutterRecipe,FixedResultTarget>
-
clone
- Specified by:
clonein interfaceICustomRecipe<CustomStonecutterRecipe,FixedResultTarget>- Specified by:
clonein classCustomRecipe<CustomStonecutterRecipe,FixedResultTarget>
-
prepareMenu
public void prepareMenu(me.wolfyscript.utilities.api.inventory.gui.GuiHandler<CCCache> guiHandler, me.wolfyscript.utilities.api.inventory.gui.GuiCluster<CCCache> cluster)- Specified by:
prepareMenuin interfaceICustomRecipe<CustomStonecutterRecipe,FixedResultTarget>
-
renderMenu
public void renderMenu(me.wolfyscript.utilities.api.inventory.gui.GuiWindow<CCCache> guiWindow, me.wolfyscript.utilities.api.inventory.gui.GuiUpdate<CCCache> event)- Specified by:
renderMenuin interfaceICustomRecipe<CustomStonecutterRecipe,FixedResultTarget>
-
getVanillaRecipe
public org.bukkit.inventory.StonecuttingRecipe getVanillaRecipe()- Specified by:
getVanillaRecipein interfaceICustomVanillaRecipe<org.bukkit.inventory.StonecuttingRecipe>
-