Class SpectateCommand

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

public class SpectateCommand extends Object
  • Field Details

    • 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
  • Constructor Details

    • SpectateCommand

      public SpectateCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138678_)
    • spectate

      private static int spectate(CommandSourceStack p_138684_, @Nullable Entity p_138685_, ServerPlayer p_138686_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException