Class DataPackContents

java.lang.Object
net.minecraft.server.DataPackContents

public class DataPackContents extends Object
Contains loaders for contents controllable by data packs.

This can be accessed via MinecraftServer.ResourceManagerHolder.dataPackContents. There are shortcut methods to access individual loaders on MinecraftServer.

Mappings:
Namespace Name
named net/minecraft/server/DataPackContents
intermediary net/minecraft/class_5350
official alc
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/server/DataPackContents;LOGGER:Lorg/slf4j/Logger;
      intermediary field_36491 Lnet/minecraft/class_5350;field_36491:Lorg/slf4j/Logger;
      official a Lalc;a:Lorg/slf4j/Logger;
    • COMPLETED_UNIT

      private static final CompletableFuture<Unit> COMPLETED_UNIT
      Mappings:
      Namespace Name Mixin selector
      named COMPLETED_UNIT Lnet/minecraft/server/DataPackContents;COMPLETED_UNIT:Ljava/util/concurrent/CompletableFuture;
      intermediary field_25334 Lnet/minecraft/class_5350;field_25334:Ljava/util/concurrent/CompletableFuture;
      official b Lalc;b:Ljava/util/concurrent/CompletableFuture;
    • reloadableRegistries

      private final ReloadableRegistries.Lookup reloadableRegistries
      Mappings:
      Namespace Name Mixin selector
      named reloadableRegistries Lnet/minecraft/server/DataPackContents;reloadableRegistries:Lnet/minecraft/registry/ReloadableRegistries$Lookup;
      intermediary field_49921 Lnet/minecraft/class_5350;field_49921:Lnet/minecraft/class_9383$class_9385;
      official c Lalc;c:Lalb$b;
    • registryLookup

      private final DataPackContents.ConfigurableWrapperLookup registryLookup
      Mappings:
      Namespace Name Mixin selector
      named registryLookup Lnet/minecraft/server/DataPackContents;registryLookup:Lnet/minecraft/server/DataPackContents$ConfigurableWrapperLookup;
      intermediary field_48785 Lnet/minecraft/class_5350;field_48785:Lnet/minecraft/class_5350$class_9180;
      official d Lalc;d:Lalc$a;
    • commandManager

      private final CommandManager commandManager
      Mappings:
      Namespace Name Mixin selector
      named commandManager Lnet/minecraft/server/DataPackContents;commandManager:Lnet/minecraft/server/command/CommandManager;
      intermediary field_25336 Lnet/minecraft/class_5350;field_25336:Lnet/minecraft/class_2170;
      official e Lalc;e:Leu;
    • recipeManager

      private final RecipeManager recipeManager
      Mappings:
      Namespace Name Mixin selector
      named recipeManager Lnet/minecraft/server/DataPackContents;recipeManager:Lnet/minecraft/recipe/RecipeManager;
      intermediary field_25337 Lnet/minecraft/class_5350;field_25337:Lnet/minecraft/class_1863;
      official f Lalc;f:Lczd;
    • registryTagManager

      private final TagManagerLoader registryTagManager
      Mappings:
      Namespace Name Mixin selector
      named registryTagManager Lnet/minecraft/server/DataPackContents;registryTagManager:Lnet/minecraft/registry/tag/TagManagerLoader;
      intermediary field_25338 Lnet/minecraft/class_5350;field_25338:Lnet/minecraft/class_3505;
      official g Lalc;g:Laww;
    • serverAdvancementLoader

      private final ServerAdvancementLoader serverAdvancementLoader
      Mappings:
      Namespace Name Mixin selector
      named serverAdvancementLoader Lnet/minecraft/server/DataPackContents;serverAdvancementLoader:Lnet/minecraft/server/ServerAdvancementLoader;
      intermediary field_25341 Lnet/minecraft/class_5350;field_25341:Lnet/minecraft/class_2989;
      official h Lalc;h:Lale;
    • functionLoader

      private final FunctionLoader functionLoader
      Mappings:
      Namespace Name Mixin selector
      named functionLoader Lnet/minecraft/server/DataPackContents;functionLoader:Lnet/minecraft/server/function/FunctionLoader;
      intermediary field_25342 Lnet/minecraft/class_5350;field_25342:Lnet/minecraft/class_5349;
      official i Lalc;i:Lalf;
  • Constructor Details

    • DataPackContents

      private DataPackContents(DynamicRegistryManager.Immutable dynamicRegistryManager, FeatureSet enabledFeatures, CommandManager.RegistrationEnvironment environment, int functionPermissionLevel)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/DataPackContents;<init>(Lnet/minecraft/registry/DynamicRegistryManager$Immutable;Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;I)V
      intermediary <init> Lnet/minecraft/class_5350;<init>(Lnet/minecraft/class_5455$class_6890;Lnet/minecraft/class_7699;Lnet/minecraft/class_2170$class_5364;I)V
      official <init> Lalc;<init>(Lka$b;Lcpl;Leu$a;I)V
  • Method Details

    • getFunctionLoader

      public FunctionLoader getFunctionLoader()
      Returns the function loader.

      Function loader loads the functions in data packs.

      Returns:
      the function loader
      Mappings:
      Namespace Name Mixin selector
      named getFunctionLoader Lnet/minecraft/server/DataPackContents;getFunctionLoader()Lnet/minecraft/server/function/FunctionLoader;
      intermediary method_29465 Lnet/minecraft/class_5350;method_29465()Lnet/minecraft/class_5349;
      official a Lalc;a()Lalf;
    • getReloadableRegistries

      public ReloadableRegistries.Lookup getReloadableRegistries()
      Mappings:
      Namespace Name Mixin selector
      named getReloadableRegistries Lnet/minecraft/server/DataPackContents;getReloadableRegistries()Lnet/minecraft/registry/ReloadableRegistries$Lookup;
      intermediary method_58297 Lnet/minecraft/class_5350;method_58297()Lnet/minecraft/class_9383$class_9385;
      official b Lalc;b()Lalb$b;
    • getRecipeManager

      public RecipeManager getRecipeManager()
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getRecipeManager Lnet/minecraft/server/DataPackContents;getRecipeManager()Lnet/minecraft/recipe/RecipeManager;
      intermediary method_29471 Lnet/minecraft/class_5350;method_29471()Lnet/minecraft/class_1863;
      official c Lalc;c()Lczd;
    • getCommandManager

      public CommandManager getCommandManager()
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getCommandManager Lnet/minecraft/server/DataPackContents;getCommandManager()Lnet/minecraft/server/command/CommandManager;
      intermediary method_29472 Lnet/minecraft/class_5350;method_29472()Lnet/minecraft/class_2170;
      official d Lalc;d()Leu;
    • getServerAdvancementLoader

      public ServerAdvancementLoader getServerAdvancementLoader()
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getServerAdvancementLoader Lnet/minecraft/server/DataPackContents;getServerAdvancementLoader()Lnet/minecraft/server/ServerAdvancementLoader;
      intermediary method_29473 Lnet/minecraft/class_5350;method_29473()Lnet/minecraft/class_2989;
      official e Lalc;e()Lale;
    • getContents

      public List<ResourceReloader> getContents()
      Mappings:
      Namespace Name Mixin selector
      named getContents Lnet/minecraft/server/DataPackContents;getContents()Ljava/util/List;
      intermediary method_40427 Lnet/minecraft/class_5350;method_40427()Ljava/util/List;
      official f Lalc;f()Ljava/util/List;
    • reload

      public static CompletableFuture<DataPackContents> reload(ResourceManager manager, CombinedDynamicRegistries<ServerDynamicRegistryType> dynamicRegistries, FeatureSet enabledFeatures, CommandManager.RegistrationEnvironment environment, int functionPermissionLevel, Executor prepareExecutor, Executor applyExecutor)
      Reloads the data packs contents.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named reload Lnet/minecraft/server/DataPackContents;reload(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/registry/CombinedDynamicRegistries;Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_29466 Lnet/minecraft/class_5350;method_29466(Lnet/minecraft/class_3300;Lnet/minecraft/class_7780;Lnet/minecraft/class_7699;Lnet/minecraft/class_2170$class_5364;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      official a Lalc;a(Laue;Ljt;Lcpl;Leu$a;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • refresh

      public void refresh()
      Mappings:
      Namespace Name Mixin selector
      named refresh Lnet/minecraft/server/DataPackContents;refresh()V
      intermediary method_40421 Lnet/minecraft/class_5350;method_40421()V
      official g Lalc;g()V
    • repopulateTags

      private static <T> void repopulateTags(DynamicRegistryManager dynamicRegistryManager, TagManagerLoader.RegistryTags<T> tags)
      Mappings:
      Namespace Name Mixin selector
      named repopulateTags Lnet/minecraft/server/DataPackContents;repopulateTags(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/tag/TagManagerLoader$RegistryTags;)V
      intermediary method_40422 Lnet/minecraft/class_5350;method_40422(Lnet/minecraft/class_5455;Lnet/minecraft/class_3505$class_6863;)V
      official a Lalc;a(Lka;Laww$a;)V