Class BungeePartiesPartyPreExperienceDropEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
com.alessiodp.parties.api.events.bungee.party.BungeePartiesPartyPreExperienceDropEvent
- All Implemented Interfaces:
Cancellable,IPartyPreExperienceDropEvent,PartiesEvent
public class BungeePartiesPartyPreExperienceDropEvent
extends BungeePartiesEvent
implements IPartyPreExperienceDropEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBungeePartiesPartyPreExperienceDropEvent(Party party, PartyPlayer player, Object killedEntity, double experience) -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the dropped experience@Nullable ObjectGet the killed entity, null if doesn't exist.@NotNull PartygetParty()Get the party@Nullable PartyPlayerGet the player who killed the entity, null if there isn't anybooleanIs the event cancelled?voidsetCancelled(boolean cancel) Set the event as cancelledvoidsetExperience(double experience) Set the dropped experienceMethods inherited from class com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
getApi, setApiMethods inherited from class net.md_5.bungee.api.plugin.Event
postCallMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
Constructor Details
-
BungeePartiesPartyPreExperienceDropEvent
public BungeePartiesPartyPreExperienceDropEvent(Party party, PartyPlayer player, Object killedEntity, double experience)
-
-
Method Details
-
getParty
Description copied from interface:IPartyPreExperienceDropEventGet the party- Specified by:
getPartyin interfaceIPartyPreExperienceDropEvent- Returns:
- the
Party
-
getPlayer
Description copied from interface:IPartyPreExperienceDropEventGet the player who killed the entity, null if there isn't any- Specified by:
getPlayerin interfaceIPartyPreExperienceDropEvent- Returns:
- the
PartyPlayer
-
getKilledEntity
Description copied from interface:IPartyPreExperienceDropEventGet the killed entity, null if doesn't exist. Only Bukkit handles killed entities. The object, if not null, its an instance of Bukkit Entity.- Specified by:
getKilledEntityin interfaceIPartyPreExperienceDropEvent- Returns:
- the killed entity, intance of Bukkit Entity
-
getExperience
public double getExperience()Description copied from interface:IPartyPreExperienceDropEventGet the dropped experience- Specified by:
getExperiencein interfaceIPartyPreExperienceDropEvent- Returns:
- the number of experience dropped
-
setExperience
public void setExperience(double experience) Description copied from interface:IPartyPreExperienceDropEventSet the dropped experience- Specified by:
setExperiencein interfaceIPartyPreExperienceDropEvent- Parameters:
experience- the number of experience dropped
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableIs the event cancelled?- Specified by:
isCancelledin interfaceCancellable- Returns:
trueif the event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSet the event as cancelled- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueto cancel
-