Package org.spongepowered.api.tag
Interface Taggable<T extends Taggable<T>>
- All Superinterfaces:
DefaultedRegistryValue
- All Known Subinterfaces:
BlockType
,EntityType<A>
,FluidType
,ItemType
A type that may be included in one or more
Tag
collections.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true when given tag is associated with this objectGets theRegistryType
that holds the types oftags
that can be associated with this object.Collection<Tag<T>>
tags()
Gets alltags
that have been associated with this object.Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
registryType
DefaultedRegistryType<T> registryType()Gets theRegistryType
that holds the types oftags
that can be associated with this object.- Returns:
- The
RegistryType
-
tags
Collection<Tag<T>> tags()Gets alltags
that have been associated with this object.- Returns:
- The
Collection
ofTag
s.
-
is
Returns true when given tag is associated with this object- Parameters:
tag
- The tag- Returns:
- true when given tag is associated with this object
-