Class DisabledRecipe

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

public class DisabledRecipe extends Object implements CustomRecipe
  • Field Summary

    Fields inherited from interface CustomRecipe

    CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    DisabledRecipe(org.bukkit.NamespacedKey id)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull org.bukkit.NamespacedKey
     
    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.

    Methods inherited from class Object

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

    • DisabledRecipe

      public DisabledRecipe(org.bukkit.NamespacedKey id)
  • 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.