Interface Tag<T>

All Superinterfaces:
Keyed, ResourceKeyed

public interface Tag<T> extends 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:

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <T> Tag<T>
    of(DefaultedRegistryType<T> registryType, ResourceKey key)
     

    Methods inherited from interface org.spongepowered.api.ResourceKeyed

    key