- All Implemented Interfaces:
NpcFlag<T>
final class DefaultNpcFlag<T>
extends Object
implements NpcFlag<T>
-
-
Constructor Summary
Constructors
-
Method Summary
-
Field Details
-
-
defaultValue
private final T defaultValue
-
-
Constructor Details
-
DefaultNpcFlag
public DefaultNpcFlag(@NotNull
@NotNull String key,
@Nullable
T defaultValue,
@NotNull
@NotNull Predicate<T> valueTester)
-
Method Details
-
-
defaultValue
public @UnknownNullability T defaultValue()
- Specified by:
defaultValue in interface NpcFlag<T>
-
accepts
public boolean accepts(@Nullable
T value)
- Specified by:
accepts in interface NpcFlag<T>
-
-