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.
  • Constructor Details

    • CraftingRecipeAppendix

      public CraftingRecipeAppendix(IInfoBook infoBook, net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>> recipe)
  • Method Details

    • getWidth

      protected int getWidth()
      Specified by:
      getWidth in class SectionAppendix
    • getHeightInner

      protected int getHeightInner()
      Specified by:
      getHeightInner in class RecipeAppendix<net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>>
    • getUnlocalizedTitle

      protected String getUnlocalizedTitle()
      Specified by:
      getUnlocalizedTitle in class RecipeAppendix<net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>>
    • bakeElement

      public void bakeElement(InfoSection infoSection)
      Description copied from class: SectionAppendix
      Bake this appendix, only called once before changing pages.
      Overrides:
      bakeElement in class RecipeAppendix<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 class RecipeAppendix<net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>>
    • getItemStacks

      protected net.minecraft.world.item.crafting.Ingredient getItemStacks(int index)