From a2ad9c0d38229449229575417bfc1109e3e42785 Mon Sep 17 00:00:00 2001 From: Kam Date: Mon, 23 Sep 2024 13:57:04 -0400 Subject: [PATCH] Revert "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." This reverts commit 51d086285ed004b4790869d5d35b493439ced7fd. --- 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 f502937..4dcb8c6 100644 --- a/java/noppes/npcs/api/handler/data/IAnimation.java +++ b/java/noppes/npcs/api/handler/data/IAnimation.java @@ -20,10 +20,6 @@ public interface IAnimation { String getName(); - int tickDuration(); - - IAnimation setTickDuration(int tickDuration); - IAnimation setSpeed(float speed); float getSpeed(); @@ -32,6 +28,10 @@ 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 269294e..a315b05 100644 --- a/java/noppes/npcs/api/handler/data/IFrame.java +++ b/java/noppes/npcs/api/handler/data/IFrame.java @@ -16,10 +16,6 @@ public interface IFrame { IFrame setDuration(int duration); - int tickDuration(); - - IFrame setTickDuration(int tickDuration); - boolean isCustomized(); IFrame setCustomized(boolean customized); @@ -31,4 +27,8 @@ public interface IFrame { byte smoothType(); IFrame setSmooth(byte smooth); + + IFrame useRenderTicks(boolean renderTicks); + + boolean useRenderTicks(); }