Class RecipeController

java.lang.Object
dev.piglin.piglinworldapi.recipe.RecipeController
All Implemented Interfaces:
org.bukkit.event.Listener

public class RecipeController extends Object implements org.bukkit.event.Listener
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Should be refactored to be private or package-private
  • Method Summary

    Modifier and Type
    Method
    Description
    static Optional<org.bukkit.inventory.ItemStack>
    craft​(org.bukkit.inventory.ItemStack[] ingredients)
     
    void
    onCraft​(org.bukkit.event.inventory.PrepareItemCraftEvent event)
     

    Methods inherited from class java.lang.Object

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

    • RecipeController

      @Deprecated public 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)