Class CraftingRecipeAppendix
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
org.cyclops.cyclopscore.infobook.pageelement.RecipeAppendix<net.minecraft.world.item.crafting.CraftingRecipe>
org.cyclops.cyclopscore.infobook.pageelement.CraftingRecipeAppendix
public class CraftingRecipeAppendix
extends RecipeAppendix<net.minecraft.world.item.crafting.CraftingRecipe>
Shaped recipes.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.infobook.pageelement.RecipeAppendix
RecipeAppendix.ElementButton<E>, RecipeAppendix.FluidButton, RecipeAppendix.ItemButton -
Field Summary
Fields inherited from class org.cyclops.cyclopscore.infobook.pageelement.RecipeAppendix
recipe, renderItemHolders, SLOT_SIZE, TICK_DELAY -
Constructor Summary
ConstructorsConstructorDescriptionCraftingRecipeAppendix(IInfoBook infoBook, net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.CraftingRecipe> recipe) -
Method Summary
Modifier and TypeMethodDescriptionvoidbakeElement(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected voiddrawElementInner(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) protected intprotected net.minecraft.world.item.crafting.IngredientgetItemStacks(int index) protected Stringprotected intgetWidth()Methods inherited from class org.cyclops.cyclopscore.infobook.pageelement.RecipeAppendix
drawElement, getAdditionalHeight, getHeight, getOffsetY, getTick, postDrawElement, preBakeElement, prepareItemStack, prepareItemStacks, prepareItemStacks, renderFluid, renderFluid, renderFluidForButton, renderFluidTooltip, renderItem, renderItem, renderItem, renderItem, renderItemForButton, renderItemForButton, renderItemTooltip, renderToolTipsMethods inherited from class org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
drawScreen, getFullHeight
-
Constructor Details
-
CraftingRecipeAppendix
public CraftingRecipeAppendix(IInfoBook infoBook, net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.CraftingRecipe> recipe)
-
-
Method Details
-
getWidth
protected int getWidth()- Specified by:
getWidthin classSectionAppendix
-
getHeightInner
protected int getHeightInner()- Specified by:
getHeightInnerin classRecipeAppendix<net.minecraft.world.item.crafting.CraftingRecipe>
-
getUnlocalizedTitle
- Specified by:
getUnlocalizedTitlein classRecipeAppendix<net.minecraft.world.item.crafting.CraftingRecipe>
-
bakeElement
Description copied from class:SectionAppendixBake this appendix, only called once before changing pages.- Overrides:
bakeElementin classRecipeAppendix<net.minecraft.world.item.crafting.CraftingRecipe>- Parameters:
infoSection- The section this appendix is part of.w
-
drawElementInner
protected void drawElementInner(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) - Specified by:
drawElementInnerin classRecipeAppendix<net.minecraft.world.item.crafting.CraftingRecipe>
-
getItemStacks
protected net.minecraft.world.item.crafting.Ingredient getItemStacks(int index)
-