Interface IPartyPreExperienceDropEvent

    • Method Detail

      • getParty

        @NotNull
        @NotNull Party getParty()
        Get the party
        Returns:
        the Party
      • 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