Class DamageCommand

java.lang.Object
net.minecraft.server.command.DamageCommand

public class DamageCommand extends Object
Mappings:
Namespace Name
named net/minecraft/server/command/DamageCommand
intermediary net/minecraft/class_8102
official amu
  • Field Details

    • INVULNERABLE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVULNERABLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named INVULNERABLE_EXCEPTION Lnet/minecraft/server/command/DamageCommand;INVULNERABLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_42238 Lnet/minecraft/class_8102;field_42238:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      official a Lamu;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
  • Constructor Details

    • DamageCommand

      public DamageCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/server/command/DamageCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)V
      intermediary method_48748 Lnet/minecraft/class_8102;method_48748(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V
      official a Lamu;a(Lcom/mojang/brigadier/CommandDispatcher;Lel;)V
    • execute

      private static int execute(ServerCommandSource source, Entity target, float amount, DamageSource damageSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named execute Lnet/minecraft/server/command/DamageCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;FLnet/minecraft/entity/damage/DamageSource;)I
      intermediary method_48751 Lnet/minecraft/class_8102;method_48751(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;FLnet/minecraft/class_1282;)I
      official a Lamu;a(Lep;Lbsw;FLbrp;)I