NPCAttackCommand.SetAttackCommand
Package: com.hypixel.hytale.server.npc.commands
public static class NPCAttackCommand.SetAttackCommand extends NPCWorldCommandBaseInner class of NPCAttackCommand. Sets attack override interactions on the target NPC’s CombatSupport. Clears existing overrides before adding the new interaction IDs.
Arguments
Section titled “Arguments”| Argument | Type | Required | Description |
|---|---|---|---|
attack | List<Interaction> | no | List of interaction assets to set as attack overrides |
Constructor
Section titled “Constructor”public SetAttackCommand()Registers with empty name (default sub-command) and translation key "server.commands.npc.attack.desc".
Related Types
Section titled “Related Types”- NPCAttackCommand — parent command collection
- NPCAttackCommand.ClearAttackCommand — clears attack overrides
- NPCWorldCommandBase — base class
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.