Class CustomTagSource<T extends org.bukkit.Keyed>

java.lang.Object
org.skriptlang.skript.bukkit.tags.sources.TagSource<T>
org.skriptlang.skript.bukkit.tags.sources.CustomTagSource<T>
Type Parameters:
T - The class of the tags provided by this source.
Direct Known Subclasses:
PaperTagSource, SkriptTagSource

public sealed class CustomTagSource<T extends org.bukkit.Keyed> extends TagSource<T> permits PaperTagSource<T>, SkriptTagSource<T>
A custom source of tags that stores its own tags.
  • Method Details

    • getAllTags

      public Iterable<org.bukkit.Tag<T>> getAllTags()
      Specified by:
      getAllTags in class TagSource<T extends org.bukkit.Keyed>
      Returns:
      All the tags associated with this source.
    • getTag

      @Nullable public @Nullable org.bukkit.Tag<T> getTag(org.bukkit.NamespacedKey key)
      Description copied from class: TagSource
      Gets a specific tag by the key.
      Specified by:
      getTag in class TagSource<T extends org.bukkit.Keyed>
      Parameters:
      key - The key to use to find the tag.
      Returns:
      The tag associated with the key. Null if no such tag exists.