Class CachedModalList<T extends Comparable<T>>

java.lang.Object
me.lokka30.levelledmobs.misc.CachedModalList<T>
All Implemented Interfaces:
Cloneable

public class CachedModalList<T extends Comparable<T>> extends Object implements Cloneable
A standardized list used for holding various rule lists
Since:
3.0.0
  • Field Details

    • allowedList

      @NotNull public @NotNull Set<T extends Comparable<T>> allowedList
    • allowedGroups

      @NotNull public @NotNull Set<String> allowedGroups
    • excludedList

      @NotNull public @NotNull Set<T extends Comparable<T>> excludedList
    • excludedGroups

      @NotNull public @NotNull Set<String> excludedGroups
    • doMerge

      public boolean doMerge
    • allowAll

      public boolean allowAll
    • excludeAll

      public boolean excludeAll
  • Constructor Details

    • CachedModalList

      public CachedModalList()
    • CachedModalList

      public CachedModalList(@NotNull @NotNull Set<T> allowedList, @NotNull @NotNull Set<T> excludedList)
  • Method Details

    • isEnabledInList

      public boolean isEnabledInList(T item, @Nullable @Nullable LivingEntityWrapper lmEntity)
    • isEmpty

      public boolean isEmpty()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isWhitelist

      public boolean isWhitelist()
    • isBlacklist

      public boolean isBlacklist()
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • mergeCachedModal

      public void mergeCachedModal(@NotNull @NotNull CachedModalList<?> cachedModalList)