Class RecipeAppendix<T>

java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
org.cyclops.cyclopscore.infobook.pageelement.RecipeAppendix<T>
Direct Known Subclasses:
CraftingRecipeAppendix, FurnaceRecipeAppendix

public abstract class RecipeAppendix<T> extends SectionAppendix
Recipes that can be added to sections.
  • Field Details

    • SLOT_SIZE

      protected static final int SLOT_SIZE
      See Also:
    • TICK_DELAY

      protected static final int TICK_DELAY
      See Also:
    • recipe

      protected T recipe
    • renderItemHolders

      protected Map<AdvancedButtonEnum,AdvancedButton> renderItemHolders
      This map holds advanced buttons that have a unique identifier. The map has to be populated in the baking of this appendix. The map values can be updated on each render tick.
  • Constructor Details

    • RecipeAppendix

      public RecipeAppendix(IInfoBook infoBook, T recipe)
  • Method Details

    • getTick

      protected int getTick(ScreenInfoBook gui)
    • prepareItemStacks

      protected net.minecraft.world.item.ItemStack prepareItemStacks(net.minecraft.world.item.ItemStack[] itemStacks, int tick)
    • prepareItemStacks

      protected net.minecraft.world.item.ItemStack prepareItemStacks(List<net.minecraft.world.item.ItemStack> itemStacks, int tick)
    • prepareItemStack

      protected net.minecraft.world.item.ItemStack prepareItemStack(net.minecraft.world.item.ItemStack itemStack, int tick)
    • renderItem

      protected void renderItem(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack itemStack, int mx, int my, AdvancedButtonEnum buttonEnum)
    • renderItem

      protected void renderItem(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack itemStack, int mx, int my, boolean renderOverlays, AdvancedButtonEnum buttonEnum)
    • renderItem

      protected void renderItem(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack itemStack, int mx, int my, AdvancedButtonEnum buttonEnum, float chance)
    • renderItem

      protected void renderItem(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack itemStack, int mx, int my, boolean renderOverlays, AdvancedButtonEnum buttonEnum, float chance)
    • renderItemForButton

      public static void renderItemForButton(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack itemStack, int mx, int my, boolean renderOverlays, RecipeAppendix.ItemButton button)
    • renderItemForButton

      public static void renderItemForButton(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack itemStack, int mx, int my, boolean renderOverlays, RecipeAppendix.ItemButton button, float chance)
    • renderFluid

      protected void renderFluid(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraftforge.fluids.FluidStack fluidStack, int mx, int my, AdvancedButtonEnum buttonEnum)
    • renderFluid

      protected void renderFluid(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraftforge.fluids.FluidStack fluidStack, int mx, int my, boolean renderOverlays, AdvancedButtonEnum buttonEnum)
    • renderFluidForButton

      public static void renderFluidForButton(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraftforge.fluids.FluidStack fluidStack, int mx, int my, boolean renderOverlays, RecipeAppendix.FluidButton button)
    • renderItemTooltip

      public static void renderItemTooltip(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack itemStack, int mx, int my)
    • renderFluidTooltip

      public static void renderFluidTooltip(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraftforge.fluids.FluidStack fluidStack, int mx, int my)
    • getHeight

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

      protected abstract int getHeightInner()
    • getAdditionalHeight

      protected int getAdditionalHeight()
    • getOffsetY

      protected int getOffsetY()
      Specified by:
      getOffsetY in class SectionAppendix
    • getUnlocalizedTitle

      protected abstract String getUnlocalizedTitle()
    • drawElement

      public final void drawElement(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my)
      Specified by:
      drawElement in class SectionAppendix
    • postDrawElement

      protected void postDrawElement(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my)
      Specified by:
      postDrawElement in class SectionAppendix
    • drawElementInner

      protected abstract void drawElementInner(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my)
    • renderToolTips

      protected void renderToolTips(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, int mx, int my)
    • preBakeElement

      public void preBakeElement(InfoSection infoSection)
      Specified by:
      preBakeElement in class SectionAppendix
    • bakeElement

      public void bakeElement(InfoSection infoSection)
      Description copied from class: SectionAppendix
      Bake this appendix, only called once before changing pages.
      Specified by:
      bakeElement in class SectionAppendix
      Parameters:
      infoSection - The section this appendix is part of.w