Class FabricTagProvider.EnchantmentTagProvider
java.lang.Object
net.minecraft.data.server.tag.TagProvider<Enchantment>
net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider<Enchantment>
net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider.EnchantmentTagProvider
- All Implemented Interfaces:
DataProvider
- Enclosing class:
FabricTagProvider<T>
public abstract static class FabricTagProvider.EnchantmentTagProvider
extends FabricTagProvider<Enchantment>
Extend this class to create
Enchantment
tags in the "/enchantments" tag directory.-
Nested Class Summary
Nested classes/interfaces inherited from class net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider
FabricTagProvider.BlockTagProvider, FabricTagProvider.EnchantmentTagProvider, FabricTagProvider.EntityTypeTagProvider, FabricTagProvider.FabricTagBuilder, FabricTagProvider.FluidTagProvider, FabricTagProvider.GameEventTagProvider, 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
-
Constructor Summary
ConstructorDescriptionEnchantmentTagProvider
(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> completableFuture) -
Method Summary
Modifier and TypeMethodDescriptionprotected RegistryKey
<Enchantment> reverseLookup
(Enchantment 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
-
EnchantmentTagProvider
public EnchantmentTagProvider(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<Enchantment>
-