Class WhitelistCommand
java.lang.Object
net.minecraft.server.dedicated.command.WhitelistCommand
public class WhitelistCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeADD_FAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeALREADY_OFF_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeALREADY_ON_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeREMOVE_FAILED_EXCEPTION -
Constructor Summary
Constructors Constructor Description WhitelistCommand() -
Method Summary
Modifier and Type Method Description private static intexecuteAdd(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)private static intexecuteList(ServerCommandSource source)private static intexecuteOff(ServerCommandSource source)private static intexecuteOn(ServerCommandSource source)private static intexecuteReload(ServerCommandSource source)private static intexecuteRemove(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
ALREADY_ON_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_ON_EXCEPTION -
ALREADY_OFF_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_OFF_EXCEPTION -
ADD_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ADD_FAILED_EXCEPTION -
REMOVE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType REMOVE_FAILED_EXCEPTION
-
-
Constructor Details
-
WhitelistCommand
public WhitelistCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
executeReload
-
executeAdd
private static int executeAdd(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets) -
executeRemove
private static int executeRemove(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets) -
executeOn
private static int executeOn(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeOff
private static int executeOff(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeList
-