Class SpectateCommand

java.lang.Object
net.minecraft.server.command.SpectateCommand

public class SpectateCommand
extends Object
  • Field Details

    • SPECTATE_SELF_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SPECTATE_SELF_EXCEPTION
    • NOT_SPECTATOR_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NOT_SPECTATOR_EXCEPTION
  • Constructor Details

    • SpectateCommand

      public SpectateCommand()
  • Method Details

    • register

      public static void register​(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
    • execute

      private static int execute​(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException