Class TagSource<T extends org.bukkit.Keyed>
java.lang.Object
org.skriptlang.skript.bukkit.tags.sources.TagSource<T>
- Type Parameters:
T- The type of tags this source will return. For example, the Bukkit "items" tag registry would returnMaterials.
- Direct Known Subclasses:
BukkitTagSource, CustomTagSource
A source for
Tags, be it Bukkit's tag registries, Paper's handmade tags, or
custom tags made by the user.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TagSource
- Parameters:
origin- The origin of this source.types- The tag types this source represents.
-
-
Method Details
-
getAllTags
-
getAllTagsMatching
-
getTag
Gets a specific tag by the key.- Parameters:
key- The key to use to find the tag.- Returns:
- The tag associated with the key. Null if no such tag exists.
-
getTypes
-
getOrigin
- Returns:
- The origin of this source.
-