类 SpectateCommand
java.lang.Object
net.minecraft.server.commands.SpectateCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static int
spectate
(CommandSourceStack pSource, Entity pTarget, ServerPlayer pPlayer)
-
字段详细资料
-
ERROR_SELF
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SELF -
ERROR_NOT_SPECTATOR
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOT_SPECTATOR
-
-
构造器详细资料
-
SpectateCommand
public SpectateCommand()
-
-
方法详细资料
-
register
-
spectate
private static int spectate(CommandSourceStack pSource, @Nullable Entity pTarget, ServerPlayer pPlayer) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-