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 TypeMethodDescriptionbooleanReturns true when given tag is associated with this objectGets theRegistryTypethat holds the types oftagsthat can be associated with this object.Collection<Tag<T>>tags()Gets alltagsthat 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 theRegistryTypethat holds the types oftagsthat can be associated with this object.- Returns:
- The
RegistryType
-
tags
Collection<Tag<T>> tags()Gets alltagsthat have been associated with this object.- Returns:
- The
CollectionofTags.
-
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
-