Package net.minecraft.server.command
Class DatapackCommand
java.lang.Object
net.minecraft.server.command.DatapackCommand
- Mappings:
Namespace Name official aed
intermediary net/minecraft/class_3027
named net/minecraft/server/command/DatapackCommand
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
executeDisable
(ServerCommandSource source, ResourcePackProfile container) private static int
executeEnable
(ServerCommandSource source, ResourcePackProfile container, DatapackCommand.PackAdder packAdder) private static int
executeList
(ServerCommandSource source) private static int
private static int
private static ResourcePackProfile
getPackContainer
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, boolean enable) static void
register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
UNKNOWN_DATAPACK_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_DATAPACK_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Laed;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_13503
Lnet/minecraft/class_3027;field_13503:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named UNKNOWN_DATAPACK_EXCEPTION
Lnet/minecraft/server/command/DatapackCommand;UNKNOWN_DATAPACK_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
ALREADY_ENABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ALREADY_ENABLED_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Laed;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_13504
Lnet/minecraft/class_3027;field_13504:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named ALREADY_ENABLED_EXCEPTION
Lnet/minecraft/server/command/DatapackCommand;ALREADY_ENABLED_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
ALREADY_DISABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ALREADY_DISABLED_EXCEPTION- Mappings:
Namespace Name Mixin selector official c
Laed;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_13505
Lnet/minecraft/class_3027;field_13505:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named ALREADY_DISABLED_EXCEPTION
Lnet/minecraft/server/command/DatapackCommand;ALREADY_DISABLED_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
NO_FLAGS_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NO_FLAGS_EXCEPTION- Mappings:
Namespace Name Mixin selector official d
Laed;d:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_39980
Lnet/minecraft/class_3027;field_39980:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
named NO_FLAGS_EXCEPTION
Lnet/minecraft/server/command/DatapackCommand;NO_FLAGS_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
ENABLED_CONTAINERS_SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> ENABLED_CONTAINERS_SUGGESTION_PROVIDER- Mappings:
Namespace Name Mixin selector official e
Laed;e:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
intermediary field_13506
Lnet/minecraft/class_3027;field_13506:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
named ENABLED_CONTAINERS_SUGGESTION_PROVIDER
Lnet/minecraft/server/command/DatapackCommand;ENABLED_CONTAINERS_SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
-
DISABLED_CONTAINERS_SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> DISABLED_CONTAINERS_SUGGESTION_PROVIDER- Mappings:
Namespace Name Mixin selector official f
Laed;f:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
intermediary field_13502
Lnet/minecraft/class_3027;field_13502:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
named DISABLED_CONTAINERS_SUGGESTION_PROVIDER
Lnet/minecraft/server/command/DatapackCommand;DISABLED_CONTAINERS_SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
-
-
Constructor Details
-
DatapackCommand
public DatapackCommand()
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector official a
Laed;a(Lcom/mojang/brigadier/CommandDispatcher;)V
intermediary method_13125
Lnet/minecraft/class_3027;method_13125(Lcom/mojang/brigadier/CommandDispatcher;)V
named register
Lnet/minecraft/server/command/DatapackCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
executeEnable
private static int executeEnable(ServerCommandSource source, ResourcePackProfile container, DatapackCommand.PackAdder packAdder) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Laed;a(Lds;Lake;Laed$a;)I
intermediary method_13114
Lnet/minecraft/class_3027;method_13114(Lnet/minecraft/class_2168;Lnet/minecraft/class_3288;Lnet/minecraft/class_3027$class_3028;)I
named executeEnable
Lnet/minecraft/server/command/DatapackCommand;executeEnable(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/resource/ResourcePackProfile;Lnet/minecraft/server/command/DatapackCommand$PackAdder;)I
-
executeDisable
- Mappings:
Namespace Name Mixin selector official a
Laed;a(Lds;Lake;)I
intermediary method_13140
Lnet/minecraft/class_3027;method_13140(Lnet/minecraft/class_2168;Lnet/minecraft/class_3288;)I
named executeDisable
Lnet/minecraft/server/command/DatapackCommand;executeDisable(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/resource/ResourcePackProfile;)I
-
executeList
- Mappings:
Namespace Name Mixin selector official a
Laed;a(Lds;)I
intermediary method_13121
Lnet/minecraft/class_3027;method_13121(Lnet/minecraft/class_2168;)I
named executeList
Lnet/minecraft/server/command/DatapackCommand;executeList(Lnet/minecraft/server/command/ServerCommandSource;)I
-
executeListAvailable
- Mappings:
Namespace Name Mixin selector official b
Laed;b(Lds;)I
intermediary method_13128
Lnet/minecraft/class_3027;method_13128(Lnet/minecraft/class_2168;)I
named executeListAvailable
Lnet/minecraft/server/command/DatapackCommand;executeListAvailable(Lnet/minecraft/server/command/ServerCommandSource;)I
-
executeListEnabled
- Mappings:
Namespace Name Mixin selector official c
Laed;c(Lds;)I
intermediary method_13126
Lnet/minecraft/class_3027;method_13126(Lnet/minecraft/class_2168;)I
named executeListEnabled
Lnet/minecraft/server/command/DatapackCommand;executeListEnabled(Lnet/minecraft/server/command/ServerCommandSource;)I
-
getPackContainer
private static ResourcePackProfile getPackContainer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, boolean enable) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Laed;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Z)Lake;
intermediary method_13127
Lnet/minecraft/class_3027;method_13127(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Z)Lnet/minecraft/class_3288;
named getPackContainer
Lnet/minecraft/server/command/DatapackCommand;getPackContainer(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Z)Lnet/minecraft/resource/ResourcePackProfile;
-