Class SwingCommand
java.lang.Object
net.minecraft.server.commands.SwingCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static intswing(CommandSourceStack source, Collection<? extends Entity> targets, InteractionHand hand)
-
Field Details
-
ERROR_NO_LIVING_ENTITY
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_LIVING_ENTITY
-
-
Constructor Details
-
SwingCommand
public SwingCommand()
-
-
Method Details
-
register
-
swing
private static int swing(CommandSourceStack source, Collection<? extends Entity> targets, InteractionHand hand) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-