Package net.minecraft.server.commands
Class DamageCommand
java.lang.Object
net.minecraft.server.commands.DamageCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
damage
(CommandSourceStack p_270409_, Entity p_270496_, float p_270836_, DamageSource p_270727_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_270226_, CommandBuildContext p_270136_)
-
Field Details
-
ERROR_INVULNERABLE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVULNERABLE
-
-
Constructor Details
-
DamageCommand
public DamageCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_270226_, CommandBuildContext p_270136_) -
damage
private static int damage(CommandSourceStack p_270409_, Entity p_270496_, float p_270836_, DamageSource p_270727_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-