Class SpectateCommand
java.lang.Object
net.minecraft.server.commands.SpectateCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DynamicCommandExceptionTypeprivate static final DynamicCommandExceptionTypeprivate static final SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(CommandDispatcher<CommandSourceStack> dispatcher) private static intspectate(CommandSourceStack source, @Nullable Entity target, ServerPlayer player)
-
Field Details
-
ERROR_SELF
-
ERROR_NOT_SPECTATOR
-
ERROR_CANNOT_SPECTATE
-
-
Constructor Details
-
SpectateCommand
public SpectateCommand()
-
-
Method Details
-
register
-
spectate
private static int spectate(CommandSourceStack source, @Nullable Entity target, ServerPlayer player) throws CommandSyntaxException - Throws:
CommandSyntaxException
-