Interface IPartyPreExperienceDropEvent
-
- All Superinterfaces:
Cancellable,PartiesEvent
- All Known Implementing Classes:
BukkitPartiesPartyPreExperienceDropEvent,BukkitPartiesPreExperienceDropEvent,BungeePartiesPartyPreExperienceDropEvent,VelocityPartiesPartyPreExperienceDropEvent
public interface IPartyPreExperienceDropEvent extends PartiesEvent, Cancellable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetExperience()Get the dropped experience@Nullable ObjectgetKilledEntity()Get the killed entity, null if doesn't exist.@NotNull PartygetParty()Get the party@Nullable PartyPlayergetPlayer()Get the player who killed the entity, null if there isn't anyvoidsetExperience(double experience)Set the dropped experience-
Methods inherited from interface com.alessiodp.parties.api.events.Cancellable
isCancelled, setCancelled
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Method Detail
-
getPlayer
@Nullable @Nullable PartyPlayer getPlayer()
Get the player who killed the entity, null if there isn't any- Returns:
- the
PartyPlayer
-
getKilledEntity
@Nullable @Nullable Object getKilledEntity()
Get the killed entity, null if doesn't exist. Only Bukkit handles killed entities. The object, if not null, its an instance of Bukkit Entity.- Returns:
- the killed entity, intance of Bukkit Entity
-
getExperience
double getExperience()
Get the dropped experience- Returns:
- the number of experience dropped
-
setExperience
void setExperience(double experience)
Set the dropped experience- Parameters:
experience- the number of experience dropped
-
-