Class CustomPotionMix
java.lang.Object
com.github.darksoulq.abyssallib.world.recipe.type.CustomPotionMix
- All Implemented Interfaces:
CustomRecipe, PotionMixProvider
-
Field Summary
FieldsFields inherited from interface CustomRecipe
CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCustomPotionMix(org.bukkit.NamespacedKey id, org.bukkit.inventory.RecipeChoice input, org.bukkit.inventory.RecipeChoice ingredient, org.bukkit.inventory.ItemStack result, boolean replace) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.RecipeChoiceorg.bukkit.inventory.RecipeChoicegetInput()@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.io.papermc.paper.potion.PotionMix
-
Field Details
-
TYPE
-
-
Constructor Details
-
CustomPotionMix
public CustomPotionMix(org.bukkit.NamespacedKey id, org.bukkit.inventory.RecipeChoice input, org.bukkit.inventory.RecipeChoice ingredient, org.bukkit.inventory.ItemStack result, boolean replace)
-
-
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.
-
getInput
public org.bukkit.inventory.RecipeChoice getInput() -
getIngredient
public org.bukkit.inventory.RecipeChoice getIngredient() -
getResult
public org.bukkit.inventory.ItemStack getResult() -
toPotionMix
public io.papermc.paper.potion.PotionMix toPotionMix()- Specified by:
toPotionMixin interfacePotionMixProvider
-