Package net.minecraftforge.common.data
Class ForgeItemTagsProvider
java.lang.Object
net.minecraft.data.tags.TagsProvider<T>
net.minecraft.data.tags.IntrinsicHolderTagsProvider<Item>
net.minecraft.data.tags.ItemTagsProvider
net.minecraftforge.common.data.ForgeItemTagsProvider
- All Implemented Interfaces:
DataProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.data.tags.IntrinsicHolderTagsProvider
IntrinsicHolderTagsProvider.IntrinsicTagAppender<T>
Nested classes/interfaces inherited from class net.minecraft.data.tags.TagsProvider
TagsProvider.TagAppender<T>, TagsProvider.TagLookup<T>
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
Fields inherited from class net.minecraft.data.tags.TagsProvider
builders, existingFileHelper, modId, pathProvider, registryKey
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR
-
Constructor Summary
ConstructorsConstructorDescriptionForgeItemTagsProvider
(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, CompletableFuture<TagsProvider.TagLookup<Block>> blockTagProvider, ExistingFileHelper existingFileHelper) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
addTags
(HolderLookup.Provider lookupProvider) private void
copyColored
(TagKey<Block> blockGroup, TagKey<Item> itemGroup) getForgeBlockTag
(String name) getForgeItemTag
(String name) getName()
Methods inherited from class net.minecraft.data.tags.ItemTagsProvider
copy, createContentsProvider
Methods inherited from class net.minecraft.data.tags.IntrinsicHolderTagsProvider
tag
Methods inherited from class net.minecraft.data.tags.TagsProvider
contentsGetter, getOrCreateRawBuilder, getPath, run
-
Constructor Details
-
ForgeItemTagsProvider
public ForgeItemTagsProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, CompletableFuture<TagsProvider.TagLookup<Block>> blockTagProvider, ExistingFileHelper existingFileHelper)
-
-
Method Details
-
addTags
- Specified by:
addTags
in classTagsProvider<Item>
-
addColored
-
copyColored
-
getForgeBlockTag
-
getForgeItemTag
-
getName
- Specified by:
getName
in interfaceDataProvider
- Overrides:
getName
in classTagsProvider<Item>
-