Class SwingCommand

java.lang.Object
net.minecraft.server.commands.SwingCommand

public class SwingCommand extends Object
  • 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

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
    • 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