Class CustomTransmuteRecipe

java.lang.Object
com.github.darksoulq.abyssallib.world.recipe.type.CustomTransmuteRecipe
All Implemented Interfaces:
BukkitRecipeProvider, CustomRecipe

public class CustomTransmuteRecipe extends Object implements CustomRecipe, BukkitRecipeProvider
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from interface com.github.darksoulq.abyssallib.world.recipe.CustomRecipe

    CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomTransmuteRecipe(org.bukkit.NamespacedKey id, org.bukkit.inventory.RecipeChoice input, org.bukkit.inventory.RecipeChoice material, org.bukkit.inventory.ItemStack result, Optional<String> group, Optional<org.bukkit.inventory.recipe.CraftingBookCategory> category, boolean replace)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.bukkit.inventory.recipe.CraftingBookCategory>
     
     
    org.bukkit.inventory.RecipeChoice
     
    @NonNull org.bukkit.NamespacedKey
     
    org.bukkit.inventory.RecipeChoice
     
    org.bukkit.inventory.ItemStack
     
    Retrieves the structural type format associated with this recipe variant.
    boolean
    Determines whether this custom recipe should silently override and replace a pre-existing recipe with the same key.
    org.bukkit.inventory.Recipe
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CustomTransmuteRecipe

      public CustomTransmuteRecipe(org.bukkit.NamespacedKey id, org.bukkit.inventory.RecipeChoice input, org.bukkit.inventory.RecipeChoice material, org.bukkit.inventory.ItemStack result, Optional<String> group, Optional<org.bukkit.inventory.recipe.CraftingBookCategory> category, boolean replace)
  • Method Details

    • getKey

      public @NonNull org.bukkit.NamespacedKey getKey()
      Specified by:
      getKey in interface CustomRecipe
      Returns:
      The unique namespaced identifier representing this recipe instance.
    • replace

      public boolean replace()
      Description copied from interface: CustomRecipe
      Determines whether this custom recipe should silently override and replace a pre-existing recipe with the same key.
      Specified by:
      replace in interface CustomRecipe
      Returns:
      True if the recipe acts as a replacement, false otherwise.
    • getType

      public RecipeType<?> getType()
      Description copied from interface: CustomRecipe
      Retrieves the structural type format associated with this recipe variant.
      Specified by:
      getType in interface CustomRecipe
      Returns:
      The bound RecipeType.
    • getInput

      public org.bukkit.inventory.RecipeChoice getInput()
    • getMaterial

      public org.bukkit.inventory.RecipeChoice getMaterial()
    • getResult

      public org.bukkit.inventory.ItemStack getResult()
    • getGroup

      public Optional<String> getGroup()
    • getCategory

      public Optional<org.bukkit.inventory.recipe.CraftingBookCategory> getCategory()
    • toBukkit

      public org.bukkit.inventory.Recipe toBukkit()
      Specified by:
      toBukkit in interface BukkitRecipeProvider