Package net.minecraftforge.common.data
Class ForgeRegistryTagsProvider<T extends IForgeRegistryEntry<T>>
- java.lang.Object
-
- net.minecraft.data.TagsProvider<T>
-
- net.minecraftforge.common.data.ForgeRegistryTagsProvider<T>
-
- All Implemented Interfaces:
IDataProvider
- Direct Known Subclasses:
CustomTagTypesTest.CustomRegistryTags
,CustomTagTypesTest.EnchantmentTags
,CustomTagTypesTest.PotionTags
,CustomTagTypesTest.TileEntityTypeTags
public abstract class ForgeRegistryTagsProvider<T extends IForgeRegistryEntry<T>> extends TagsProvider<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.data.TagsProvider
TagsProvider.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<IForgeRegistry<?>,java.lang.String>
vanillaTypes
-
Fields inherited from class net.minecraft.data.TagsProvider
builders, existingFileHelper, folder, generator, modId, registry
-
Fields inherited from interface net.minecraft.data.IDataProvider
SHA1
-
-
Constructor Summary
Constructors Constructor Description ForgeRegistryTagsProvider(DataGenerator generatorIn, IForgeRegistry<T> registryIn, java.lang.String modId, ExistingFileHelper existingFileHelper)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.nio.file.Path
getPath(ResourceLocation id)
private static <T extends IForgeRegistryEntry<T>>
java.lang.StringgetTagFolder(IForgeRegistry<T> registryIn)
private static <T extends IForgeRegistryEntry<T>>
Registry<T>wrapRegistry(IForgeRegistry<T> registryIn)
-
Methods inherited from class net.minecraft.data.TagsProvider
addTags, getOrCreateRawBuilder, getTagFolder, run, tag
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.data.IDataProvider
getName
-
-
-
-
Field Detail
-
vanillaTypes
private static final java.util.Map<IForgeRegistry<?>,java.lang.String> vanillaTypes
-
-
Constructor Detail
-
ForgeRegistryTagsProvider
public ForgeRegistryTagsProvider(DataGenerator generatorIn, IForgeRegistry<T> registryIn, java.lang.String modId, @Nullable ExistingFileHelper existingFileHelper)
-
-
Method Detail
-
wrapRegistry
private static <T extends IForgeRegistryEntry<T>> Registry<T> wrapRegistry(IForgeRegistry<T> registryIn)
-
getTagFolder
private static <T extends IForgeRegistryEntry<T>> java.lang.String getTagFolder(IForgeRegistry<T> registryIn)
-
getPath
protected java.nio.file.Path getPath(ResourceLocation id)
- Specified by:
getPath
in classTagsProvider<T extends IForgeRegistryEntry<T>>
-
-