Class callhive
java.lang.Object
valorless.rarespawns.ability.builtin.callhive
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.bukkit.Location> calculateSpawnPoints(org.bukkit.Location bossLocation, int numMinions, double radius) Calculates spawn points in a circle around the boss entity.voidexecute(EntityData data, org.bukkit.entity.Mob rare) Executes the Call Hive ability, spawning bees around the rare entity.
-
Constructor Details
-
callhive
public callhive()
-
-
Method Details
-
execute
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. -
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.
-