Class OpenedRecipes

java.lang.Object
com.ordwen.odailyquests.events.antiglitch.OpenedRecipes

public class OpenedRecipes extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    get(org.bukkit.inventory.MerchantRecipe recipe)
    Get the current uses of a recipe
    static void
    put(org.bukkit.inventory.MerchantRecipe recipe, int i)
    Add recipes to the map when a villager is clicked
    static void
    remove(org.bukkit.inventory.MerchantRecipe recipe)
    Remove recipes from the map when villager menu is closed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OpenedRecipes

      public OpenedRecipes()
  • Method Details

    • put

      public static void put(org.bukkit.inventory.MerchantRecipe recipe, int i)
      Add recipes to the map when a villager is clicked
      Parameters:
      recipe - recipe to add to the map
      i - quantity of uses of the recipe
    • remove

      public static void remove(org.bukkit.inventory.MerchantRecipe recipe)
      Remove recipes from the map when villager menu is closed
      Parameters:
      recipe - recipe to remove from the map
    • get

      public static int get(org.bukkit.inventory.MerchantRecipe recipe)
      Get the current uses of a recipe
      Parameters:
      recipe - recipe to get the uses of
      Returns:
      current uses of the recipe