Class DamageCommand

java.lang.Object
io.github.xrickastley.sevenelements.command.DamageCommand

public class DamageCommand extends Object
  • Field Details

    • INVULNERABLE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVULNERABLE_EXCEPTION
  • Constructor Details

    • DamageCommand

      public DamageCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess)
    • execute

      private static int execute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Entity target, float amount, DamageSource damageSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException