Class CustomPotionMix

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

public class CustomPotionMix extends Object implements CustomRecipe, PotionMixProvider
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from interface CustomRecipe

    CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomPotionMix(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 Type
    Method
    Description
    org.bukkit.inventory.RecipeChoice
     
    org.bukkit.inventory.RecipeChoice
     
    @NonNull org.bukkit.NamespacedKey
     
    org.bukkit.inventory.ItemStack
     
    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.
    io.papermc.paper.potion.PotionMix
     

    Methods inherited from class Object

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

  • 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:
      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.
    • 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:
      toPotionMix in interface PotionMixProvider