Package net.minecraft.server.commands
Class SpectateCommand
java.lang.Object
net.minecraft.server.commands.SpectateCommand
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138678_) private static intspectate(CommandSourceStack p_138684_, Entity p_138685_, ServerPlayer p_138686_) 
- 
Field Details- 
ERROR_SELFprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SELF
- 
ERROR_NOT_SPECTATORprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOT_SPECTATOR
 
- 
- 
Constructor Details- 
SpectateCommandpublic SpectateCommand()
 
- 
- 
Method Details- 
register
- 
spectateprivate 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
 
 
-