Class RecipeRegistry

java.lang.Object
net.okocraft.box.feature.craft.RecipeRegistry

public final class RecipeRegistry extends Object
A class for managing RecipeHolders.
  • Method Details

    • getRecipes

      @Nullable public static @Nullable RecipeHolder getRecipes(@NotNull @NotNull BoxItem item)
      Returns the RecipeHolder of the specified BoxItem.
      Parameters:
      item - the BoxItem to get
      Returns:
      the RecipeHolder of the specified BoxItem, or null if there is no recipe of the item
    • hasRecipe

      public static boolean hasRecipe(@NotNull @NotNull BoxItem item)
      Checks if the BoxItem has recipes.
      Parameters:
      item - the BoxItem to check
      Returns:
      true if the BoxItem has recipes, otherwise false