Class CustomShapelessRecipe
java.lang.Object
com.github.darksoulq.abyssallib.world.recipe.type.CustomShapelessRecipe
- All Implemented Interfaces:
BukkitRecipeProvider, CustomRecipe
-
Field Summary
FieldsFields inherited from interface CustomRecipe
CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCustomShapelessRecipe(org.bukkit.NamespacedKey id, List<org.bukkit.inventory.RecipeChoice> ingredients, org.bukkit.inventory.ItemStack result, Optional<String> group, Optional<org.bukkit.inventory.recipe.CraftingBookCategory> category, boolean replace) -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.bukkit.inventory.recipe.CraftingBookCategory> getGroup()List<org.bukkit.inventory.RecipeChoice> @NonNull org.bukkit.NamespacedKeygetKey()org.bukkit.inventory.ItemStackRecipeType<?> 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
-
CustomShapelessRecipe
-
-
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.
-
getIngredients
-
getResult
public org.bukkit.inventory.ItemStack getResult() -
getGroup
-
getCategory
-
toBukkit
public org.bukkit.inventory.Recipe toBukkit()- Specified by:
toBukkitin interfaceBukkitRecipeProvider
-