Class AbstractFilter<T extends FiltersConfig.FilterSettings>
java.lang.Object
dev.unnm3d.redischat.chat.filters.AbstractFilter<T>
- All Implemented Interfaces:
BiFunction<org.bukkit.command.CommandSender,
ChatMessage, FilterResult>
- Direct Known Subclasses:
CapsFilter
,DuplicateFilter
,IgnoreFilter
,IgnorePlayerFilter
,MutedChannelFilter
,PermissionFilter
,SpamFilter
,TagFilter
,WordBlacklistFilter
public abstract class AbstractFilter<T extends FiltersConfig.FilterSettings>
extends Object
implements BiFunction<org.bukkit.command.CommandSender,ChatMessage,FilterResult>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AbstractFilter.Direction
protected T
protected final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(org.bukkit.command.CommandSender player, ChatMessage chatMessage) abstract FilterResult
applyWithPrevious
(org.bukkit.command.CommandSender receiver, @NotNull ChatMessage message, ChatMessage... previousMessages) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
name
-
direction
-
filterSettings
-
-
Constructor Details
-
AbstractFilter
public AbstractFilter()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<org.bukkit.command.CommandSender,
ChatMessage, FilterResult>
-
applyWithPrevious
public abstract FilterResult applyWithPrevious(org.bukkit.command.CommandSender receiver, @NotNull @NotNull ChatMessage message, ChatMessage... previousMessages)
-