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.SimpleCommandExceptionType
ADD_FAILED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ALREADY_OFF_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ALREADY_ON_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
REMOVE_FAILED_EXCEPTION
-
Constructor Summary
Constructors Constructor Description WhitelistCommand()
-
Method Summary
Modifier and Type Method Description private static int
executeAdd(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)
private static int
executeList(ServerCommandSource source)
private static int
executeOff(ServerCommandSource source)
private static int
executeOn(ServerCommandSource source)
private static int
executeReload(ServerCommandSource source)
private static int
executeRemove(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)
static void
register(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
-