net.minecraft.server.commands

public class DataPackCommand

anr
net.minecraft.server.commands.DataPackCommand
net.minecraft.class_3027
net.minecraft.server.command.DatapackCommand
net.minecraft.server.commands.CommandDatapack

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
a
ERROR_UNKNOWN_PACK
field_13503
UNKNOWN_DATAPACK_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
b
ERROR_PACK_ALREADY_ENABLED
field_13504
ALREADY_ENABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
c
ERROR_PACK_ALREADY_DISABLED
field_13505
ALREADY_DISABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
d
ERROR_CANNOT_DISABLE_FEATURE
field_49775
CANNOT_DISABLE_FEATURE_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
e
ERROR_PACK_FEATURES_NOT_ENABLED
field_39980
NO_FLAGS_EXCEPTION
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack>
f
SELECTED_PACKS
field_13506
ENABLED_CONTAINERS_SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack>
g
UNSELECTED_PACKS
field_13502
DISABLED_CONTAINERS_SUGGESTION_PROVIDER

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
a(com.mojang.brigadier.CommandDispatcher<ew> arg0)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> arg0)
method_13125(com.mojang.brigadier.CommandDispatcher<class_2168> arg0)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int
a(ew arg0, avd arg1, anr$a arg2)
enablePack(CommandSourceStack arg0, Pack arg1, DataPackCommand$Inserter arg2)
method_13114(class_2168 arg0, class_3288 arg1, class_3027$class_3028 arg2)
executeEnable(ServerCommandSource source, ResourcePackProfile container, DatapackCommand$PackAdder packAdder)
private static int
a(ew arg0, avd arg1)
disablePack(CommandSourceStack arg0, Pack arg1)
method_13140(class_2168 arg0, class_3288 arg1)
executeDisable(ServerCommandSource source, ResourcePackProfile container)
private static int
a(ew arg0)
listPacks(CommandSourceStack arg0)
method_13121(class_2168 arg0)
executeList(ServerCommandSource source)
private static int
b(ew arg0)
listAvailablePacks(CommandSourceStack arg0)
method_13128(class_2168 arg0)
executeListAvailable(ServerCommandSource source)
private static int
c(ew arg0)
listEnabledPacks(CommandSourceStack arg0)
method_13126(class_2168 arg0)
executeListEnabled(ServerCommandSource source)
private static Pack
a(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1, boolean arg2)
getPack(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1, boolean arg2)
method_13127(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1, boolean arg2)
getPackContainer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, boolean enable)