Interface TagManagerFactory<T,U extends ITagManager<?>>
- Type Parameters:
T- The type of element that the TagManager deals with.U- TheITagManagertype 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.
A TagManagerFactory is used to create custom
ITagManagers instead of using the default managers (KnownTagManager or UnknownTagManager)-
Method Summary
-
Method Details
-
apply
U apply(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> resourceKey, Class<T> tClass) Makes a newITagManagerfrom 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.
-