Package org.spongepowered.api.tag
Interface TagTemplate
- All Superinterfaces:
DataPackSerializable,DataSerializable,Keyed,ResourceKeyed
A template that creates a or modifies a
Tag.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTagTemplate.Builder<T extends Taggable<T>>static interface -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T extends Taggable<T>>
TagTemplate.Builder<T>builder(DefaultedRegistryType<T> registryType) Returns aTagTemplate.Builderthat createsTagTemplates.Methods inherited from interface org.spongepowered.api.datapack.DataPackSerializable
typeMethods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainerMethods inherited from interface org.spongepowered.api.ResourceKeyed
key
-
Method Details
-
builder
static <T extends Taggable<T>> TagTemplate.Builder<T> builder(DefaultedRegistryType<T> registryType) Returns aTagTemplate.Builderthat createsTagTemplates.- Parameters:
registryType- TheDefaultedRegistryTypeof the builder- Returns:
- The builder.
-