Interface IForgeTagCollectionSupplier

All Known Subinterfaces:
ITagCollectionSupplier

public interface IForgeTagCollectionSupplier
  • Method Details

    • getCustomTagTypes

      default Map<ResourceLocation,ITagCollection<?>> getCustomTagTypes()
      Gets the tag map of registry names to tag collections for the various custom tag types.
    • getCustomTypeCollection

      default ITagCollection<?> getCustomTypeCollection(ResourceLocation regName)
      Gets the ITagCollection for a forge registry with the given name, or throws an exception if the registry doesn't support custom tag types.
      Parameters:
      regName - Name of the forge registry
      Returns:
      The tag collection
    • getCustomTypeCollection

      default <T extends IForgeRegistryEntry<T>> ITagCollection<T> getCustomTypeCollection(IForgeRegistry<T> reg)
      Gets the ITagCollection for a forge registry, or throws an exception if the registry doesn't support custom tag types.
      Parameters:
      reg - Forge registry
      Returns:
      The tag collection