Class FabricTagProvider.FluidTagProvider
java.lang.Object
net.minecraft.data.server.tag.TagProvider<Fluid>
net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider<Fluid>
net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider.FluidTagProvider
- All Implemented Interfaces:
DataProvider
- Enclosing class:
FabricTagProvider<T>
Extend this class to create
Fluid
tags in the "/fluids" tag directory.-
Nested Class Summary
Nested classes/interfaces inherited from class net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider
FabricTagProvider.BlockEntityTypeTagProvider, FabricTagProvider.BlockTagProvider, FabricTagProvider.EnchantmentTagProvider, FabricTagProvider.EntityTypeTagProvider, FabricTagProvider.FabricTagBuilder, FabricTagProvider.FluidTagProvider, FabricTagProvider.ItemTagProvider
Nested classes/interfaces inherited from class net.minecraft.data.server.tag.TagProvider
TagProvider.ProvidedTagBuilder<T>, TagProvider.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.server.tag.TagProvider
pathResolver, registryRef
Fields inherited from interface net.minecraft.data.DataProvider
JSON_KEY_SORT_ORDER, JSON_KEY_SORTING_COMPARATOR, LOGGER
-
Constructor Summary
ConstructorDescriptionFluidTagProvider
(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> completableFuture) -
Method Summary
Modifier and TypeMethodDescriptionprotected RegistryKey
<Fluid> reverseLookup
(Fluid element) Override to enable adding objects to the tag builder directly.Methods inherited from class net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider
configure, getOrCreateTagBuilder
Methods inherited from class net.minecraft.data.server.tag.TagProvider
getName, getRegistryLookupFuture, getTagBuilder, getTagLookupFuture, run
-
Constructor Details
-
FluidTagProvider
public FluidTagProvider(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> completableFuture)
-
-
Method Details
-
reverseLookup
Description copied from class:FabricTagProvider
Override to enable adding objects to the tag builder directly.- Overrides:
reverseLookup
in classFabricTagProvider<Fluid>
-