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
recipeDisplaySupplier, renderItemHolders, SLOT_SIZE, TICK_DELAY
-
Constructor Summary
ConstructorsConstructorDescriptionCraftingRecipeAppendix
(IInfoBook infoBook, Supplier<net.minecraft.world.item.crafting.display.RecipeDisplayEntry> recipeDisplay) -
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.ItemStack
getItemStacks
(net.minecraft.world.item.crafting.display.RecipeDisplayEntry recipeDisplay, int index, net.minecraft.util.context.ContextMap contextMap, int tick) protected String
protected int
getWidth()
Methods inherited from class org.cyclops.cyclopscore.infobook.pageelement.RecipeAppendix
drawElement, getAdditionalHeight, getHeight, getOffsetY, getRecipeDisplay, 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
canEqual, drawScreen, equals, getFullHeight, getInfoBook, getLineStart, getPage, hashCode, setLineStart, setPage, toString
-
Constructor Details
-
CraftingRecipeAppendix
-
-
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.CraftingRecipe>
-
getUnlocalizedTitle
- Specified by:
getUnlocalizedTitle
in classRecipeAppendix<net.minecraft.world.item.crafting.CraftingRecipe>
-
bakeElement
Description copied from class:SectionAppendix
Bake this appendix, only called once before changing pages.- Overrides:
bakeElement
in 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:
drawElementInner
in classRecipeAppendix<net.minecraft.world.item.crafting.CraftingRecipe>
-
getItemStacks
protected net.minecraft.world.item.ItemStack getItemStacks(net.minecraft.world.item.crafting.display.RecipeDisplayEntry recipeDisplay, int index, net.minecraft.util.context.ContextMap contextMap, int tick)
-