public class RecipeUtil extends Object
Constructor and Description |
---|
RecipeUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
craftItems(ItemParser parser,
org.bukkit.inventory.Inventory source)
Crafts items specified in an Inventory
|
static void |
craftItems(org.bukkit.Material type,
int data,
org.bukkit.inventory.Inventory source,
int limit)
Crafts items specified in an Inventory
|
static CraftRecipe[] |
getCraftingRequirements(org.bukkit.Material type,
int data)
Gets all Crafting Recipes able to produce the ItemStack specified
|
static Set<org.bukkit.Material> |
getFuelItems() |
static int |
getFuelTime(org.bukkit.inventory.ItemStack item) |
static int |
getFuelTime(org.bukkit.Material material) |
static Map<org.bukkit.Material,Integer> |
getFuelTimes() |
static org.bukkit.inventory.ItemStack |
getFurnaceResult(org.bukkit.inventory.ItemStack cooked) |
static org.bukkit.inventory.ItemStack |
getFurnaceResult(org.bukkit.Material cookedType) |
static Set<Integer> |
getHeatableItems()
Deprecated.
|
static Collection<org.bukkit.inventory.ItemStack> |
getHeatableItemStacks() |
static boolean |
isFuelItem(org.bukkit.inventory.ItemStack item) |
static boolean |
isFuelItem(org.bukkit.Material material) |
static boolean |
isHeatableItem(org.bukkit.inventory.ItemStack item) |
static boolean |
isHeatableItem(org.bukkit.Material material) |
public static Set<org.bukkit.Material> getFuelItems()
public static int getFuelTime(org.bukkit.Material material)
public static int getFuelTime(org.bukkit.inventory.ItemStack item)
public static boolean isFuelItem(org.bukkit.Material material)
public static boolean isFuelItem(org.bukkit.inventory.ItemStack item)
public static boolean isHeatableItem(org.bukkit.Material material)
public static boolean isHeatableItem(org.bukkit.inventory.ItemStack item)
public static org.bukkit.inventory.ItemStack getFurnaceResult(org.bukkit.Material cookedType)
public static org.bukkit.inventory.ItemStack getFurnaceResult(org.bukkit.inventory.ItemStack cooked)
public static Collection<org.bukkit.inventory.ItemStack> getHeatableItemStacks()
@Deprecated public static Set<Integer> getHeatableItems()
public static CraftRecipe[] getCraftingRequirements(org.bukkit.Material type, int data)
type
- of the item to craft (NULL for any type)data
- of the item to craft (-1 for any data)public static void craftItems(ItemParser parser, org.bukkit.inventory.Inventory source)
parser
- that specified the item type, data and amount to craftsource
- inventory to craft inpublic static void craftItems(org.bukkit.Material type, int data, org.bukkit.inventory.Inventory source, int limit)
itemid
- of the item to craftdata
- of the item to craft (-1 for any data)source
- inventory to craft inlimit
- amount of items to craftCopyright © 2019. All rights reserved.