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 amk
  • 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 Lamk;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 Lamk;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 Lamk;c:Lamj$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 d Lamk;d:Lex;
    • recipeManager

      private final ServerRecipeManager recipeManager
      Mappings:
      Namespace Name Mixin selector
      named recipeManager Lnet/minecraft/server/DataPackContents;recipeManager:Lnet/minecraft/recipe/ServerRecipeManager;
      intermediary field_25337 Lnet/minecraft/class_5350;field_25337:Lnet/minecraft/class_1863;
      official e Lamk;e:Ldck;
    • 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 f Lamk;f:Lamm;
    • 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 g Lamk;g:Lamn;
    • pendingTagLoads

      private final List<Registry.PendingTagLoad<?>> pendingTagLoads
      Mappings:
      Namespace Name Mixin selector
      named pendingTagLoads Lnet/minecraft/server/DataPackContents;pendingTagLoads:Ljava/util/List;
      intermediary field_52345 Lnet/minecraft/class_5350;field_52345:Ljava/util/List;
      official h Lamk;h:Ljava/util/List;
  • Constructor Details

    • DataPackContents

      private DataPackContents(CombinedDynamicRegistries<ServerDynamicRegistryType> dynamicRegistries, RegistryWrapper.WrapperLookup registries, FeatureSet enabledFeatures, CommandManager.RegistrationEnvironment environment, List<Registry.PendingTagLoad<?>> pendingTagLoads, int functionPermissionLevel)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/DataPackContents;<init>(Lnet/minecraft/registry/CombinedDynamicRegistries;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;Ljava/util/List;I)V
      intermediary <init> Lnet/minecraft/class_5350;<init>(Lnet/minecraft/class_7780;Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_7699;Lnet/minecraft/class_2170$class_5364;Ljava/util/List;I)V
      official <init> Lamk;<init>(Ljx;Ljs$a;Lcss;Lex$a;Ljava/util/List;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 Lamk;a()Lamn;
    • 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 Lamk;b()Lamj$a;
    • getRecipeManager

      public ServerRecipeManager getRecipeManager()
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getRecipeManager Lnet/minecraft/server/DataPackContents;getRecipeManager()Lnet/minecraft/recipe/ServerRecipeManager;
      intermediary method_29471 Lnet/minecraft/class_5350;method_29471()Lnet/minecraft/class_1863;
      official c Lamk;c()Ldck;
    • 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 Lamk;d()Lex;
    • 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 Lamk;e()Lamm;
    • 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 Lamk;f()Ljava/util/List;
    • reload

      public static CompletableFuture<DataPackContents> reload(ResourceManager resourceManager, CombinedDynamicRegistries<ServerDynamicRegistryType> dynamicRegistries, List<Registry.PendingTagLoad<?>> pendingTagLoads, 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;Ljava/util/List;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;Ljava/util/List;Lnet/minecraft/class_7699;Lnet/minecraft/class_2170$class_5364;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      official a Lamk;a(Lavv;Ljx;Ljava/util/List;Lcss;Lex$a;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • applyPendingTagLoads

      public void applyPendingTagLoads()
      Mappings:
      Namespace Name Mixin selector
      named applyPendingTagLoads Lnet/minecraft/server/DataPackContents;applyPendingTagLoads()V
      intermediary method_61248 Lnet/minecraft/class_5350;method_61248()V
      official g Lamk;g()V