public class VelocityPartiesPartyPreExperienceDropEvent extends VelocityPartiesEvent implements IPartyPreExperienceDropEvent
Constructor and Description |
---|
VelocityPartiesPartyPreExperienceDropEvent(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, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public VelocityPartiesPartyPreExperienceDropEvent(Party party, PartyPlayer player, Object killedEntity, double experience)
@NotNull public @NotNull Party getParty()
IPartyPreExperienceDropEvent
getParty
in interface IPartyPreExperienceDropEvent
Party
@Nullable public @Nullable PartyPlayer getPlayer()
IPartyPreExperienceDropEvent
getPlayer
in interface IPartyPreExperienceDropEvent
PartyPlayer
@Nullable public @Nullable Object getKilledEntity()
IPartyPreExperienceDropEvent
getKilledEntity
in interface IPartyPreExperienceDropEvent
public double getExperience()
IPartyPreExperienceDropEvent
getExperience
in interface IPartyPreExperienceDropEvent
public void setExperience(double experience)
IPartyPreExperienceDropEvent
setExperience
in interface IPartyPreExperienceDropEvent
experience
- the number of experience droppedpublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.