Package org.spongepowered.api.tag
Interface TagTemplate
-
- All Superinterfaces:
DataPackSerializable,DataSerializable,Keyed,ResourceKeyed
public interface TagTemplate extends DataPackSerializable
A template that creates a or modifies aTag.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTagTemplate.Builder<T extends Taggable<T>>static interfaceTagTemplate.Factory
-
Method Summary
Static Methods Modifier and Type Method Description static <T extends Taggable<T>>
TagTemplate.Builder<T>builder(DefaultedRegistryReference<TagType<T>> reference)Returns aTagTemplate.Builderthat createsTagTemplates.static <T extends Taggable<T>>
TagTemplate.Builder<T>builder(TagType<T> tagType)Returns aTagTemplate.Builderthat createsTagTemplates.-
Methods inherited from interface org.spongepowered.api.datapack.DataPackSerializable
type
-
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
Methods inherited from interface org.spongepowered.api.ResourceKeyed
key
-
-
-
-
Method Detail
-
builder
static <T extends Taggable<T>> TagTemplate.Builder<T> builder(DefaultedRegistryReference<TagType<T>> reference)
Returns aTagTemplate.Builderthat createsTagTemplates.- Parameters:
reference- TheTagTypeof the builder- Returns:
- The builder.
-
builder
static <T extends Taggable<T>> TagTemplate.Builder<T> builder(TagType<T> tagType)
Returns aTagTemplate.Builderthat createsTagTemplates.- Parameters:
tagType- TheTagTypeof the builder- Returns:
- The builder.
-
-