Class frostedfur
java.lang.Object
valorless.rarespawns.ability.builtin.frostedfur
- All Implemented Interfaces:
org.bukkit.event.Listener,Ability
Ability: Frosted Fur
Applies a slowness effect to attackers of the rare entity, and freezes players who shoot arrows at it.
This ability is used to punish attackers by slowing them or freezing them if they use arrows.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(EntityData data, org.bukkit.entity.Mob rare) Executes the Frosted Fur ability, registering the event listener for attacks.voidonAttack(org.bukkit.event.entity.EntityDamageByEntityEvent event) Event handler for when the rare entity is attacked.
-
Constructor Details
-
frostedfur
public frostedfur()
-
-
Method Details
-
execute
Executes the Frosted Fur ability, registering the event listener for attacks. -
onAttack
public void onAttack(org.bukkit.event.entity.EntityDamageByEntityEvent event) Event handler for when the rare entity is attacked. Applies slowness to attackers and freezes players who shoot arrows.- Parameters:
event- The EntityDamageByEntityEvent triggered by an attack.
-