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
Modifier and TypeInterfaceDescriptionstatic interface
TagTemplate.Builder<T extends Taggable<T>>
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Taggable<T>>
TagTemplate.Builder<T>builder
(DefaultedRegistryType<T> registryType) 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 Details
-
builder
static <T extends Taggable<T>> TagTemplate.Builder<T> builder(DefaultedRegistryType<T> registryType) Returns aTagTemplate.Builder
that createsTagTemplate
s.- Parameters:
registryType
- TheDefaultedRegistryType
of the builder- Returns:
- The builder.
-