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 TypeMethodDescriptionboolean
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 dieduser
- the user related to the playerevent
- the death event- Returns:
- if this restriction applies to the player
-