Class DamageCommand

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

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

    • INVULNERABLE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVULNERABLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Laec;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_42238 Lnet/minecraft/class_8102;field_42238:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named INVULNERABLE_EXCEPTION Lnet/minecraft/server/command/DamageCommand;INVULNERABLE_EXCEPTION: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
      official a Laec;a(Lcom/mojang/brigadier/CommandDispatcher;Ldm;)V
      intermediary method_48748 Lnet/minecraft/class_8102;method_48748(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V
      named register Lnet/minecraft/server/command/DamageCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)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
      official a Laec;a(Lds;Lbfj;FLben;)I
      intermediary method_48751 Lnet/minecraft/class_8102;method_48751(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;FLnet/minecraft/class_1282;)I
      named execute Lnet/minecraft/server/command/DamageCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;FLnet/minecraft/entity/damage/DamageSource;)I