Class callhive

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

public class callhive extends Object implements Ability
Ability: Call Hive Spawns a number of angry bees around the rare entity and sets their target. Creates particle and sound effects at each spawn location.

This ability is used to summon a swarm of bees to attack the rare entity's target.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<org.bukkit.Location>
    calculateSpawnPoints(org.bukkit.Location bossLocation, int numMinions, double radius)
    Calculates spawn points in a circle around the boss entity.
    void
    execute(EntityData data, org.bukkit.entity.Mob rare)
    Executes the Call Hive ability, spawning bees around the rare entity.

    Methods inherited from class java.lang.Object

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

    • callhive

      public callhive()
  • Method Details

    • execute

      public void execute(EntityData data, org.bukkit.entity.Mob rare)
      Executes the Call Hive ability, spawning bees around the rare entity. Each bee is set to be angry and target the rare entity's target. Particle and sound effects are played at each spawn location.
      Specified by:
      execute in interface Ability
      Parameters:
      data - The EntityData for the rare entity.
      rare - The Mob instance representing the rare entity.
    • calculateSpawnPoints

      public static List<org.bukkit.Location> calculateSpawnPoints(org.bukkit.Location bossLocation, int numMinions, double radius)
      Calculates spawn points in a circle around the boss entity. Ensures spawn points are not inside solid blocks.
      Parameters:
      bossLocation - The location of the boss entity.
      numMinions - Number of bees to spawn.
      radius - The radius of the circle.
      Returns:
      List of safe spawn locations.