Class DamageCommand
java.lang.Object
io.github.xrickastley.sevenelements.command.DamageCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intexecute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Entity target, float amount, DamageSource damageSource) static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess)
-
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
-