public class MythicMobLootDropEvent
extends org.bukkit.event.Event
Constructor and Description |
---|
MythicMobLootDropEvent(ActiveMob am,
org.bukkit.entity.LivingEntity killer,
LootBag drops) |
Modifier and Type | Method and Description |
---|---|
LootBag |
getDrops()
Gets the LootBag representing everything the mob is dropping
|
org.bukkit.entity.Entity |
getEntity()
Gets the Bukkit Entity of the mob that died
|
int |
getExp()
Gets the experience dropped by the mob
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
Optional<Drop> |
getIntangibleDrop(Class<? extends IIntangibleDrop> clazz)
Gets a specific intangible drop from the drop table
|
Collection<Drop> |
getIntangibleDrops()
Gets the map of the mob's intangible/currency drops from the LootBag
|
org.bukkit.entity.LivingEntity |
getKiller()
Gets the mob's killer
|
ActiveMob |
getMob()
Gets the ActiveMob instance of the mob that died
|
double |
getMobLevel()
Gets the level of the mob that died
|
MythicMob |
getMobType()
Gets the Mythic mob type of the mob that died
|
int |
getMoney()
Gets the vault money dropped by the mob
|
Collection<Drop> |
getPhysicalDrops()
Gets the list of the mob's item drops from the LootBag
|
void |
setExp(int amount)
Sets the experience dropped by the mob
|
void |
setMoney(int amount)
Sets the vault money dropped by the mob
|
public ActiveMob getMob()
ActiveMob
public org.bukkit.entity.Entity getEntity()
public MythicMob getMobType()
MythicMob
public double getMobLevel()
public org.bukkit.entity.LivingEntity getKiller()
public LootBag getDrops()
public Collection<Drop> getPhysicalDrops()
public Collection<Drop> getIntangibleDrops()
public Optional<Drop> getIntangibleDrop(Class<? extends IIntangibleDrop> clazz)
public int getExp()
public void setExp(int amount)
public int getMoney()
public void setMoney(int amount)
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public static org.bukkit.event.HandlerList getHandlerList()
Copyright © 2020. All rights reserved.