From 51d086285ed004b4790869d5d35b493439ced7fd Mon Sep 17 00:00:00 2001 From: luisc Date: Sat, 23 Mar 2024 23:34:00 -0500 Subject: [PATCH] Removed "render ticks" tick type. Instead, animations and frames can define a tick speed measured in milliseconds. Animations/frames using MC tick type will be 50ms (1000ms/20), and render ticks 20ms. --- java/noppes/npcs/api/handler/data/IAnimation.java | 8 ++++---- java/noppes/npcs/api/handler/data/IFrame.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/java/noppes/npcs/api/handler/data/IAnimation.java b/java/noppes/npcs/api/handler/data/IAnimation.java index 4dcb8c6..f502937 100644 --- a/java/noppes/npcs/api/handler/data/IAnimation.java +++ b/java/noppes/npcs/api/handler/data/IAnimation.java @@ -20,6 +20,10 @@ public interface IAnimation { String getName(); + int tickDuration(); + + IAnimation setTickDuration(int tickDuration); + IAnimation setSpeed(float speed); float getSpeed(); @@ -28,10 +32,6 @@ public interface IAnimation { byte isSmooth(); - IAnimation useRenderTicks(boolean renderTicks); - - boolean useRenderTicks(); - IAnimation doWhileStanding(boolean whileStanding); boolean doWhileStanding(); diff --git a/java/noppes/npcs/api/handler/data/IFrame.java b/java/noppes/npcs/api/handler/data/IFrame.java index a315b05..269294e 100644 --- a/java/noppes/npcs/api/handler/data/IFrame.java +++ b/java/noppes/npcs/api/handler/data/IFrame.java @@ -16,6 +16,10 @@ public interface IFrame { IFrame setDuration(int duration); + int tickDuration(); + + IFrame setTickDuration(int tickDuration); + boolean isCustomized(); IFrame setCustomized(boolean customized); @@ -27,8 +31,4 @@ public interface IFrame { byte smoothType(); IFrame setSmooth(byte smooth); - - IFrame useRenderTicks(boolean renderTicks); - - boolean useRenderTicks(); }