Update buildscript & apply automatic formatting rules

This commit is contained in:
Raven Szewczyk authored and Jason Mitchell committed 2022-06-27 10:23:18 -07:00
1 parent a7683b885d
commit f7a900e910
173 files changed
+4581 -5321

No files matched your search

@@ -3,18 +3,16 @@ package codechicken.nei.recipe;
import codechicken.nei.PositionedStack;
import codechicken.nei.api.IOverlayHandler;
import codechicken.nei.api.IRecipeOverlayRenderer;
import java.util.List;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.inventory.Container;
import net.minecraft.item.ItemStack;
import org.lwjgl.input.Keyboard;
import java.util.List;
/**
* Do not implement this. Implement one of it's subinterfaces, either {@link ICraftingHandler} or {@link IUsageHandler}
*/
public interface IRecipeHandler
{
public interface IRecipeHandler {
/**
* For legacy compatibility reasons, this method's default implementation returns the class name.
*
@@ -25,8 +23,8 @@ public interface IRecipeHandler
}
/**
*
* @return The name of this inventory.
*
* @return The name of this inventory.
* To be displayed at the top of the viewing container.
*/
String getRecipeName();
@@ -42,7 +40,7 @@ public interface IRecipeHandler
}
/**
*
*
* @return The number of recipes that this handler contains.
*/
int numRecipes();
@@ -57,19 +55,19 @@ public interface IRecipeHandler
*/
void drawForeground(int recipe);
/**
*
*
* @param recipe The recipe index to get items for.
* @return A list of the ingredient {@link PositionedStack}s in this recipe relative to the top left corner of your recipe drawing space.
*/
List<PositionedStack> getIngredientStacks(int recipe);
/**
*
*
* @param recipetype The recipe index to get items for.
* @return A list of the other {@link PositionedStack}s in this recipe relative to the top left corner of your recipe drawing space. For example fuel in furnaces.
*/
List<PositionedStack> getOtherStacks(int recipetype);
/**
*
*
* @param recipe The recipe index to get the result for.
* @return The recipe result {@link PositionedStack} relative to the top left corner of your recipe drawing space.
*/
@@ -79,7 +77,7 @@ public interface IRecipeHandler
*/
void onUpdate();
/**
*
*
* @param recipe The recipe index to check for.
* @param gui The GUI to overlay.
* @param container The container of the GUI.
@@ -87,13 +85,13 @@ public interface IRecipeHandler
*/
boolean hasOverlay(GuiContainer gui, Container container, int recipe);
/**
*
*
* @param recipe The recipe index to get the overlay renderer for.
* @return An instance of {@link IRecipeOverlayRenderer} to be used for rendering the overlay of this specific recipe.
*/
IRecipeOverlayRenderer getOverlayRenderer(GuiContainer gui, int recipe);
/**
*
*
* @param recipe The recipe index to get the overlay renderer for.
* @return An instance of {@link IOverlayHandler} to be used for rendering the overlay of this specific recipe.
*/
@@ -108,12 +106,12 @@ public interface IRecipeHandler
return null;
}
/**
*
*
* @return The number of recipes that can fit on a page in the viewer (1 or 2)
*/
int recipiesPerPage();
/**
*
*
* @param gui An instance of the currentscreen
* @param currenttip The current tooltip, will contain item name and info
* @param recipe The recipe index being handled
@@ -121,7 +119,7 @@ public interface IRecipeHandler
*/
List<String> handleTooltip(GuiRecipe gui, List<String> currenttip, int recipe);
/**
*
*
* @param gui An instance of the currentscreen
* @param stack The itemstack currently under the mouse
* @param currenttip The current tooltip, will contain item name and info
@@ -129,9 +127,9 @@ public interface IRecipeHandler
* @return The modified tooltip. DO NOT return null
*/
List<String> handleItemTooltip(GuiRecipe gui, ItemStack stack, List<String> currenttip, int recipe);
/**
*
*
* @param gui An instance of the currentscreen
* @param keyChar The character representing the keyPress
* @param keyCode The KeyCode as defined in {@link Keyboard}
@@ -140,7 +138,7 @@ public interface IRecipeHandler
boolean keyTyped(GuiRecipe gui, char keyChar, int keyCode, int recipe);
/**
*
*
* @param gui An instance of the currentscreen
* @param button The button index being pressed, {0 = Left Click, 1 = Right Click, 2 = Middle Click}
* @return true to terminate further processing of this event.