Class DisabledRecipe
java.lang.Object
com.github.darksoulq.abyssallib.world.recipe.type.DisabledRecipe
- All Implemented Interfaces:
CustomRecipe
-
Field Summary
Fields inherited from interface CustomRecipe
CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull org.bukkit.NamespacedKeygetKey()RecipeType<?> getType()Retrieves the structural type format associated with this recipe variant.booleanreplace()Determines whether this custom recipe should silently override and replace a pre-existing recipe with the same key.
-
Constructor Details
-
DisabledRecipe
public DisabledRecipe(org.bukkit.NamespacedKey id)
-
-
Method Details
-
getKey
public @NonNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceCustomRecipe- Returns:
- The unique namespaced identifier representing this recipe instance.
-
replace
public boolean replace()Description copied from interface:CustomRecipeDetermines whether this custom recipe should silently override and replace a pre-existing recipe with the same key.- Specified by:
replacein interfaceCustomRecipe- Returns:
- True if the recipe acts as a replacement, false otherwise.
-
getType
Description copied from interface:CustomRecipeRetrieves the structural type format associated with this recipe variant.- Specified by:
getTypein interfaceCustomRecipe- Returns:
- The bound
RecipeType.
-