Package net.minecraft.data.tags
Class TagsProvider<T>
java.lang.Object
net.minecraft.data.tags.TagsProvider<T>
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
BannerPatternTagsProvider
,BiomeTagsProvider
,CatVariantTagsProvider
,DamageTypeTagsProvider
,FlatLevelGeneratorPresetTagsProvider
,InstrumentTagsProvider
,IntrinsicHolderTagsProvider
,PaintingVariantTagsProvider
,PoiTypeTagsProvider
,StructureTagsProvider
,WorldPresetTagsProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static interface
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<ResourceLocation,
TagBuilder> private final CompletableFuture<Void>
private final ExistingFileHelper.IResourceType
protected final ExistingFileHelper
private static final org.slf4j.Logger
private final CompletableFuture<HolderLookup.Provider>
protected final String
private final CompletableFuture<TagsProvider.TagLookup<T>>
protected final PackOutput.PathProvider
protected final ResourceKey<? extends Registry<T>>
private final ExistingFileHelper.IResourceType
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TagsProvider
(PackOutput p_256596_, ResourceKey<? extends Registry<T>> p_255886_, CompletableFuture<HolderLookup.Provider> p_256513_) Deprecated.Forge: Use the mod id variantprotected
TagsProvider
(PackOutput p_256596_, ResourceKey<? extends Registry<T>> p_255886_, CompletableFuture<HolderLookup.Provider> p_256513_, String modId, ExistingFileHelper existingFileHelper) protected
TagsProvider
(PackOutput p_275432_, ResourceKey<? extends Registry<T>> p_275476_, CompletableFuture<HolderLookup.Provider> p_275222_, CompletableFuture<TagsProvider.TagLookup<T>> p_275565_) Deprecated.Forge: Use the mod id variantprotected
TagsProvider
(PackOutput p_275432_, ResourceKey<? extends Registry<T>> p_275476_, CompletableFuture<HolderLookup.Provider> p_275222_, CompletableFuture<TagsProvider.TagLookup<T>> p_275565_, String modId, ExistingFileHelper existingFileHelper) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addTags
(HolderLookup.Provider p_256380_) protected CompletableFuture<HolderLookup.Provider>
getName()
protected TagBuilder
getOrCreateRawBuilder
(TagKey<T> p_236452_) protected @Nullable Path
private boolean
run
(CachedOutput p_253684_) protected TagsProvider.TagAppender<T>
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
pathProvider
-
lookupProvider
-
contentsDone
-
parentProvider
-
registryKey
-
builders
-
modId
-
existingFileHelper
-
resourceType
-
elementResourceType
-
-
Constructor Details
-
TagsProvider
protected TagsProvider(PackOutput p_256596_, ResourceKey<? extends Registry<T>> p_255886_, CompletableFuture<HolderLookup.Provider> p_256513_) Deprecated.Forge: Use the mod id variant -
TagsProvider
protected TagsProvider(PackOutput p_256596_, ResourceKey<? extends Registry<T>> p_255886_, CompletableFuture<HolderLookup.Provider> p_256513_, String modId, @Nullable ExistingFileHelper existingFileHelper) -
TagsProvider
@Deprecated protected TagsProvider(PackOutput p_275432_, ResourceKey<? extends Registry<T>> p_275476_, CompletableFuture<HolderLookup.Provider> p_275222_, CompletableFuture<TagsProvider.TagLookup<T>> p_275565_) Deprecated.Forge: Use the mod id variant -
TagsProvider
protected TagsProvider(PackOutput p_275432_, ResourceKey<? extends Registry<T>> p_275476_, CompletableFuture<HolderLookup.Provider> p_275222_, CompletableFuture<TagsProvider.TagLookup<T>> p_275565_, String modId, @Nullable ExistingFileHelper existingFileHelper)
-
-
Method Details
-
getPath
-
getName
- Specified by:
getName
in interfaceDataProvider
-
addTags
-
run
- Specified by:
run
in interfaceDataProvider
-
missing
-
tag
-
getOrCreateRawBuilder
-
contentsGetter
-
createContentsProvider
-