diff options
| author | Daniel She <shekwancheung0528@gmail.com> | 2019-05-12 10:55:21 +0800 |
|---|---|---|
| committer | Daniel She <shekwancheung0528@gmail.com> | 2019-05-12 10:55:21 +0800 |
| commit | f51e5af85e26f588cbe2eba2eef728e783201bc8 (patch) | |
| tree | e490afcfe8974af8a6c65954667bf822505224d4 /src/main/java/me/shedaniel/rei/api/REIPluginEntry.java | |
| parent | 64c240a5a5eb6b4312b86e24ddbaaa70ada49359 (diff) | |
| parent | b99108611ea89dc0eda6c433447ce398a98ad4ad (diff) | |
| download | RoughlyEnoughItems-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.java | 54 |
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(); } |
