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 interface
TagTemplate.Builder<T extends Taggable<T>>
static interface
TagTemplate.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.Builder
that createsTagTemplate
s.static <T extends Taggable<T>>
TagTemplate.Builder<T>builder(TagType<T> tagType)
Returns aTagTemplate.Builder
that createsTagTemplate
s.-
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.Builder
that createsTagTemplate
s.- Parameters:
reference
- TheTagType
of the builder- Returns:
- The builder.
-
builder
static <T extends Taggable<T>> TagTemplate.Builder<T> builder(TagType<T> tagType)
Returns aTagTemplate.Builder
that createsTagTemplate
s.- Parameters:
tagType
- TheTagType
of the builder- Returns:
- The builder.
-
-