Class SwingCommand
java.lang.Object
net.minecraft.server.commands.SwingCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final CommandResponseTracker.Messages<LivingEntity> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> handSwing(String name, InteractionHand hand) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static intswing(CommandSourceStack source, Collection<? extends Entity> targets, InteractionHand hand) private static intswing(CommandSourceStack source, Collection<? extends Entity> targets, InteractionHand hand, SwingAnimationType animationType, int duration)
-
Field Details
-
ERROR_NO_LIVING_ENTITY
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_LIVING_ENTITY -
RESPONSE_SWING
-
-
Constructor Details
-
SwingCommand
public SwingCommand()
-
-
Method Details
-
register
-
handSwing
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> handSwing(String name, InteractionHand hand) -
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
-
swing
private static int swing(CommandSourceStack source, Collection<? extends Entity> targets, InteractionHand hand, SwingAnimationType animationType, int duration) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-