Package dev.piglin.piglinworldapi.recipe
Class RecipeController
java.lang.Object
dev.piglin.piglinworldapi.recipe.RecipeController
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Should be refactored to be private or package-private -
Method Summary
-
Constructor Details
-
RecipeController
Deprecated.Should be refactored to be private or package-private
-
-
Method Details
-
craft
public static Optional<org.bukkit.inventory.ItemStack> craft(org.bukkit.inventory.ItemStack[] ingredients)- Parameters:
ingredients- The ingredients array of size 4 (2x2) or 9 (3x3)- Returns:
- The result of this craft if any
-
onCraft
public void onCraft(org.bukkit.event.inventory.PrepareItemCraftEvent event)
-