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 akv
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static enum
A policy on how to handle aTagKey
that does not resolve to an existing tag (unrecognized tag) inRegistryEntryLookup.getOptional(net.minecraft.registry.tag.TagKey)
. -
Field Summary
Modifier and TypeFieldDescriptionprivate final CommandManager
private static final CompletableFuture
<Unit> private final FunctionLoader
private static final Logger
private final RecipeManager
private final DataPackContents.ConfigurableWrapperLookup
private final TagManagerLoader
private final ReloadableRegistries.Lookup
private final ServerAdvancementLoader
-
Constructor Summary
ModifierConstructorDescriptionprivate
DataPackContents
(DynamicRegistryManager.Immutable dynamicRegistryManager, FeatureSet enabledFeatures, CommandManager.RegistrationEnvironment environment, int functionPermissionLevel) -
Method Summary
Modifier and TypeMethodDescriptionReturns the function loader.void
refresh()
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.private static <T> void
repopulateTags
(DynamicRegistryManager dynamicRegistryManager, TagManagerLoader.RegistryTags<T> tags)
-
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
Lakv;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
Lakv;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
Lakv;c:Laku$b;
-
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
Lakv;d:Lakv$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 e
Lakv;e:Ler;
-
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
Lakv;f:Lcyn;
-
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
Lakv;g:Lawo;
-
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
Lakv;h:Lakx;
-
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
Lakv;i:Laky;
-
-
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>
Lakv;<init>(Ljx$b;Lcoz;Ler$a;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
Lakv;a()Laky;
-
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
Lakv;b()Laku$b;
-
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
Lakv;c()Lcyn;
-
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
Lakv;d()Ler;
-
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
Lakv;e()Lakx;
-
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
Lakv;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
Lakv;a(Latw;Ljq;Lcoz;Ler$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
Lakv;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
Lakv;a(Ljx;Lawo$a;)V
-