Class nightcloak
java.lang.Object
valorless.rarespawns.ability.builtin.nightcloak
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(EntityData data, org.bukkit.entity.Mob rare) Executes the ability, making the mob invisible during the night.
-
Constructor Details
-
nightcloak
public nightcloak()
-
-
Method Details
-
execute
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.
-