Interface NpcFlag<T>

All Known Implementing Classes:
DefaultNpcFlag

public interface NpcFlag<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accepts(T value)
     
    @UnknownNullability T
     
    static <T> @NotNull NpcFlag<T>
    flag(@NotNull String key, T defaultValue)
     
    static <T> @NotNull NpcFlag<T>
    flag(@NotNull String key, T defaultValue, @NotNull Predicate<T> valueTester)
     
    @NotNull String
    key()
     
  • 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)