Interface IForgeTagCollectionSupplier
- All Known Subinterfaces:
ITagCollectionSupplier
public interface IForgeTagCollectionSupplier
-
Method Summary
Modifier and TypeMethodDescriptiondefault Map<ResourceLocation,
ITagCollection<?>> Gets the tag map of registry names to tag collections for the various custom tag types.default ITagCollection<?>
getCustomTypeCollection
(ResourceLocation regName) Gets theITagCollection
for a forge registry with the given name, or throws an exception if the registry doesn't support custom tag types.default <T extends IForgeRegistryEntry<T>>
ITagCollection<T>Gets theITagCollection
for a forge registry, or throws an exception if the registry doesn't support custom tag types.
-
Method Details
-
getCustomTagTypes
Gets the tag map of registry names to tag collections for the various custom tag types. -
getCustomTypeCollection
Gets theITagCollection
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 theITagCollection
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
-