Interface TagManagerFactory<T,U extends ITagManager<?>>

Type Parameters:
T - The type of element that the TagManager deals with.
U - The ITagManager type that this creates.
All Known Implementing Classes:
EntityTypeTagManagerFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TagManagerFactory<T,U extends ITagManager<?>>
A TagManagerFactory is used to create custom ITagManagers instead of using the default managers (KnownTagManager or UnknownTagManager)
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> resourceKey, Class<T> tClass)
    Makes a new ITagManager from the given key and class
  • Method Details

    • apply

      U apply(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> resourceKey, Class<T> tClass)
      Makes a new ITagManager from the given key and class
      Parameters:
      resourceKey - The key of the registry that the manager acts on.
      tClass - The type of element that the manager will manage. This can be ignored.
      Returns:
      a new ITagManager from the given key and class.