public class ShapelessRecipeHandler extends ShapedRecipeHandler
| Modifier and Type | Class and Description |
|---|---|
class |
ShapelessRecipeHandler.CachedShapelessRecipe |
ShapedRecipeHandler.CachedShapedRecipeTemplateRecipeHandler.CachedRecipe, TemplateRecipeHandler.RecipeTransferRect, TemplateRecipeHandler.RecipeTransferRectHandler| Modifier and Type | Field and Description |
|---|---|
int[][] |
stackorder |
arecipes, cycleticks, transferRects| Constructor and Description |
|---|
ShapelessRecipeHandler() |
| Modifier and Type | Method and Description |
|---|---|
ShapelessRecipeHandler.CachedShapelessRecipe |
forgeShapelessRecipe(ShapelessOreRecipe recipe) |
java.lang.String |
getRecipeName() |
boolean |
isRecipe2x2(int recipe) |
void |
loadCraftingRecipes(ItemStack result)
Simplified wrapper, implement this and fill the empty recipe array with recipes
|
void |
loadCraftingRecipes(java.lang.String outputId,
java.lang.Object... results)
In this function you need to fill up the empty recipe array with recipes.
|
void |
loadUsageRecipes(ItemStack ingredient)
Simplified wrapper, implement this and fill the empty recipe array with recipes
|
forgeShapedRecipe, getGuiClass, getGuiTexture, getOverlayHandler, getOverlayIdentifier, getOverlayRenderer, hasOverlay, loadTransferRectsdrawBackground, drawExtras, drawForeground, drawProgressBar, drawProgressBar, getIngredientStacks, getOtherStacks, getRecipeHandler, getRecipeTransferRectGuis, getResultStack, getUsageHandler, handleItemTooltip, handleTooltip, keyTyped, loadUsageRecipes, mouseClicked, newInstance, numRecipes, onUpdate, recipiesPerPagepublic java.lang.String getRecipeName()
getRecipeName in interface IRecipeHandlergetRecipeName in class ShapedRecipeHandlerpublic void loadCraftingRecipes(java.lang.String outputId,
java.lang.Object... results)
TemplateRecipeHandlerloadCraftingRecipes in class ShapedRecipeHandleroutputId - A String identifier representing the type of output produced. Eg. {"item", "fuel"}results - Objects representing the results that matching recipes must produce.public void loadCraftingRecipes(ItemStack result)
TemplateRecipeHandlerloadCraftingRecipes in class ShapedRecipeHandlerresult - The result the recipes must output.public void loadUsageRecipes(ItemStack ingredient)
TemplateRecipeHandlerloadUsageRecipes in class ShapedRecipeHandleringredient - The ingredient the recipes must contain.public ShapelessRecipeHandler.CachedShapelessRecipe forgeShapelessRecipe(ShapelessOreRecipe recipe)
public boolean isRecipe2x2(int recipe)
isRecipe2x2 in class ShapedRecipeHandler