Class ICE_POTION
When consumed, this potion applies the FIRE_RESISTANCE II effect to the player for 5 minutes, allowing them to move through flames and lava unscathed without taking any fire damage. This is particularly useful for navigating dangerous fire-filled environments or combat scenarios where fire damage is a threat.
The 5-minute duration is longer than the standard Minecraft Fire Resistance II potion, providing extended protection for the drinker.
- Since:
- 2.21
- See Also:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.potion.O2Potion
duration, flavorText, ingredients, potionColor, potionSuccessMessage, potionType, text, usesModifier -
Constructor Summary
ConstructorsConstructorDescriptionICE_POTION(@NotNull Ollivanders2 plugin) Constructor for Ice Potion (Fire-Protection Potion). -
Method Summary
Modifier and TypeMethodDescriptionvoiddrink(@NotNull org.bukkit.entity.Player player) Drink the Ice Potion and gain fire immunity.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
-
ICE_POTION
Constructor for Ice Potion (Fire-Protection Potion).Initializes the potion with its ingredients (Salamander Blood, Wartcap Powder, Bursting Mushroom, and Standard Potion Ingredients), description text, flavor text, and potion color. Sets up the Fire Resistance II potion effect with a 5-minute duration for protection against fire and lava damage.
- Parameters:
plugin- a callback to the plugin instance
-
-
Method Details
-
drink
public void drink(@NotNull @NotNull org.bukkit.entity.Player player) Drink the Ice Potion and gain fire immunity.Applies the FIRE_RESISTANCE II effect to the player for 5 minutes. This effect grants complete immunity to fire damage, allowing the player to walk through lava and fire blocks without taking damage. The effect also prevents damage from being in the burning status.
-