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 returnMaterial
s.
- Direct Known Subclasses:
BukkitTagSource
,CustomTagSource
A source for
Tag
s, 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
- Returns:
- All the tags associated with this source.
-
getAllTagsMatching
For use in getting specific subsets of tags.- Parameters:
predicate
- A Predicate used to filter tags.- Returns:
- All the tags from this source, filtered based on the predicate.
-
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
- Returns:
- All the tag types that are represented by this source.
-
getOrigin
- Returns:
- The origin of this source.
-