Class COMMON_ANTIDOTE_POTION
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:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.potion.O2Potion
duration, flavorText, ingredients, potionColor, potionSuccessMessage, potionType, text, usesModifier -
Constructor Summary
ConstructorsConstructorDescriptionCOMMON_ANTIDOTE_POTION(@NotNull Ollivanders2 plugin) Constructor for Common Antidote Potion. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrink(@NotNull org.bukkit.entity.Player player) Drink the Common Antidote Potion and remove poison effects.Get the message displayed when the potion has no effect.Methods inherited from class net.pottercraft.ollivanders2.potion.O2Potion
brew, brewBadPotion, checkRecipe, createPotionItemStack, getFlavorText, getIngredients, getIngredientsText, getLevel, getMagicBranch, getName, getPotionSuccessMessage, getPotionType, getText, setUsesModifier
-
Constructor Details
-
COMMON_ANTIDOTE_POTION
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.
-
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
-