Class CustomAnvilRecipe

java.lang.Object
me.wolfyscript.customcrafting.recipes.types.CustomRecipe<CustomAnvilRecipe,​SlotResultTarget>
me.wolfyscript.customcrafting.recipes.types.anvil.CustomAnvilRecipe
All Implemented Interfaces:
ICustomRecipe<CustomAnvilRecipe,​SlotResultTarget>, me.wolfyscript.utilities.util.Keyed

public class CustomAnvilRecipe extends CustomRecipe<CustomAnvilRecipe,​SlotResultTarget>
  • Constructor Details

    • CustomAnvilRecipe

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

      public CustomAnvilRecipe​(CustomAnvilRecipe recipe)
    • CustomAnvilRecipe

      public CustomAnvilRecipe()
  • Method Details

    • getDurability

      public int getDurability()
    • getMode

      public CustomAnvilRecipe.Mode getMode()
    • setMode

      public void setMode​(CustomAnvilRecipe.Mode mode)
    • getRepairCost

      public int getRepairCost()
    • setRepairCost

      public void setRepairCost​(int repairCost)
    • setDurability

      public void setDurability​(int durability)
    • getInputLeft

      public Ingredient getInputLeft()
    • getInputRight

      public Ingredient getInputRight()
    • hasInputLeft

      public boolean hasInputLeft()
    • hasInputRight

      public boolean hasInputRight()
    • isBlockRepair

      public boolean isBlockRepair()
    • setBlockRepair

      public void setBlockRepair​(boolean blockRepair)
    • isBlockRename

      public boolean isBlockRename()
    • setBlockRename

      public void setBlockRename​(boolean blockRename)
    • isBlockEnchant

      public boolean isBlockEnchant()
    • setBlockEnchant

      public void setBlockEnchant​(boolean blockEnchant)
    • isApplyRepairCost

      public boolean isApplyRepairCost()
    • setApplyRepairCost

      public void setApplyRepairCost​(boolean applyRepairCost)
    • getRepairCostMode

      public CustomAnvilRecipe.RepairCostMode getRepairCostMode()
    • setRepairCostMode

      public void setRepairCostMode​(CustomAnvilRecipe.RepairCostMode repairCostMode)
    • getRecipeType

      public RecipeType<CustomAnvilRecipe> 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)
    • clone

      public CustomAnvilRecipe clone()
      Specified by:
      clone in interface ICustomRecipe<CustomAnvilRecipe,​SlotResultTarget>
      Specified by:
      clone in class CustomRecipe<CustomAnvilRecipe,​SlotResultTarget>
    • 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<CustomAnvilRecipe,​SlotResultTarget>
      Overrides:
      writeToJson in class CustomRecipe<CustomAnvilRecipe,​SlotResultTarget>
      Throws:
      IOException
    • 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)