From 538c4393d1115614e4ea61cecfd9e19727dafdfc Mon Sep 17 00:00:00 2001 From: "Luis C.M" <42545778+c0508383@users.noreply.github.com> Date: Tue, 27 Dec 2022 16:46:59 -0600 Subject: [PATCH] IEntity & IWorld: -Added getStoredDataKeys() & getTempDataKeys() functions. --- java/noppes/npcs/api/IWorld.java | 4 ++++ java/noppes/npcs/api/entity/IEntity.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/java/noppes/npcs/api/IWorld.java b/java/noppes/npcs/api/IWorld.java index a225f4b..af5c23c 100644 --- a/java/noppes/npcs/api/IWorld.java +++ b/java/noppes/npcs/api/IWorld.java @@ -339,6 +339,8 @@ public interface IWorld { */ void clearTempData(); + String[] getTempDataKeys(); + /** * @param key The key of the data to be returned * @return Returns the stored data @@ -368,6 +370,8 @@ public interface IWorld { */ void clearStoredData(); + String[] getStoredDataKeys(); + /** * @param x Position x * @param y Position y diff --git a/java/noppes/npcs/api/entity/IEntity.java b/java/noppes/npcs/api/entity/IEntity.java index 9cfc09d..52c9963 100644 --- a/java/noppes/npcs/api/entity/IEntity.java +++ b/java/noppes/npcs/api/entity/IEntity.java @@ -175,6 +175,8 @@ public interface IEntity { */ void clearTempData(); + String[] getTempDataKeys(); + /** * @param key The key of the data to be returned * @return Returns the stored data @@ -204,6 +206,8 @@ public interface IEntity { */ void clearStoredData(); + String[] getStoredDataKeys(); + /** * @return The age of this entity in ticks */