Class RecipeAppendix<T>
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
org.cyclops.cyclopscore.infobook.pageelement.RecipeAppendix<T>
- Direct Known Subclasses:
CraftingRecipeAppendix
,FurnaceRecipeAppendix
Recipes that can be added to sections.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected T
protected Map<AdvancedButtonEnum,
AdvancedButton> This map holds advanced buttons that have a unique identifier.protected static final int
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bakeElement
(InfoSection infoSection) Bake this appendix, only called once before changing pages.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) 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) protected int
protected int
protected abstract int
protected int
protected int
getTick
(ScreenInfoBook gui) protected abstract String
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) void
preBakeElement
(InfoSection infoSection) protected net.minecraft.world.item.ItemStack
prepareItemStack
(net.minecraft.world.item.ItemStack itemStack, int tick) protected net.minecraft.world.item.ItemStack
prepareItemStacks
(List<net.minecraft.world.item.ItemStack> itemStacks, int tick) protected net.minecraft.world.item.ItemStack
prepareItemStacks
(net.minecraft.world.item.ItemStack[] itemStacks, int tick) 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) 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) 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) static void
renderFluidTooltip
(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraftforge.fluids.FluidStack fluidStack, int mx, int my) 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) 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) 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) 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) 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) 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) 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) protected void
renderToolTips
(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, int mx, int my) Methods inherited from class org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
drawScreen, getFullHeight, getWidth
-
Field Details
-
SLOT_SIZE
protected static final int SLOT_SIZE- See Also:
-
TICK_DELAY
protected static final int TICK_DELAY- See Also:
-
recipe
-
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
-
-
Method Details
-
getTick
-
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 classSectionAppendix
-
getHeightInner
protected abstract int getHeightInner() -
getAdditionalHeight
protected int getAdditionalHeight() -
getOffsetY
protected int getOffsetY()- Specified by:
getOffsetY
in classSectionAppendix
-
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 classSectionAppendix
-
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 classSectionAppendix
-
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
- Specified by:
preBakeElement
in classSectionAppendix
-
bakeElement
Description copied from class:SectionAppendix
Bake this appendix, only called once before changing pages.- Specified by:
bakeElement
in classSectionAppendix
- Parameters:
infoSection
- The section this appendix is part of.w
-