Package org.spongepowered.api.tag
Interface Tag<T>
- All Superinterfaces:
Keyed
,ResourceKeyed
A
resource keyed
collection of Taggable
values
(of type T
).
While any number of tags may exist and the values each tag contains is arbitrary, vanilla Minecraft generally uses pre-defined tags for one of the following reasons:
- To define a common material that
blocks
are made of, for example,BlockTypeTags.ACACIA_LOGS
- To define a common behavior that the
engine
should apply to a block, such as specifying a block as a log that can burn viaBlockTypeTags.LOGS_THAT_BURN
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tag<T>
of
(DefaultedRegistryType<T> registryType, ResourceKey key) Methods inherited from interface org.spongepowered.api.ResourceKeyed
key
-
Method Details
-
of
-