WolfyScript / WolfyUtils-Spigot

The WolfyUtilities implementation for the Spigot platform
10 stars 4 forks source link

Set Current Recipe of Inventories #33

Closed WolfyScript closed 1 year ago

WolfyScript commented 1 year ago

Added NMS InventoryUtils with a function to set the current recipe of an inventory, as a counter part to CraftingInventory#getCurrentRecipe! It takes in a NamespacedKey and applies the associated recipe to the inventory. If the recipe doesn't exist, then it ignores it.