public class BukkitPartiesPartyPreExperienceDropEvent extends BukkitPartiesEvent implements IPartyPreExperienceDropEvent
| Constructor and Description |
|---|
BukkitPartiesPartyPreExperienceDropEvent(Party party,
PartyPlayer player,
Object killedEntity,
double experience) |
| Modifier and Type | Method and Description |
|---|---|
double |
getExperience()
Get the dropped experience
|
@Nullable Object |
getKilledEntity()
Get the killed entity, null if doesn't exist.
|
@NotNull Party |
getParty()
Get the party
|
@Nullable PartyPlayer |
getPlayer()
Get the player who killed the entity, null if there isn't any
|
boolean |
isCancelled()
Is the event cancelled?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
void |
setExperience(double experience)
Set the dropped experience
|
getApi, getHandlerList, getHandlers, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApi, setApipublic BukkitPartiesPartyPreExperienceDropEvent(Party party, PartyPlayer player, Object killedEntity, double experience)
@NotNull public @NotNull Party getParty()
IPartyPreExperienceDropEventgetParty in interface IPartyPreExperienceDropEventParty@Nullable public @Nullable PartyPlayer getPlayer()
IPartyPreExperienceDropEventgetPlayer in interface IPartyPreExperienceDropEventPartyPlayer@Nullable public @Nullable Object getKilledEntity()
IPartyPreExperienceDropEventgetKilledEntity in interface IPartyPreExperienceDropEventpublic double getExperience()
IPartyPreExperienceDropEventgetExperience in interface IPartyPreExperienceDropEventpublic void setExperience(double experience)
IPartyPreExperienceDropEventsetExperience in interface IPartyPreExperienceDropEventexperience - the number of experience droppedpublic boolean isCancelled()
CancellableisCancelled in interface Cancellabletrue if the event is cancelledpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true to cancelCopyright © 2022. All rights reserved.