Class AbstractRegistryList<T extends org.bukkit.Keyed>

java.lang.Object
com.palmergames.bukkit.towny.object.AbstractRegistryList<T>
Direct Known Subclasses:
EntityLists, ItemLists

public abstract class AbstractRegistryList<T extends org.bukkit.Keyed> extends Object
  • Field Details

    • tagged

      protected final Set<T extends org.bukkit.Keyed> tagged
  • Constructor Details

    • AbstractRegistryList

      public AbstractRegistryList(@NotNull @NotNull org.bukkit.Registry<T> registry, @NotNull @NotNull Collection<T> collection)
  • Method Details

    • contains

      public boolean contains(@NotNull T element)
      Parameters:
      element - The element to test for
      Returns:
      Whether this list contains the given element
    • contains

      public boolean contains(@NotNull @NotNull org.bukkit.NamespacedKey key)
    • contains

      public boolean contains(@NotNull @NotNull String element)
    • tagged

      protected Collection<T> tagged()