Package net.minecraft.server
Class DataPackContents
java.lang.Object
net.minecraft.server.DataPackContents
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 aasintermediary net/minecraft/class_5350named net/minecraft/server/DataPackContents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandManagerprivate final CommandRegistryAccessprivate static final CompletableFuture<Unit>private final FunctionLoaderprivate static final org.slf4j.Loggerprivate final LootConditionManagerprivate final LootFunctionManagerprivate final LootManagerprivate final RecipeManagerprivate final TagManagerLoaderprivate final ServerAdvancementLoader -
Constructor Summary
ConstructorsConstructorDescriptionDataPackContents(DynamicRegistryManager.Immutable dynamicRegistryManager, CommandManager.RegistrationEnvironment commandEnvironment, int functionPermissionLevel) -
Method Summary
Modifier and TypeMethodDescriptionReturns the function loader.voidrefresh(DynamicRegistryManager dynamicRegistryManager) static CompletableFuture<DataPackContents>reload(ResourceManager manager, DynamicRegistryManager.Immutable dynamicRegistryManager, CommandManager.RegistrationEnvironment commandEnvironment, int functionPermissionLevel, Executor prepareExecutor, Executor applyExecutor) Reloads the data packs contents.private static <T> voidrepopulateTags(DynamicRegistryManager dynamicRegistryManager, TagManagerLoader.RegistryTags<T> tags)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official aLaas;a:Lorg/slf4j/Logger;intermediary field_36491Lnet/minecraft/class_5350;field_36491:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/server/DataPackContents;LOGGER:Lorg/slf4j/Logger;
-
COMPLETED_UNIT
- Mappings:
Namespace Name Mixin selector official bLaas;b:Ljava/util/concurrent/CompletableFuture;intermediary field_25334Lnet/minecraft/class_5350;field_25334:Ljava/util/concurrent/CompletableFuture;named COMPLETED_UNITLnet/minecraft/server/DataPackContents;COMPLETED_UNIT:Ljava/util/concurrent/CompletableFuture;
-
commandRegistryAccess
- Mappings:
Namespace Name Mixin selector official cLaas;c:Ldl;intermediary field_38051Lnet/minecraft/class_5350;field_38051:Lnet/minecraft/class_7157;named commandRegistryAccessLnet/minecraft/server/DataPackContents;commandRegistryAccess:Lnet/minecraft/command/CommandRegistryAccess;
-
commandManager
- Mappings:
Namespace Name Mixin selector official dLaas;d:Lds;intermediary field_25336Lnet/minecraft/class_5350;field_25336:Lnet/minecraft/class_2170;named commandManagerLnet/minecraft/server/DataPackContents;commandManager:Lnet/minecraft/server/command/CommandManager;
-
recipeManager
- Mappings:
Namespace Name Mixin selector official eLaas;e:Lcct;intermediary field_25337Lnet/minecraft/class_5350;field_25337:Lnet/minecraft/class_1863;named recipeManagerLnet/minecraft/server/DataPackContents;recipeManager:Lnet/minecraft/recipe/RecipeManager;
-
registryTagManager
- Mappings:
Namespace Name Mixin selector official fLaas;f:Lakj;intermediary field_25338Lnet/minecraft/class_5350;field_25338:Lnet/minecraft/class_3505;named registryTagManagerLnet/minecraft/server/DataPackContents;registryTagManager:Lnet/minecraft/tag/TagManagerLoader;
-
lootConditionManager
- Mappings:
Namespace Name Mixin selector official gLaas;g:Ldrl;intermediary field_25339Lnet/minecraft/class_5350;field_25339:Lnet/minecraft/class_4567;named lootConditionManagerLnet/minecraft/server/DataPackContents;lootConditionManager:Lnet/minecraft/loot/condition/LootConditionManager;
-
lootManager
- Mappings:
Namespace Name Mixin selector official hLaas;h:Ldrk;intermediary field_25340Lnet/minecraft/class_5350;field_25340:Lnet/minecraft/class_60;named lootManagerLnet/minecraft/server/DataPackContents;lootManager:Lnet/minecraft/loot/LootManager;
-
lootFunctionManager
- Mappings:
Namespace Name Mixin selector official iLaas;i:Ldrf;intermediary field_28017Lnet/minecraft/class_5350;field_28017:Lnet/minecraft/class_5640;named lootFunctionManagerLnet/minecraft/server/DataPackContents;lootFunctionManager:Lnet/minecraft/loot/function/LootFunctionManager;
-
serverAdvancementLoader
- Mappings:
Namespace Name Mixin selector official jLaas;j:Laau;intermediary field_25341Lnet/minecraft/class_5350;field_25341:Lnet/minecraft/class_2989;named serverAdvancementLoaderLnet/minecraft/server/DataPackContents;serverAdvancementLoader:Lnet/minecraft/server/ServerAdvancementLoader;
-
functionLoader
- Mappings:
Namespace Name Mixin selector official kLaas;k:Laav;intermediary field_25342Lnet/minecraft/class_5350;field_25342:Lnet/minecraft/class_5349;named functionLoaderLnet/minecraft/server/DataPackContents;functionLoader:Lnet/minecraft/server/function/FunctionLoader;
-
-
Constructor Details
-
DataPackContents
public DataPackContents(DynamicRegistryManager.Immutable dynamicRegistryManager, CommandManager.RegistrationEnvironment commandEnvironment, int functionPermissionLevel) - Mappings:
Namespace Name Mixin selector official <init>Laas;<init>(Lhn$a;Lds$a;I)Vintermediary <init>Lnet/minecraft/class_5350;<init>(Lnet/minecraft/class_5455$class_6890;Lnet/minecraft/class_2170$class_5364;I)Vnamed <init>Lnet/minecraft/server/DataPackContents;<init>(Lnet/minecraft/util/registry/DynamicRegistryManager$Immutable;Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;I)V
-
-
Method Details
-
getFunctionLoader
Returns the function loader.Function loader loads the functions in data packs.
- Returns:
- the function loader
- Mappings:
Namespace Name Mixin selector official aLaas;a()Laav;intermediary method_29465Lnet/minecraft/class_5350;method_29465()Lnet/minecraft/class_5349;named getFunctionLoaderLnet/minecraft/server/DataPackContents;getFunctionLoader()Lnet/minecraft/server/function/FunctionLoader;
-
getLootConditionManager
- Mappings:
Namespace Name Mixin selector official bLaas;b()Ldrl;intermediary method_29468Lnet/minecraft/class_5350;method_29468()Lnet/minecraft/class_4567;named getLootConditionManagerLnet/minecraft/server/DataPackContents;getLootConditionManager()Lnet/minecraft/loot/condition/LootConditionManager;
-
getLootManager
- See Also:
- Mappings:
Namespace Name Mixin selector official cLaas;c()Ldrk;intermediary method_29469Lnet/minecraft/class_5350;method_29469()Lnet/minecraft/class_60;named getLootManagerLnet/minecraft/server/DataPackContents;getLootManager()Lnet/minecraft/loot/LootManager;
-
getLootFunctionManager
- Mappings:
Namespace Name Mixin selector official dLaas;d()Ldrf;intermediary method_32703Lnet/minecraft/class_5350;method_32703()Lnet/minecraft/class_5640;named getLootFunctionManagerLnet/minecraft/server/DataPackContents;getLootFunctionManager()Lnet/minecraft/loot/function/LootFunctionManager;
-
getRecipeManager
- See Also:
- Mappings:
Namespace Name Mixin selector official eLaas;e()Lcct;intermediary method_29471Lnet/minecraft/class_5350;method_29471()Lnet/minecraft/class_1863;named getRecipeManagerLnet/minecraft/server/DataPackContents;getRecipeManager()Lnet/minecraft/recipe/RecipeManager;
-
getCommandManager
- See Also:
- Mappings:
Namespace Name Mixin selector official fLaas;f()Lds;intermediary method_29472Lnet/minecraft/class_5350;method_29472()Lnet/minecraft/class_2170;named getCommandManagerLnet/minecraft/server/DataPackContents;getCommandManager()Lnet/minecraft/server/command/CommandManager;
-
getServerAdvancementLoader
- See Also:
- Mappings:
Namespace Name Mixin selector official gLaas;g()Laau;intermediary method_29473Lnet/minecraft/class_5350;method_29473()Lnet/minecraft/class_2989;named getServerAdvancementLoaderLnet/minecraft/server/DataPackContents;getServerAdvancementLoader()Lnet/minecraft/server/ServerAdvancementLoader;
-
getContents
- Mappings:
Namespace Name Mixin selector official hLaas;h()Ljava/util/List;intermediary method_40427Lnet/minecraft/class_5350;method_40427()Ljava/util/List;named getContentsLnet/minecraft/server/DataPackContents;getContents()Ljava/util/List;
-
reload
public static CompletableFuture<DataPackContents> reload(ResourceManager manager, DynamicRegistryManager.Immutable dynamicRegistryManager, CommandManager.RegistrationEnvironment commandEnvironment, int functionPermissionLevel, Executor prepareExecutor, Executor applyExecutor) Reloads the data packs contents.- See Also:
- Mappings:
Namespace Name Mixin selector official aLaas;a(Lahu;Lhn$a;Lds$a;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;intermediary method_29466Lnet/minecraft/class_5350;method_29466(Lnet/minecraft/class_3300;Lnet/minecraft/class_5455$class_6890;Lnet/minecraft/class_2170$class_5364;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;named reloadLnet/minecraft/server/DataPackContents;reload(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/registry/DynamicRegistryManager$Immutable;Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
refresh
- Mappings:
Namespace Name Mixin selector official aLaas;a(Lhn;)Vintermediary method_40421Lnet/minecraft/class_5350;method_40421(Lnet/minecraft/class_5455;)Vnamed refreshLnet/minecraft/server/DataPackContents;refresh(Lnet/minecraft/util/registry/DynamicRegistryManager;)V
-
repopulateTags
private static <T> void repopulateTags(DynamicRegistryManager dynamicRegistryManager, TagManagerLoader.RegistryTags<T> tags) - Mappings:
Namespace Name Mixin selector official aLaas;a(Lhn;Lakj$a;)Vintermediary method_40422Lnet/minecraft/class_5350;method_40422(Lnet/minecraft/class_5455;Lnet/minecraft/class_3505$class_6863;)Vnamed repopulateTagsLnet/minecraft/server/DataPackContents;repopulateTags(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/tag/TagManagerLoader$RegistryTags;)V
-