public class FireworkRecipeHandler extends ShapelessRecipeHandler
| Modifier and Type | Class and Description |
|---|---|
class |
FireworkRecipeHandler.CachedFireworkRecipe |
ShapelessRecipeHandler.CachedShapelessRecipeShapedRecipeHandler.CachedShapedRecipeTemplateRecipeHandler.CachedRecipe, TemplateRecipeHandler.RecipeTransferRect, TemplateRecipeHandler.RecipeTransferRectHandler| Modifier and Type | Field and Description |
|---|---|
java.util.ArrayList<FireworkRecipeHandler.CachedFireworkRecipe> |
mfireworks |
stackorderarecipes, cycleticks, transferRects| Constructor and Description |
|---|
FireworkRecipeHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRecipeName() |
java.util.List<java.lang.String> |
handleTooltip(GuiRecipe gui,
java.util.List<java.lang.String> currenttip,
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
|
void |
onUpdate()
A tick function called for updating progress bars and cycling damage items.
|
forgeShapelessRecipe, isRecipe2x2forgeShapedRecipe, getGuiClass, getGuiTexture, getOverlayHandler, getOverlayIdentifier, getOverlayRenderer, hasOverlay, loadTransferRectsdrawBackground, drawExtras, drawForeground, drawProgressBar, drawProgressBar, getIngredientStacks, getOtherStacks, getRecipeHandler, getRecipeTransferRectGuis, getResultStack, getUsageHandler, handleItemTooltip, keyTyped, loadUsageRecipes, mouseClicked, newInstance, numRecipes, recipiesPerPagepublic java.util.ArrayList<FireworkRecipeHandler.CachedFireworkRecipe> mfireworks
public void loadCraftingRecipes(ItemStack result)
TemplateRecipeHandlerloadCraftingRecipes in class ShapelessRecipeHandlerresult - The result the recipes must output.public void loadCraftingRecipes(java.lang.String outputId,
java.lang.Object... results)
TemplateRecipeHandlerloadCraftingRecipes in class ShapelessRecipeHandleroutputId - A String identifier representing the type of output produced. Eg. {"item", "fuel"}results - Objects representing the results that matching recipes must produce.public void loadUsageRecipes(ItemStack ingredient)
TemplateRecipeHandlerloadUsageRecipes in class ShapelessRecipeHandleringredient - The ingredient the recipes must contain.public void onUpdate()
IRecipeHandleronUpdate in interface IRecipeHandleronUpdate in class TemplateRecipeHandlerpublic java.lang.String getRecipeName()
getRecipeName in interface IRecipeHandlergetRecipeName in class ShapelessRecipeHandlerpublic java.util.List<java.lang.String> handleTooltip(GuiRecipe gui, java.util.List<java.lang.String> currenttip, int recipe)
handleTooltip in interface IRecipeHandlerhandleTooltip in class TemplateRecipeHandlergui - An instance of the currentscreencurrenttip - The current tooltip, will contain item name and inforecipe - The recipe index being handled