Interface LifestealerHeartDropRestriction

All Known Implementing Classes:
DamageCauseHeartDropRestriction, SameIpReasonHeartDropRestriction, WorldSpecificHeartDropRestriction

public interface LifestealerHeartDropRestriction
Represents a restriction based on the player's death event
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    shouldRestrictHeartDrop(@NotNull org.bukkit.entity.Player player, @NotNull LifestealerUser user, @NotNull org.bukkit.event.entity.PlayerDeathEvent event)
    Checks if this restriction applies to the player
  • Method Details

    • shouldRestrictHeartDrop

      boolean shouldRestrictHeartDrop(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull LifestealerUser user, @NotNull @NotNull org.bukkit.event.entity.PlayerDeathEvent event)
      Checks if this restriction applies to the player
      Parameters:
      player - the player that died
      user - the user related to the player
      event - the death event
      Returns:
      if this restriction applies to the player