Package org.spongepowered.api.tag
Interface TagType<T extends Taggable<T>>
-
- Type Parameters:
T
- The type ofTaggable
.
- All Superinterfaces:
DefaultedRegistryValue
@CatalogedBy(TagTypes.class) public interface TagType<T extends Taggable<T>> extends DefaultedRegistryValue
Represents a type that can be associated with aTag
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RegistryType<T>
taggableRegistry()
TheRegistryType
that represents the known collection of objects of typeT
.RegistryType<Tag<T>>
tagRegistry()
TheRegistryType
of tags that can be associated with objects.-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
-
-
-
Method Detail
-
taggableRegistry
RegistryType<T> taggableRegistry()
TheRegistryType
that represents the known collection of objects of typeT
.- Returns:
- The
RegistryType
-
tagRegistry
RegistryType<Tag<T>> tagRegistry()
TheRegistryType
of tags that can be associated with objects.- Returns:
- The
RegistryType
-
-