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
official acp
intermediary net/minecraft/class_5350
named net/minecraft/server/DataPackContents
  • Field Details

    • LOGGER

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

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

      private final CommandRegistryAccess.EntryListCreationPolicySettable commandRegistryAccess
      Mappings:
      Namespace Name Mixin selector
      official c Lacp;c:Ldi$a;
      intermediary field_38051 Lnet/minecraft/class_5350;field_38051:Lnet/minecraft/class_7157$class_7870;
      named commandRegistryAccess Lnet/minecraft/server/DataPackContents;commandRegistryAccess:Lnet/minecraft/command/CommandRegistryAccess$EntryListCreationPolicySettable;
    • commandManager

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

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

      private final TagManagerLoader registryTagManager
      Mappings:
      Namespace Name Mixin selector
      official f Lacp;f:Lamt;
      intermediary field_25338 Lnet/minecraft/class_5350;field_25338:Lnet/minecraft/class_3505;
      named registryTagManager Lnet/minecraft/server/DataPackContents;registryTagManager:Lnet/minecraft/registry/tag/TagManagerLoader;
    • lootConditionManager

      private final LootConditionManager lootConditionManager
      Mappings:
      Namespace Name Mixin selector
      official g Lacp;g:Ldvw;
      intermediary field_25339 Lnet/minecraft/class_5350;field_25339:Lnet/minecraft/class_4567;
      named lootConditionManager Lnet/minecraft/server/DataPackContents;lootConditionManager:Lnet/minecraft/loot/condition/LootConditionManager;
    • lootManager

      private final LootManager lootManager
      Mappings:
      Namespace Name Mixin selector
      official h Lacp;h:Ldvv;
      intermediary field_25340 Lnet/minecraft/class_5350;field_25340:Lnet/minecraft/class_60;
      named lootManager Lnet/minecraft/server/DataPackContents;lootManager:Lnet/minecraft/loot/LootManager;
    • lootFunctionManager

      private final LootFunctionManager lootFunctionManager
      Mappings:
      Namespace Name Mixin selector
      official i Lacp;i:Ldvq;
      intermediary field_28017 Lnet/minecraft/class_5350;field_28017:Lnet/minecraft/class_5640;
      named lootFunctionManager Lnet/minecraft/server/DataPackContents;lootFunctionManager:Lnet/minecraft/loot/function/LootFunctionManager;
    • serverAdvancementLoader

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

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

    • DataPackContents

      public DataPackContents(DynamicRegistryManager.Immutable dynamicRegistryManager, FeatureSet enabledFeatures, CommandManager.RegistrationEnvironment environment, int functionPermissionLevel)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lacp;<init>(Lhn$b;Lbyx;Ldp$a;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
      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
  • 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
      official a Lacp;a()Lacs;
      intermediary method_29465 Lnet/minecraft/class_5350;method_29465()Lnet/minecraft/class_5349;
      named getFunctionLoader Lnet/minecraft/server/DataPackContents;getFunctionLoader()Lnet/minecraft/server/function/FunctionLoader;
    • getLootConditionManager

      public LootConditionManager getLootConditionManager()
      Mappings:
      Namespace Name Mixin selector
      official b Lacp;b()Ldvw;
      intermediary method_29468 Lnet/minecraft/class_5350;method_29468()Lnet/minecraft/class_4567;
      named getLootConditionManager Lnet/minecraft/server/DataPackContents;getLootConditionManager()Lnet/minecraft/loot/condition/LootConditionManager;
    • getLootManager

      public LootManager getLootManager()
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lacp;c()Ldvv;
      intermediary method_29469 Lnet/minecraft/class_5350;method_29469()Lnet/minecraft/class_60;
      named getLootManager Lnet/minecraft/server/DataPackContents;getLootManager()Lnet/minecraft/loot/LootManager;
    • getLootFunctionManager

      public LootFunctionManager getLootFunctionManager()
      Mappings:
      Namespace Name Mixin selector
      official d Lacp;d()Ldvq;
      intermediary method_32703 Lnet/minecraft/class_5350;method_32703()Lnet/minecraft/class_5640;
      named getLootFunctionManager Lnet/minecraft/server/DataPackContents;getLootFunctionManager()Lnet/minecraft/loot/function/LootFunctionManager;
    • getRecipeManager

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

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

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

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

      public static CompletableFuture<DataPackContents> reload(ResourceManager manager, DynamicRegistryManager.Immutable dynamicRegistryManager, FeatureSet enabledFeatures, CommandManager.RegistrationEnvironment environment, int functionPermissionLevel, Executor prepareExecutor, Executor applyExecutor)
      Reloads the data packs contents.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lacp;a(Lake;Lhn$b;Lbyx;Ldp$a;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_5455$class_6890;Lnet/minecraft/class_7699;Lnet/minecraft/class_2170$class_5364;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      named reload Lnet/minecraft/server/DataPackContents;reload(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/registry/DynamicRegistryManager$Immutable;Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • refresh

      public void refresh(DynamicRegistryManager dynamicRegistryManager)
      Mappings:
      Namespace Name Mixin selector
      official a Lacp;a(Lhn;)V
      intermediary method_40421 Lnet/minecraft/class_5350;method_40421(Lnet/minecraft/class_5455;)V
      named refresh Lnet/minecraft/server/DataPackContents;refresh(Lnet/minecraft/registry/DynamicRegistryManager;)V
    • repopulateTags

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