Search in sources :

Example 1 with SuperMobSpawnEvent

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

the class EntityTracker method registerSuperMob.

// Super Mobs
public static void registerSuperMob(LivingEntity livingEntity) {
    SuperMobSpawnEvent superMobSpawnEvent = new SuperMobSpawnEvent(livingEntity);
    new EventCaller(superMobSpawnEvent);
    if (superMobSpawnEvent.isCancelled())
        return;
    PersistentTagger.tagSuperMob(livingEntity);
}
Also used : SuperMobSpawnEvent(com.magmaguy.elitemobs.api.SuperMobSpawnEvent) EventCaller(com.magmaguy.elitemobs.utils.EventCaller)

Aggregations

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