Class nightcloak

java.lang.Object
valorless.rarespawns.ability.builtin.nightcloak
All Implemented Interfaces:
Ability

public class nightcloak extends Object implements Ability
Ability: Night Cloak Makes the rare entity invisible during the night. Applies an invisibility effect for 10 seconds if it is night, otherwise removes invisibility.

This ability is used to grant temporary invisibility to the rare entity at night.

  • Constructor Details

    • nightcloak

      public nightcloak()
  • Method Details

    • execute

      public void execute(EntityData data, org.bukkit.entity.Mob rare)
      Executes the ability, making the mob invisible during the night. If it is night (13000-23000 ticks), applies invisibility for 10 seconds. Otherwise, removes invisibility effect.
      Specified by:
      execute in interface Ability
      Parameters:
      data - The EntityData for the rare entity.
      rare - The Mob instance representing the rare entity.