Class frostedfur

java.lang.Object
valorless.rarespawns.ability.builtin.frostedfur
All Implemented Interfaces:
org.bukkit.event.Listener, Ability

public class frostedfur extends Object implements Ability, org.bukkit.event.Listener
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(EntityData data, org.bukkit.entity.Mob rare)
    Executes the Frosted Fur ability, registering the event listener for attacks.
    void
    onAttack(org.bukkit.event.entity.EntityDamageByEntityEvent event)
    Event handler for when the rare entity is attacked.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • frostedfur

      public frostedfur()
  • Method Details

    • execute

      public void execute(EntityData data, org.bukkit.entity.Mob rare)
      Executes the Frosted Fur ability, registering the event listener for attacks.
      Specified by:
      execute in interface Ability
      Parameters:
      data - The EntityData for the rare entity.
      rare - The Mob instance representing the rare entity.
    • 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.