Class COMMON_ANTIDOTE_POTION

java.lang.Object
net.pottercraft.ollivanders2.potion.O2Potion
net.pottercraft.ollivanders2.potion.COMMON_ANTIDOTE_POTION

public final class COMMON_ANTIDOTE_POTION extends O2Potion
Common Antidote Potion - counteracts ordinary poisons and toxins.

This potion removes the poison effect from a player when consumed. It is effective against ordinary poisons such as creature bites and stings (Minecraft POISON effects). If no poison is currently affecting the player, the potion has no mechanical effect but provides flavor text feedback.

Since:
2.2.7
See Also:
  • Constructor Details

    • COMMON_ANTIDOTE_POTION

      public COMMON_ANTIDOTE_POTION(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Common Antidote Potion.

      Initializes the potion with its ingredients (Mistletoe Berries, Bezoar, Unicorn Hair, and Standard Potion Ingredients), description text, and potion color. Sets up the recipe for brewing this antidote potion.

      Parameters:
      plugin - a callback to the plugin instance
  • Method Details

    • drink

      public void drink(@NotNull @NotNull org.bukkit.entity.Player player)
      Drink the Common Antidote Potion and remove poison effects.

      If the player is currently poisoned (has the POISON effect), it is immediately removed and the player receives confirmation feedback. If the player is not poisoned, the potion still consumes but provides only flavor text feedback with no mechanical effect.

      Specified by:
      drink in class O2Potion
      Parameters:
      player - the player who drank the potion
    • getPotionDoNothingMessage

      public String getPotionDoNothingMessage()
      Get the message displayed when the potion has no effect.

      Returns the flavor text message shown to the player when they drink this potion while not currently poisoned.

      Returns:
      the no-effect message string