From 4af770de7faa9f6816d0cfd51858c5c5b77e758a Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Thu, 24 May 2018 08:12:44 +1000 Subject: + Added a new interface RunnableWithInfo.java. Allows passing through type V and an object, for extra manipulation during runnable events where required. $ Further improvements to the recipe generation system. Added safety catches in case a particular material is having issues, so as not to corrupt the whole map. $ Added extra maps for recipes that get added from auto-generation elsewhere. Cached maps should also register to be run upon creation. --- src/Java/gtPlusPlus/api/interfaces/RunnableWithInfo.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/Java/gtPlusPlus/api/interfaces/RunnableWithInfo.java (limited to 'src/Java/gtPlusPlus/api/interfaces') diff --git a/src/Java/gtPlusPlus/api/interfaces/RunnableWithInfo.java b/src/Java/gtPlusPlus/api/interfaces/RunnableWithInfo.java new file mode 100644 index 0000000000..4f4b9d7acd --- /dev/null +++ b/src/Java/gtPlusPlus/api/interfaces/RunnableWithInfo.java @@ -0,0 +1,12 @@ +package gtPlusPlus.api.interfaces; + +public interface RunnableWithInfo extends Runnable { + + public V getInfoData(); + + default public Class getInfoDataType() { + return getInfoData().getClass(); + } + + +} -- cgit