public class BrewingRecipeHandler extends TemplateRecipeHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
BrewingRecipeHandler.BrewingRecipe |
class |
BrewingRecipeHandler.CachedBrewingRecipe |
TemplateRecipeHandler.CachedRecipe, TemplateRecipeHandler.RecipeTransferRect, TemplateRecipeHandler.RecipeTransferRectHandler| Modifier and Type | Field and Description |
|---|---|
static java.util.HashSet<BrewingRecipeHandler.BrewingRecipe> |
apotions |
static ItemStackSet |
ingredients |
arecipes, cycleticks, transferRects| Constructor and Description |
|---|
BrewingRecipeHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawExtras(int recipe)
Extension point for drawing progress bars and other overlays
|
java.lang.Class<? extends net.minecraft.client.gui.inventory.GuiContainer> |
getGuiClass() |
java.lang.String |
getGuiTexture() |
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. |
java.lang.String |
getRecipeName() |
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
|
static void |
searchPotions() |
drawBackground, drawForeground, drawProgressBar, drawProgressBar, getIngredientStacks, getOtherStacks, getOverlayHandler, getOverlayRenderer, getRecipeHandler, getRecipeTransferRectGuis, getResultStack, getUsageHandler, handleItemTooltip, handleTooltip, hasOverlay, keyTyped, loadUsageRecipes, mouseClicked, newInstance, numRecipes, onUpdate, recipiesPerPagepublic static final ItemStackSet ingredients
public static final java.util.HashSet<BrewingRecipeHandler.BrewingRecipe> apotions
public 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 java.lang.String getGuiTexture()
getGuiTexture in class TemplateRecipeHandlerpublic void drawExtras(int recipe)
TemplateRecipeHandlerdrawExtras in class TemplateRecipeHandlerrecipe - The recipeIndex being drawnpublic static void searchPotions()
public 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 TemplateRecipeHandler