From b3031b2f71cd8b0a128633747709db42902259f7 Mon Sep 17 00:00:00 2001 From: Kam Date: Wed, 19 Mar 2025 17:37:45 -0400 Subject: [PATCH] New AimType --- java/noppes/npcs/api/entity/ICustomNpc.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/java/noppes/npcs/api/entity/ICustomNpc.java b/java/noppes/npcs/api/entity/ICustomNpc.java index 40e2a12..9d51ff1 100644 --- a/java/noppes/npcs/api/entity/ICustomNpc.java +++ b/java/noppes/npcs/api/entity/ICustomNpc.java @@ -473,6 +473,7 @@ public interface ICustomNpc extends IEntityLiving, * * @return true if aiming while shooting is enabled, false otherwise. */ + @Deprecated boolean canAimWhileShooting(); /** @@ -480,8 +481,23 @@ public interface ICustomNpc extends IEntityLiving, * * @param aimWhileShooting true to enable aiming, false to disable. */ + @Deprecated void aimWhileShooting(boolean aimWhileShooting); + /** + * Sets the Aim Type for an NPC + * + * @param aimWhileShooting 0: No, 1: Yes, 2: On Shot + */ + void setAimType(byte aimWhileShooting); + + /** + * Gets the Aim Type for an NPC + * + * @return 0: No, 1: Yes, 2: On Shot + */ + byte getAimType(); + /** * Sets the minimum delay (in ticks) between projectiles. *