Search in sources :

Example 1 with EliteMobSpawnEvent

use of com.magmaguy.elitemobs.api.EliteMobSpawnEvent in project EliteMobs by MagmaGuy.

the class EntityTracker method registerEliteMob.

public static void registerEliteMob(EliteEntity eliteEntity) {
    EliteMobSpawnEvent eliteMobSpawnEvent = new EliteMobSpawnEvent(eliteEntity);
    new EventCaller(eliteMobSpawnEvent);
    if (eliteMobSpawnEvent.isCancelled())
        return;
    PersistentTagger.tagElite(eliteEntity.getLivingEntity(), eliteEntity.getEliteUUID());
    eliteMobEntities.put(eliteEntity.getEliteUUID(), eliteEntity);
}
Also used : EliteMobSpawnEvent(com.magmaguy.elitemobs.api.EliteMobSpawnEvent) EventCaller(com.magmaguy.elitemobs.utils.EventCaller)

Aggregations

EliteMobSpawnEvent (com.magmaguy.elitemobs.api.EliteMobSpawnEvent)1 EventCaller (com.magmaguy.elitemobs.utils.EventCaller)1