类 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> p_138678_) private static int
spectate
(CommandSourceStack p_138684_, Entity p_138685_, ServerPlayer p_138686_)
-
字段详细资料
-
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 p_138684_, @Nullable Entity p_138685_, ServerPlayer p_138686_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-