Unknown 6 éve
szülő
commit
ebbbe9d74d

+ 4 - 6
src/main/java/me/shedaniel/rei/api/ClientHelper.java

@@ -81,22 +81,20 @@ public interface ClientHelper {
     /**
      * Gets the mod from an item
      *
-     * @param item
+     * @param item the item to find
      * @return the mod name
      */
     String getModFromItem(Item item);
     
     /**
      * Tries to delete the player's cursor item
-     *
-     * @return whether it failed
      */
     void sendDeletePacket();
     
     /**
      * Gets the formatted mod from an item
      *
-     * @param item
+     * @param item the item to find
      * @return the mod name with blue and italic formatting
      */
     String getFormattedModFromItem(Item item);
@@ -104,7 +102,7 @@ public interface ClientHelper {
     /**
      * Gets the formatted mod from an identifier
      *
-     * @param identifier
+     * @param identifier the identifier to find
      * @return the mod name with blue and italic formatting
      */
     String getFormattedModFromIdentifier(Identifier identifier);
@@ -112,7 +110,7 @@ public interface ClientHelper {
     /**
      * Gets the mod from an identifier
      *
-     * @param identifier
+     * @param identifier the identifier to find
      * @return the mod name
      */
     String getModFromIdentifier(Identifier identifier);

+ 2 - 2
src/main/java/me/shedaniel/rei/api/ConfigManager.java

@@ -15,14 +15,14 @@ public interface ConfigManager {
     /**
      * Saves the config.
      *
-     * @throws IOException
+     * @throws IOException when error
      */
     void saveConfig() throws IOException;
     
     /**
      * Loads the config from the json file, creates the file if not found.
      *
-     * @throws IOException
+     * @throws IOException when error
      */
     void loadConfig() throws IOException;
     

+ 1 - 1
src/main/java/me/shedaniel/rei/api/DisplayHelper.java

@@ -63,7 +63,7 @@ public interface DisplayHelper {
         /**
          * Gets the base supported class for the bounds handler
          *
-         * @return
+         * @return the base class
          */
         Class getBaseSupportedClass();
         

+ 4 - 4
src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java

@@ -18,10 +18,10 @@ public interface DisplayVisibilityHandler {
     
     /**
      * Handles the visibility of the display.
-     * {@link DisplayVisibility.PASS} to pass the handling to another handler
-     * {@link DisplayVisibility.ALWAYS_VISIBLE} to always display it
-     * {@link DisplayVisibility.CONFIG_OPTIONAL} to allow user to configure the visibility
-     * {@link DisplayVisibility.NEVER_VISIBLE} to never display it
+     * {@link DisplayVisibility#PASS} to pass the handling to another handler
+     * {@link DisplayVisibility#ALWAYS_VISIBLE} to always display it
+     * {@link DisplayVisibility#CONFIG_OPTIONAL} to allow user to configure the visibility
+     * {@link DisplayVisibility#NEVER_VISIBLE} to never display it
      *
      * @param category the category of the display
      * @param display  the display of the recipe

+ 1 - 1
src/main/java/me/shedaniel/rei/api/ItemRegistry.java

@@ -32,7 +32,7 @@ public interface ItemRegistry {
     /**
      * Registers an new stack to the item list
      *
-     * @param afterItem
+     * @param afterItem the stack to put after
      * @param stack     the stack to register
      */
     void registerItemStack(Item afterItem, ItemStack stack);

+ 1 - 1
src/main/java/me/shedaniel/rei/api/REIPluginEntry.java

@@ -43,7 +43,7 @@ public interface REIPluginEntry {
     /**
      * Not called anymore!
      *
-     * @param recipeHelper
+     * @param recipeHelper the helper class
      * @see REIPluginEntry#registerOthers(RecipeHelper)
      */
     @Deprecated

+ 4 - 4
src/main/java/me/shedaniel/rei/api/RecipeCategory.java

@@ -117,9 +117,9 @@ public interface RecipeCategory<T extends RecipeDisplay> {
     
     /**
      * Gets the recipe display height
+     * Please do not override this, use {@link RecipeCategory#getDisplaySettings()} instead
      *
      * @return the recipe display height
-     * @apiNote Please do not override this, use {@link RecipeCategory#getDisplaySettings()} instead
      */
     default int getDisplayHeight() {
         return RecipeHelper.getInstance().getCachedCategorySettings(getIdentifier()).map(settings -> settings.getDisplayHeight(this)).orElse(0);
@@ -127,20 +127,20 @@ public interface RecipeCategory<T extends RecipeDisplay> {
     
     /**
      * Gets the recipe display width
+     * Please do not override this, use {@link RecipeCategory#getDisplaySettings()} instead
      *
      * @param display the recipe display
      * @return the recipe display width
-     * @apiNote Please do not override this, use {@link RecipeCategory#getDisplaySettings()} instead
      */
     default int getDisplayWidth(T display) {
         return RecipeHelper.getInstance().getCachedCategorySettings(getIdentifier()).map(settings -> settings.getDisplayWidth(this, display)).orElse(0);
     }
     
     /**
-     * Gets the maximum recipe per page
+     * Gets the maximum recipe per page.
+     * Please do not override this, use {@link RecipeCategory#getDisplaySettings()} instead
      *
      * @return the maximum amount of recipes for page
-     * @apiNote Please do not override this, use {@link RecipeCategory#getDisplaySettings()} instead
      */
     default int getMaximumRecipePerPage() {
         return RecipeHelper.getInstance().getCachedCategorySettings(getIdentifier()).map(settings -> settings.getMaximumRecipePerPage(this)).orElse(0);