public class ShapedRecipeHandler extends TemplateRecipeHandler
| Modifier and Type | Class and Description |
|---|---|
class |
ShapedRecipeHandler.CachedShapedRecipe |
TemplateRecipeHandler.CachedRecipe, TemplateRecipeHandler.RecipeTransferRect, TemplateRecipeHandler.RecipeTransferRectHandlerarecipes, cycleticks, transferRects| Constructor and Description |
|---|
ShapedRecipeHandler() |
| Modifier and Type | Method and Description |
|---|---|
ShapedRecipeHandler.CachedShapedRecipe |
forgeShapedRecipe(ShapedOreRecipe recipe) |
java.lang.Class<? extends net.minecraft.client.gui.inventory.GuiContainer> |
getGuiClass() |
java.lang.String |
getGuiTexture() |
IOverlayHandler |
getOverlayHandler(net.minecraft.client.gui.inventory.GuiContainer gui,
int recipe) |
java.lang.String |
getOverlayIdentifier()
Simply works with the
DefaultOverlayRenderer
If the current container has been registered with this identifier, the question mark appears and an overlay guide can be drawn. |
IRecipeOverlayRenderer |
getOverlayRenderer(net.minecraft.client.gui.inventory.GuiContainer gui,
int recipe) |
java.lang.String |
getRecipeName() |
boolean |
hasOverlay(net.minecraft.client.gui.inventory.GuiContainer gui,
java.awt.Container container,
int recipe) |
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 |
loadTransferRects()
Add all RecipeTransferRects to the transferRects list during this call.
|
void |
loadUsageRecipes(ItemStack ingredient)
Simplified wrapper, implement this and fill the empty recipe array with recipes
|
drawBackground, drawExtras, drawForeground, drawProgressBar, drawProgressBar, getIngredientStacks, getOtherStacks, getRecipeHandler, getRecipeTransferRectGuis, getResultStack, getUsageHandler, handleItemTooltip, handleTooltip, keyTyped, loadUsageRecipes, mouseClicked, newInstance, numRecipes, onUpdate, recipiesPerPagepublic void loadTransferRects()
TemplateRecipeHandlerloadTransferRects in class TemplateRecipeHandlerpublic java.lang.Class<? extends net.minecraft.client.gui.inventory.GuiContainer> getGuiClass()
getGuiClass in class TemplateRecipeHandlerpublic java.lang.String getRecipeName()
public void loadCraftingRecipes(java.lang.String outputId,
java.lang.Object... results)
TemplateRecipeHandlerloadCraftingRecipes in class TemplateRecipeHandleroutputId - 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 TemplateRecipeHandlerresult - The result the recipes must output.public void loadUsageRecipes(ItemStack ingredient)
TemplateRecipeHandlerloadUsageRecipes in class TemplateRecipeHandleringredient - The ingredient the recipes must contain.public ShapedRecipeHandler.CachedShapedRecipe forgeShapedRecipe(ShapedOreRecipe recipe)
public java.lang.String getGuiTexture()
getGuiTexture in class TemplateRecipeHandlerpublic java.lang.String getOverlayIdentifier()
TemplateRecipeHandlerDefaultOverlayRenderer
If the current container has been registered with this identifier, the question mark appears and an overlay guide can be drawn.getOverlayIdentifier in class TemplateRecipeHandlerpublic boolean hasOverlay(net.minecraft.client.gui.inventory.GuiContainer gui,
java.awt.Container container,
int recipe)
hasOverlay in interface IRecipeHandlerhasOverlay in class TemplateRecipeHandlergui - The GUI to overlay.container - The container of the GUI.recipe - The recipe index to check for.public IRecipeOverlayRenderer getOverlayRenderer(net.minecraft.client.gui.inventory.GuiContainer gui, int recipe)
getOverlayRenderer in interface IRecipeHandlergetOverlayRenderer in class TemplateRecipeHandlerrecipe - The recipe index to get the overlay renderer for.IRecipeOverlayRenderer to be used for rendering the overlay of this specific recipe.public IOverlayHandler getOverlayHandler(net.minecraft.client.gui.inventory.GuiContainer gui, int recipe)
getOverlayHandler in interface IRecipeHandlergetOverlayHandler in class TemplateRecipeHandlerrecipe - The recipe index to get the overlay renderer for.IOverlayHandler to be used for rendering the overlay of this specific recipe.public boolean isRecipe2x2(int recipe)