Package net.minecraft.server.command
Class SpectateCommand
java.lang.Object
net.minecraft.server.command.SpectateCommand
public class SpectateCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeNOT_SPECTATOR_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSPECTATE_SELF_EXCEPTION -
Constructor Summary
Constructors Constructor Description SpectateCommand() -
Method Summary
Modifier and Type Method Description private static intexecute(ServerCommandSource source, Entity entity, ServerPlayerEntity player)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
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
-