public class MobEventMapper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static io.lumine.xikage.mythicmobs.api.bukkit.BukkitAPIHelper |
mythicMobs
Access to the MythicMobs API.
|
Constructor and Description |
---|
MobEventMapper() |
Modifier and Type | Method and Description |
---|---|
static void |
death(io.lumine.xikage.mythicmobs.api.bukkit.events.MythicMobDeathEvent event)
When a mob dies, following cases are possible:
It gets unregistered from its owner, if it was a pet.
|
static void |
despawn(io.lumine.xikage.mythicmobs.api.bukkit.events.MythicMobDespawnEvent event)
When a mob despawns, following cases are possible:
It gets unregistered from its owner, if it was a pet.
|
private static void |
explodeMob(io.lumine.xikage.mythicmobs.mobs.MythicMob mythicMob,
org.bukkit.entity.Entity entity,
org.bukkit.Location location)
Creates an explosion and deals 500% damage to everyone within a radius of 4 blocks.
|
static void |
spawn(io.lumine.xikage.mythicmobs.api.bukkit.events.MythicMobSpawnEvent event)
When a mob spawns, modifiers, loot and boss bars are initialized.
|
private static void |
splitMob(io.lumine.xikage.mythicmobs.mobs.MythicMob mythicMob,
org.bukkit.Location location)
Spawns 4 mobs of the same type and knocks them away from their spawn.
|
private static io.lumine.xikage.mythicmobs.api.bukkit.BukkitAPIHelper mythicMobs
public static void spawn(io.lumine.xikage.mythicmobs.api.bukkit.events.MythicMobSpawnEvent event)
event
- The spawn event.MenacingMobsSpawner.addMenacingMob(Entity, MythicMob)
,
InstanceMobArena.increaseMobCount()
public static void despawn(io.lumine.xikage.mythicmobs.api.bukkit.events.MythicMobDespawnEvent event)
event
- The despawn event.WauzActivePet.removeOwner(String, Player)
,
InstanceMobArena.tryToDecreaseMobCount(Entity)
public static void death(io.lumine.xikage.mythicmobs.api.bukkit.events.MythicMobDeathEvent event)
event
- The death event.WauzActivePet.removeOwner(String, Player)
,
InstanceMobArena.tryToDecreaseMobCount(Entity)
,
ObservationTracker.tryToAddProgress(Player, Entity)
,
AchievementTracker.addProgress(Player, WauzAchievementType, double)
,
Strongbox.destroy(MythicMobDeathEvent)
,
CmdWzTravelEvent.getEventTravelMap()
,
explodeMob(MythicMob, Entity, Location)
,
splitMob(MythicMob, Location)
,
MenacingMobsLoot.dropExp(Entity, Entity)
,
MenacingMobsLoot.dropKey(Entity)
private static void explodeMob(io.lumine.xikage.mythicmobs.mobs.MythicMob mythicMob, org.bukkit.entity.Entity entity, org.bukkit.Location location)
mythicMob
- The type of the mob.entity
- The entity that is exploding.location
- The location the explosion takes place.private static void splitMob(io.lumine.xikage.mythicmobs.mobs.MythicMob mythicMob, org.bukkit.Location location)
mythicMob
- The type of the mob.location
- The location the splitting takes place.