aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm/shsupercm/fabric/citresewn/api/CITDisposable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/api/CITDisposable.java')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/api/CITDisposable.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/api/CITDisposable.java b/src/main/java/shcm/shsupercm/fabric/citresewn/api/CITDisposable.java
index 240f197..dec7098 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/api/CITDisposable.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/api/CITDisposable.java
@@ -1,8 +1,18 @@
package shcm.shsupercm.fabric.citresewn.api;
+/**
+ * @see #dispose()
+ */
@FunctionalInterface
public interface CITDisposable {
+ /**
+ * Entrypoint for any disposing method that is not covered by CIT Resewn automatically.
+ * @see #dispose()
+ */
String ENTRYPOINT = "citresewn:dispose";
+ /**
+ * Invoked just before reloading CITs. Use to clean up and changes CIT loading made.
+ */
void dispose();
}