Package net.minecraft.command.impl
Class DataPackCommand
- java.lang.Object
-
- net.minecraft.command.impl.DataPackCommand
-
public class DataPackCommand extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
DataPackCommand.IHandler
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_PACK_ALREADY_DISABLED
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_PACK_ALREADY_ENABLED
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_UNKNOWN_PACK
private static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
SELECTED_PACKS
private static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
UNSELECTED_PACKS
-
Constructor Summary
Constructors Constructor Description DataPackCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static int
disablePack(CommandSource p_198312_0_, ResourcePackInfo p_198312_1_)
private static int
enablePack(CommandSource p_198297_0_, ResourcePackInfo p_198297_1_, DataPackCommand.IHandler p_198297_2_)
private static ResourcePackInfo
getPack(com.mojang.brigadier.context.CommandContext<CommandSource> p_198303_0_, java.lang.String p_198303_1_, boolean p_198303_2_)
private static int
listAvailablePacks(CommandSource p_198314_0_)
private static int
listEnabledPacks(CommandSource p_198315_0_)
private static int
listPacks(CommandSource p_198313_0_)
static void
register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198299_0_)
-
-
-
Field Detail
-
ERROR_UNKNOWN_PACK
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_PACK
-
ERROR_PACK_ALREADY_ENABLED
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_PACK_ALREADY_ENABLED
-
ERROR_PACK_ALREADY_DISABLED
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_PACK_ALREADY_DISABLED
-
SELECTED_PACKS
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SELECTED_PACKS
-
UNSELECTED_PACKS
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> UNSELECTED_PACKS
-
-
Method Detail
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198299_0_)
-
enablePack
private static int enablePack(CommandSource p_198297_0_, ResourcePackInfo p_198297_1_, DataPackCommand.IHandler p_198297_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
disablePack
private static int disablePack(CommandSource p_198312_0_, ResourcePackInfo p_198312_1_)
-
listPacks
private static int listPacks(CommandSource p_198313_0_)
-
listAvailablePacks
private static int listAvailablePacks(CommandSource p_198314_0_)
-
listEnabledPacks
private static int listEnabledPacks(CommandSource p_198315_0_)
-
getPack
private static ResourcePackInfo getPack(com.mojang.brigadier.context.CommandContext<CommandSource> p_198303_0_, java.lang.String p_198303_1_, boolean p_198303_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-