public class BlacklistEntry
extends java.lang.Object
| Constructor and Description |
|---|
BlacklistEntry(Blacklist blacklist)
Construct the object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(boolean useAsWhitelist,
BlacklistEvent event,
boolean forceRepeat,
boolean silent)
Method to handle the event.
|
java.util.List<Action> |
getActions(java.lang.Class<? extends BlacklistEvent> eventCls)
Get the associated actions with an event.
|
java.lang.String |
getComment() |
java.lang.String[] |
getIgnoreGroups() |
java.lang.String[] |
getIgnorePermissions() |
java.lang.String |
getMessage() |
void |
setComment(java.lang.String comment) |
void |
setIgnoreGroups(java.lang.String[] ignoreGroups) |
void |
setIgnorePermissions(java.lang.String[] ignorePermissions) |
void |
setMessage(java.lang.String message) |
boolean |
shouldIgnore(LocalPlayer player)
Returns true if this player should be ignored.
|
public BlacklistEntry(Blacklist blacklist)
blacklist - The blacklist that contains this entrypublic java.lang.String[] getIgnoreGroups()
public java.lang.String[] getIgnorePermissions()
public void setIgnoreGroups(java.lang.String[] ignoreGroups)
ignoreGroups - the ignoreGroups to setpublic void setIgnorePermissions(java.lang.String[] ignorePermissions)
ignorePermissions - the ignorePermissions to setpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - the message to setpublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - the comment to setpublic boolean shouldIgnore(@Nullable
LocalPlayer player)
player - The player to checkpublic java.util.List<Action> getActions(java.lang.Class<? extends BlacklistEvent> eventCls)
eventCls - The event's classpublic boolean check(boolean useAsWhitelist,
BlacklistEvent event,
boolean forceRepeat,
boolean silent)
useAsWhitelist - Whether this entry is being used in a whitelistevent - The event to checkforceRepeat - Whether to force repeating notifications even within the delay limitsilent - Whether to prevent notifications from happening