- All Known Implementing Classes:
DefaultNpcFlag
public interface NpcFlag<T>
-
Method Summary
-
Method Details
-
flag
@NotNull
static <T> @NotNull NpcFlag<T> flag(@NotNull
@NotNull String key,
@Nullable
T defaultValue)
-
flag
@NotNull
static <T> @NotNull NpcFlag<T> flag(@NotNull
@NotNull String key,
@Nullable
T defaultValue,
@NotNull
@NotNull Predicate<T> valueTester)
-
key
@NotNull
@NotNull String key()
-
defaultValue
@UnknownNullability T defaultValue()
-
accepts
boolean accepts(@Nullable
T value)