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 named net/minecraft/server/DataPackContents
intermediary net/minecraft/class_5350
official alg
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandManager
private static final CompletableFuture
<Unit> private final FunctionLoader
private static final Logger
private final List
<Registry.PendingTagLoad<?>> private final ServerRecipeManager
private final ReloadableRegistries.Lookup
private final ServerAdvancementLoader
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DataPackContents
(CombinedDynamicRegistries<ServerDynamicRegistryType> dynamicRegistries, RegistryWrapper.WrapperLookup registries, FeatureSet enabledFeatures, CommandManager.RegistrationEnvironment environment, List<Registry.PendingTagLoad<?>> pendingTagLoads, int functionPermissionLevel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns the function loader.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.
-
Field Details
-
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
Lalg;a:Lorg/slf4j/Logger;
-
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
Lalg;b:Ljava/util/concurrent/CompletableFuture;
-
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
Lalg;c:Lalf$a;
-
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
Lalg;d:Ley;
-
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
Lalg;e:Ldbm;
-
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
Lalg;f:Lali;
-
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
Lalg;g:Lalj;
-
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
Lalg;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>
Lalg;<init>(Ljy;Ljt$a;Lcru;Ley$a;Ljava/util/List;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 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
Lalg;a()Lalj;
-
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
Lalg;b()Lalf$a;
-
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
Lalg;c()Ldbm;
-
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
Lalg;d()Ley;
-
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
Lalg;e()Lali;
-
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
Lalg;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
Lalg;a(Laup;Ljy;Ljava/util/List;Lcru;Ley$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
Lalg;g()V
-