Class OCULUS_FELIS

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

public class OCULUS_FELIS extends O2Potion
Oculus Felis - grants feline night vision for seeing in darkness.

When consumed, this potion applies the NIGHT_VISION II effect to the player for 5 minutes, granting them the ability to see clearly in near-total darkness. This potion mimics a cat's superior night vision, allowing the player to navigate dark areas as if they were brightly lit.

The 5-minute duration is longer than the standard Minecraft Night Vision II potion, providing extended visibility for the drinker. This is particularly useful for exploring dark caves, navigating at night, or other low-light scenarios.

Since:
2.21
  • Constructor Details

    • OCULUS_FELIS

      public OCULUS_FELIS(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Oculus Felis potion.

      Initializes the potion with its ingredients (Crushed Cat's Eye Opal, Mooncalf Milk, Jobberknoll Feather, Asphodel, and Standard Potion Ingredients), description text, potion color, and the Night Vision II potion effect. Sets up the 5-minute duration for the night vision effect.

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

    • drink

      public void drink(@NotNull @NotNull org.bukkit.entity.Player player)
      Drink Oculus Felis and gain night vision.

      Applies the NIGHT_VISION II effect to the player for 5 minutes. This effect allows the player to see clearly in darkness and low-light conditions, as if the world were lit by daylight. The enhanced vision mimics a feline's ability to see in near-total darkness.

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