public class SpectateCommand extends Object
| Modifier and Type | Field and Description |
|---|---|
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
NOT_SPECTATOR_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SPECTATE_SELF_EXCEPTION |
| Constructor and Description |
|---|
SpectateCommand() |
| Modifier and Type | Method and Description |
|---|---|
private static int |
execute(ServerCommandSource source,
Entity entity,
ServerPlayerEntity player) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SPECTATE_SELF_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NOT_SPECTATOR_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int execute(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException