Class CustomSmithingTransformRecipe
java.lang.Object
com.github.darksoulq.abyssallib.world.recipe.type.CustomSmithingTransformRecipe
- All Implemented Interfaces:
BukkitRecipeProvider, CustomRecipe
public class CustomSmithingTransformRecipe
extends Object
implements CustomRecipe, BukkitRecipeProvider
-
Field Summary
FieldsFields inherited from interface CustomRecipe
CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCustomSmithingTransformRecipe(org.bukkit.NamespacedKey id, org.bukkit.inventory.RecipeChoice base, org.bukkit.inventory.RecipeChoice template, org.bukkit.inventory.RecipeChoice addition, org.bukkit.inventory.ItemStack result, Optional<Boolean> copyComponents, boolean replace) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.RecipeChoiceorg.bukkit.inventory.RecipeChoicegetBase()@NonNull org.bukkit.NamespacedKeygetKey()org.bukkit.inventory.ItemStackorg.bukkit.inventory.RecipeChoiceRecipeType<?> 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.org.bukkit.inventory.RecipetoBukkit()
-
Field Details
-
TYPE
-
-
Constructor Details
-
CustomSmithingTransformRecipe
-
-
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.
-
getBase
public org.bukkit.inventory.RecipeChoice getBase() -
getTemplate
public org.bukkit.inventory.RecipeChoice getTemplate() -
getAddition
public org.bukkit.inventory.RecipeChoice getAddition() -
getResult
public org.bukkit.inventory.ItemStack getResult() -
getCopyComponents
-
toBukkit
public org.bukkit.inventory.Recipe toBukkit()- Specified by:
toBukkitin interfaceBukkitRecipeProvider
-