aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java
diff options
context:
space:
mode:
authorDaniel She <shekwancheung0528@gmail.com>2019-05-12 10:55:21 +0800
committerDaniel She <shekwancheung0528@gmail.com>2019-05-12 10:55:21 +0800
commitf51e5af85e26f588cbe2eba2eef728e783201bc8 (patch)
treee490afcfe8974af8a6c65954667bf822505224d4 /src/main/java/me/shedaniel/rei/api/REIPluginEntry.java
parent64c240a5a5eb6b4312b86e24ddbaaa70ada49359 (diff)
parentb99108611ea89dc0eda6c433447ce398a98ad4ad (diff)
downloadRoughlyEnoughItems-f51e5af85e26f588cbe2eba2eef728e783201bc8.tar.gz
RoughlyEnoughItems-f51e5af85e26f588cbe2eba2eef728e783201bc8.tar.bz2
RoughlyEnoughItems-f51e5af85e26f588cbe2eba2eef728e783201bc8.zip
Merge branch '1.14-dev' into 1.14
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/REIPluginEntry.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/REIPluginEntry.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java b/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java
index 786e129a0..615c53fd9 100644
--- a/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java
+++ b/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java
@@ -1,28 +1,82 @@
+/*
+ * Roughly Enough Items by Danielshe.
+ * Licensed under the MIT License.
+ */
+
package me.shedaniel.rei.api;
import net.minecraft.util.Identifier;
+/**
+ * Get base class of a REI plugin.
+ */
public interface REIPluginEntry {
+ /**
+ * On register of the plugin
+ *
+ * @param pluginDisabler the helper class to disable other plugins
+ */
default void onFirstLoad(PluginDisabler pluginDisabler) {}
+ /**
+ * Registers items on the item panel
+ *
+ * @param itemRegistry the helper class
+ */
default void registerItems(ItemRegistry itemRegistry) {}
+ /**
+ * Registers categories
+ *
+ * @param recipeHelper the helper class
+ */
default void registerPluginCategories(RecipeHelper recipeHelper) {}
+ /**
+ * Registers displays for categories
+ *
+ * @param recipeHelper the helper class
+ */
default void registerRecipeDisplays(RecipeHelper recipeHelper) {}
+ /**
+ * Not called anymore!
+ *
+ * @param recipeHelper
+ * @see REIPluginEntry#registerOthers(RecipeHelper)
+ */
@Deprecated
default void registerSpeedCraft(RecipeHelper recipeHelper) {}
+ /**
+ * Registers bounds handlers
+ *
+ * @param displayHelper the helper class
+ */
default void registerBounds(DisplayHelper displayHelper) {}
+ /**
+ * Register other stuff
+ *
+ * @param recipeHelper the helper class
+ */
default void registerOthers(RecipeHelper recipeHelper) {}
+ /**
+ * Gets the priority of the plugin.
+ *
+ * @return the priority
+ */
default int getPriority() {
return 0;
}
+ /**
+ * Get the identifier of the plugin
+ *
+ * @return the identifier
+ */
Identifier getPluginIdentifier();
}