Class CraftingRecipeAppendix
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
org.cyclops.cyclopscore.infobook.pageelement.RecipeAppendix<net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>>
org.cyclops.cyclopscore.infobook.pageelement.CraftingRecipeAppendix
public class CraftingRecipeAppendix
extends RecipeAppendix<net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>>
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
ConstructorDescriptionCraftingRecipeAppendix
(IInfoBook infoBook, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer> recipe) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bakeElement
(InfoSection infoSection) Bake this appendix, only called once before changing pages.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) protected int
protected net.minecraft.world.item.crafting.Ingredient
getItemStacks
(int index) protected String
protected int
getWidth()
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, renderToolTips
Methods inherited from class org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
drawScreen, getFullHeight
-
Constructor Details
-
CraftingRecipeAppendix
public CraftingRecipeAppendix(IInfoBook infoBook, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer> recipe)
-
-
Method Details
-
getWidth
protected int getWidth()- Specified by:
getWidth
in classSectionAppendix
-
getHeightInner
protected int getHeightInner()- Specified by:
getHeightInner
in classRecipeAppendix<net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>>
-
getUnlocalizedTitle
- Specified by:
getUnlocalizedTitle
in classRecipeAppendix<net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>>
-
bakeElement
Description copied from class:SectionAppendix
Bake this appendix, only called once before changing pages.- Overrides:
bakeElement
in classRecipeAppendix<net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>>
- 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:
drawElementInner
in classRecipeAppendix<net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>>
-
getItemStacks
protected net.minecraft.world.item.crafting.Ingredient getItemStacks(int index)
-