Package net.minecraft.command.impl
Class SpectateCommand
java.lang.Object
net.minecraft.command.impl.SpectateCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(com.mojang.brigadier.CommandDispatcher<CommandSource> p_229826_0_) private static intspectate(CommandSource p_229829_0_, Entity p_229829_1_, ServerPlayerEntity p_229829_2_)
-
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
-
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
-