From 357388d49c306a288f2c56cb6f25589237f7284e Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 12 May 2019 01:32:04 +0800 Subject: Small documentations --- .../java/me/shedaniel/rei/api/REIPluginEntry.java | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'src/main/java/me/shedaniel/rei/api/REIPluginEntry.java') diff --git a/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java b/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java index 786e129a0..8e3063f14 100644 --- a/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java +++ b/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java @@ -2,27 +2,76 @@ 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(); } -- cgit From 7e1e39d8453b0a5b5c7c1045fc5e6bb428b840d8 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 12 May 2019 01:34:33 +0800 Subject: License Heading --- src/main/java/me/shedaniel/rei/api/REIPluginEntry.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/me/shedaniel/rei/api/REIPluginEntry.java') diff --git a/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java b/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java index 8e3063f14..615c53fd9 100644 --- a/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java +++ b/src/main/java/me/shedaniel/rei/api/REIPluginEntry.java @@ -1,3 +1,8 @@ +/* + * Roughly Enough Items by Danielshe. + * Licensed under the MIT License. + */ + package me.shedaniel.rei.api; import net.minecraft.util.Identifier; -- cgit