Class ICE_POTION

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

public class ICE_POTION extends O2Potion
Ice Potion (Fire-Protection Potion) - grants immunity to fire damage.

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:
  • Constructor Details

    • ICE_POTION

      public ICE_POTION(@NotNull @NotNull Ollivanders2 plugin)
      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.

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