Class OpenedRecipes
java.lang.Object
com.ordwen.odailyquests.events.antiglitch.OpenedRecipes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
get
(org.bukkit.inventory.MerchantRecipe recipe) Get the current uses of a recipestatic void
put
(org.bukkit.inventory.MerchantRecipe recipe, int i) Add recipes to the map when a villager is clickedstatic void
remove
(org.bukkit.inventory.MerchantRecipe recipe) Remove recipes from the map when villager menu is closed
-
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 mapi
- 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
-