Class TagProvider<T>

java.lang.Object
net.minecraft.data.server.tag.TagProvider<T>
All Implemented Interfaces:
DataProvider
Direct Known Subclasses:
OneTwentyBiomeTagProvider, ValueLookupTagProvider, VanillaBannerPatternTagProvider, VanillaBiomeTagProvider, VanillaCatVariantTagProvider, VanillaDamageTypeTagProvider, VanillaFlatLevelGeneratorPresetTagProvider, VanillaInstrumentTagProvider, VanillaPaintingVariantTagProvider, VanillaPointOfInterestTypeTagProvider, VanillaStructureTagProvider, VanillaWorldPresetTagProvider

public abstract class TagProvider<T> extends Object implements DataProvider
Mappings:
Namespace Name
official nj
intermediary net/minecraft/class_2474
named net/minecraft/data/server/tag/TagProvider
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official d Lnj;d:Lorg/slf4j/Logger;
      intermediary field_11479 Lnet/minecraft/class_2474;field_11479:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/data/server/tag/TagProvider;LOGGER:Lorg/slf4j/Logger;
    • pathResolver

      protected final DataOutput.PathResolver pathResolver
      Mappings:
      Namespace Name Mixin selector
      official e Lnj;e:Ljj$a;
      intermediary field_39380 Lnet/minecraft/class_2474;field_39380:Lnet/minecraft/class_7784$class_7489;
      named pathResolver Lnet/minecraft/data/server/tag/TagProvider;pathResolver:Lnet/minecraft/data/DataOutput$PathResolver;
    • registryLookupFuture

      private final CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture
      Mappings:
      Namespace Name Mixin selector
      official g Lnj;g:Ljava/util/concurrent/CompletableFuture;
      intermediary field_43107 Lnet/minecraft/class_2474;field_43107:Ljava/util/concurrent/CompletableFuture;
      named registryLookupFuture Lnet/minecraft/data/server/tag/TagProvider;registryLookupFuture:Ljava/util/concurrent/CompletableFuture;
    • registryLoadFuture

      private final CompletableFuture<Void> registryLoadFuture
      Mappings:
      Namespace Name Mixin selector
      official h Lnj;h:Ljava/util/concurrent/CompletableFuture;
      intermediary field_43108 Lnet/minecraft/class_2474;field_43108:Ljava/util/concurrent/CompletableFuture;
      named registryLoadFuture Lnet/minecraft/data/server/tag/TagProvider;registryLoadFuture:Ljava/util/concurrent/CompletableFuture;
    • parentTagLookupFuture

      private final CompletableFuture<TagProvider.TagLookup<T>> parentTagLookupFuture
      Mappings:
      Namespace Name Mixin selector
      official i Lnj;i:Ljava/util/concurrent/CompletableFuture;
      intermediary field_43093 Lnet/minecraft/class_2474;field_43093:Ljava/util/concurrent/CompletableFuture;
      named parentTagLookupFuture Lnet/minecraft/data/server/tag/TagProvider;parentTagLookupFuture:Ljava/util/concurrent/CompletableFuture;
    • registryRef

      protected final RegistryKey<? extends Registry<T>> registryRef
      Mappings:
      Namespace Name Mixin selector
      official f Lnj;f:Ladc;
      intermediary field_40957 Lnet/minecraft/class_2474;field_40957:Lnet/minecraft/class_5321;
      named registryRef Lnet/minecraft/data/server/tag/TagProvider;registryRef:Lnet/minecraft/registry/RegistryKey;
    • tagBuilders

      private final Map<Identifier,TagBuilder> tagBuilders
      Mappings:
      Namespace Name Mixin selector
      official j Lnj;j:Ljava/util/Map;
      intermediary field_11481 Lnet/minecraft/class_2474;field_11481:Ljava/util/Map;
      named tagBuilders Lnet/minecraft/data/server/tag/TagProvider;tagBuilders:Ljava/util/Map;
  • Constructor Details

    • TagProvider

      protected TagProvider(DataOutput output, RegistryKey<? extends Registry<T>> registryRef, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lnj;<init>(Ljj;Ladc;Ljava/util/concurrent/CompletableFuture;)V
      intermediary <init> Lnet/minecraft/class_2474;<init>(Lnet/minecraft/class_7784;Lnet/minecraft/class_5321;Ljava/util/concurrent/CompletableFuture;)V
      named <init> Lnet/minecraft/data/server/tag/TagProvider;<init>(Lnet/minecraft/data/DataOutput;Lnet/minecraft/registry/RegistryKey;Ljava/util/concurrent/CompletableFuture;)V
    • TagProvider

      protected TagProvider(DataOutput output, RegistryKey<? extends Registry<T>> registryRef, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture, CompletableFuture<TagProvider.TagLookup<T>> parentTagLookupFuture)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lnj;<init>(Ljj;Ladc;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/CompletableFuture;)V
      intermediary <init> Lnet/minecraft/class_2474;<init>(Lnet/minecraft/class_7784;Lnet/minecraft/class_5321;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/CompletableFuture;)V
      named <init> Lnet/minecraft/data/server/tag/TagProvider;<init>(Lnet/minecraft/data/DataOutput;Lnet/minecraft/registry/RegistryKey;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/CompletableFuture;)V
  • Method Details

    • getName

      public final String getName()
      Specified by:
      getName in interface DataProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ljh;a()Ljava/lang/String;
      intermediary method_10321 Lnet/minecraft/class_2405;method_10321()Ljava/lang/String;
      named getName Lnet/minecraft/data/DataProvider;getName()Ljava/lang/String;
    • configure

      protected abstract void configure(RegistryWrapper.WrapperLookup lookup)
      Mappings:
      Namespace Name Mixin selector
      official a Lnj;a(Lhf$b;)V
      intermediary method_10514 Lnet/minecraft/class_2474;method_10514(Lnet/minecraft/class_7225$class_7874;)V
      named configure Lnet/minecraft/data/server/tag/TagProvider;configure(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
    • run

      public CompletableFuture<?> run(DataWriter writer)
      Specified by:
      run in interface DataProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ljh;a(Ljf;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_10319 Lnet/minecraft/class_2405;method_10319(Lnet/minecraft/class_7403;)Ljava/util/concurrent/CompletableFuture;
      named run Lnet/minecraft/data/DataProvider;run(Lnet/minecraft/data/DataWriter;)Ljava/util/concurrent/CompletableFuture;
    • getOrCreateTagBuilder

      protected TagProvider.ProvidedTagBuilder<T> getOrCreateTagBuilder(TagKey<T> tag)
      Mappings:
      Namespace Name Mixin selector
      official b Lnj;b(Lanv;)Lnj$b;
      intermediary method_10512 Lnet/minecraft/class_2474;method_10512(Lnet/minecraft/class_6862;)Lnet/minecraft/class_2474$class_5124;
      named getOrCreateTagBuilder Lnet/minecraft/data/server/tag/TagProvider;getOrCreateTagBuilder(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/data/server/tag/TagProvider$ProvidedTagBuilder;
    • getTagBuilder

      protected TagBuilder getTagBuilder(TagKey<T> tag)
      Mappings:
      Namespace Name Mixin selector
      official c Lnj;c(Lanv;)Lans;
      intermediary method_27169 Lnet/minecraft/class_2474;method_27169(Lnet/minecraft/class_6862;)Lnet/minecraft/class_3495;
      named getTagBuilder Lnet/minecraft/data/server/tag/TagProvider;getTagBuilder(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/tag/TagBuilder;
    • getTagLookupFuture

      public CompletableFuture<TagProvider.TagLookup<T>> getTagLookupFuture()
      Mappings:
      Namespace Name Mixin selector
      official c Lnj;c()Ljava/util/concurrent/CompletableFuture;
      intermediary method_49662 Lnet/minecraft/class_2474;method_49662()Ljava/util/concurrent/CompletableFuture;
      named getTagLookupFuture Lnet/minecraft/data/server/tag/TagProvider;getTagLookupFuture()Ljava/util/concurrent/CompletableFuture;
    • getRegistryLookupFuture

      protected CompletableFuture<RegistryWrapper.WrapperLookup> getRegistryLookupFuture()
      Mappings:
      Namespace Name Mixin selector
      official b Lnj;b()Ljava/util/concurrent/CompletableFuture;
      intermediary method_49651 Lnet/minecraft/class_2474;method_49651()Ljava/util/concurrent/CompletableFuture;
      named getRegistryLookupFuture Lnet/minecraft/data/server/tag/TagProvider;getRegistryLookupFuture()Ljava/util/concurrent/CompletableFuture;