Package net.minecraft.server.command
Class DatapackCommand
java.lang.Object
net.minecraft.server.command.DatapackCommand
public class DatapackCommand extends Object
- Mappings:
Namespace Name official xd
intermediary net/minecraft/class_3027
named net/minecraft/server/command/DatapackCommand
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
DatapackCommand.PackAdder
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ALREADY_DISABLED_EXCEPTION
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ALREADY_ENABLED_EXCEPTION
private static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
DISABLED_CONTAINERS_SUGGESTION_PROVIDER
private static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
ENABLED_CONTAINERS_SUGGESTION_PROVIDER
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
UNKNOWN_DATAPACK_EXCEPTION
-
Constructor Summary
Constructors Constructor Description DatapackCommand()
-
Method Summary
Modifier and Type Method Description private 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
executeListAvailable(ServerCommandSource source)
private static int
executeListEnabled(ServerCommandSource source)
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
Lxd;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
Lxd;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
Lxd;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;
-
ENABLED_CONTAINERS_SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> ENABLED_CONTAINERS_SUGGESTION_PROVIDER- Mappings:
Namespace Name Mixin selector official d
Lxd;d: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 e
Lxd;e: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
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)- Mappings:
Namespace Name Mixin selector official a
Lxd;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
Lxd;a(Ldb;Lack;Lxd$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
Lxd;a(Ldb;Lack;)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
Lxd;a(Ldb;)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
Lxd;b(Ldb;)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
Lxd;c(Ldb;)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
Lxd;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Z)Lack;
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;
-