Class SpectateCommand


  • public class SpectateCommand
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOT_SPECTATOR  
      private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SELF  
    • Constructor Summary

      Constructors 
      Constructor Description
      SpectateCommand()  
    • Field Detail

      • 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 Detail

      • SpectateCommand

        public SpectateCommand()
    • Method Detail

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<CommandSource> p_229826_0_)
      • spectate

        private static int spectate​(CommandSource p_229829_0_,
                                    @Nullable
                                    Entity p_229829_1_,
                                    ServerPlayerEntity p_229829_2_)
                             throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException