public abstract class RecipeAppendix<T> extends SectionAppendix
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RecipeAppendix.ItemButton |
| Modifier and Type | Field and Description |
|---|---|
protected T |
recipe |
protected java.util.Map<AdvancedButton.Enum,RecipeAppendix.ItemButton> |
renderItemHolders
This map holds advanced buttons that have a unique identifier.
|
protected static int |
SLOT_SIZE |
protected static int |
TICK_DELAY |
| Constructor and Description |
|---|
RecipeAppendix(T recipe) |
| Modifier and Type | Method and Description |
|---|---|
void |
bakeElement(InfoSection infoSection)
Bake this appendix, only called once before changing pages.
|
void |
drawElement(GuiOriginsOfDarkness gui,
int x,
int y,
int width,
int height,
int page,
int mx,
int my) |
protected abstract void |
drawElementInner(GuiOriginsOfDarkness gui,
int x,
int y,
int width,
int height,
int page,
int mx,
int my) |
protected int |
getAdditionalHeight() |
protected int |
getHeight() |
protected abstract int |
getHeightInner() |
protected int |
getOffsetY() |
protected int |
getTick(GuiOriginsOfDarkness gui) |
protected abstract java.lang.String |
getUnlocalizedTitle() |
protected void |
postDrawElement(GuiOriginsOfDarkness gui,
int x,
int y,
int width,
int height,
int page,
int mx,
int my) |
void |
preBakeElement(InfoSection infoSection) |
protected net.minecraft.item.ItemStack |
prepareItemStack(net.minecraft.item.ItemStack itemStack,
int tick) |
protected net.minecraft.item.ItemStack |
prepareItemStacks(java.util.List<net.minecraft.item.ItemStack> itemStacks,
int tick) |
protected void |
renderIcon(GuiOriginsOfDarkness gui,
int x,
int y,
net.minecraft.util.IIcon icon) |
protected void |
renderItem(GuiOriginsOfDarkness gui,
int x,
int y,
net.minecraft.item.ItemStack itemStack,
int mx,
int my,
AdvancedButton.Enum buttonEnum) |
protected void |
renderItem(GuiOriginsOfDarkness gui,
int x,
int y,
net.minecraft.item.ItemStack itemStack,
int mx,
int my,
boolean renderOverlays,
AdvancedButton.Enum buttonEnum) |
protected void |
renderItemTooltip(GuiOriginsOfDarkness gui,
int x,
int y,
net.minecraft.item.ItemStack itemStack,
int mx,
int my) |
protected void |
renderToolTips(GuiOriginsOfDarkness gui,
int mx,
int my) |
drawScreen, getFullHeight, getWidthprotected static final int SLOT_SIZE
protected static final int TICK_DELAY
protected T recipe
protected java.util.Map<AdvancedButton.Enum,RecipeAppendix.ItemButton> renderItemHolders
public RecipeAppendix(T recipe)
protected int getTick(GuiOriginsOfDarkness gui)
protected net.minecraft.item.ItemStack prepareItemStacks(java.util.List<net.minecraft.item.ItemStack> itemStacks,
int tick)
protected net.minecraft.item.ItemStack prepareItemStack(net.minecraft.item.ItemStack itemStack,
int tick)
protected void renderItem(GuiOriginsOfDarkness gui, int x, int y, net.minecraft.item.ItemStack itemStack, int mx, int my, AdvancedButton.Enum buttonEnum)
protected void renderItem(GuiOriginsOfDarkness gui, int x, int y, net.minecraft.item.ItemStack itemStack, int mx, int my, boolean renderOverlays, AdvancedButton.Enum buttonEnum)
protected void renderIcon(GuiOriginsOfDarkness gui, int x, int y, net.minecraft.util.IIcon icon)
protected void renderItemTooltip(GuiOriginsOfDarkness gui, int x, int y, net.minecraft.item.ItemStack itemStack, int mx, int my)
protected int getHeight()
getHeight in class SectionAppendixprotected abstract int getHeightInner()
protected int getAdditionalHeight()
protected int getOffsetY()
getOffsetY in class SectionAppendixprotected abstract java.lang.String getUnlocalizedTitle()
public final void drawElement(GuiOriginsOfDarkness gui, int x, int y, int width, int height, int page, int mx, int my)
drawElement in class SectionAppendixprotected void postDrawElement(GuiOriginsOfDarkness gui, int x, int y, int width, int height, int page, int mx, int my)
postDrawElement in class SectionAppendixprotected abstract void drawElementInner(GuiOriginsOfDarkness gui, int x, int y, int width, int height, int page, int mx, int my)
protected void renderToolTips(GuiOriginsOfDarkness gui, int mx, int my)
public void preBakeElement(InfoSection infoSection)
preBakeElement in class SectionAppendixpublic void bakeElement(InfoSection infoSection)
SectionAppendixbakeElement in class SectionAppendixinfoSection - The section this appendix is part of.