类 WhitelistCommand
java.lang.Object
net.minecraft.server.commands.WhitelistCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
addPlayers
(CommandSourceStack pSource, Collection<com.mojang.authlib.GameProfile> pPlayers) private static int
disableWhitelist
(CommandSourceStack pSource) private static int
enableWhitelist
(CommandSourceStack pSource) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static int
reload
(CommandSourceStack pSource) private static int
removePlayers
(CommandSourceStack pSource, Collection<com.mojang.authlib.GameProfile> pPlayers) private static int
showList
(CommandSourceStack pSource)
-
字段详细资料
-
ERROR_ALREADY_ENABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_ENABLED -
ERROR_ALREADY_DISABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_DISABLED -
ERROR_ALREADY_WHITELISTED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_WHITELISTED -
ERROR_NOT_WHITELISTED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_WHITELISTED
-
-
构造器详细资料
-
WhitelistCommand
public WhitelistCommand()
-
-
方法详细资料
-
register
-
reload
-
addPlayers
private static int addPlayers(CommandSourceStack pSource, Collection<com.mojang.authlib.GameProfile> pPlayers) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removePlayers
private static int removePlayers(CommandSourceStack pSource, Collection<com.mojang.authlib.GameProfile> pPlayers) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
enableWhitelist
private static int enableWhitelist(CommandSourceStack pSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
disableWhitelist
private static int disableWhitelist(CommandSourceStack pSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
showList
-