Class RecipeAppendix<T extends net.minecraft.world.item.crafting.Recipe<?>>
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 net.minecraft.world.item.crafting.Recipe<?>>
extends SectionAppendix
Recipes that can be added to sections.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.world.item.crafting.RecipeHolder<? extends T> protected Map<AdvancedButtonEnum, AdvancedButton> This map holds advanced buttons that have a unique identifier.protected static final intprotected static final int -
Constructor Summary
ConstructorsConstructorDescriptionRecipeAppendix(IInfoBook infoBook, net.minecraft.world.item.crafting.RecipeHolder<? extends T> recipe) -
Method Summary
Modifier and TypeMethodDescriptionvoidbakeElement(InfoSection infoSection) Bake this appendix, only called once before changing pages.final voiddrawElement(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) protected abstract voiddrawElementInner(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) protected intprotected intprotected abstract intprotected intprotected intgetTick(ScreenInfoBook gui) protected abstract Stringprotected voidpostDrawElement(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) voidpreBakeElement(InfoSection infoSection) protected net.minecraft.world.item.ItemStackprepareItemStack(net.minecraft.world.item.ItemStack itemStack, int tick) protected net.minecraft.world.item.ItemStackprepareItemStacks(List<net.minecraft.world.item.ItemStack> itemStacks, int tick) protected net.minecraft.world.item.ItemStackprepareItemStacks(net.minecraft.world.item.ItemStack[] itemStacks, int tick) protected voidrenderFluid(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.neoforged.neoforge.fluids.FluidStack fluidStack, int mx, int my, boolean renderOverlays, AdvancedButtonEnum buttonEnum) protected voidrenderFluid(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.neoforged.neoforge.fluids.FluidStack fluidStack, int mx, int my, AdvancedButtonEnum buttonEnum) static voidrenderFluidForButton(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.neoforged.neoforge.fluids.FluidStack fluidStack, int mx, int my, boolean renderOverlays, RecipeAppendix.FluidButton button) static voidrenderFluidTooltip(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.neoforged.neoforge.fluids.FluidStack fluidStack, int mx, int my) protected voidrenderItem(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 voidrenderItem(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 voidrenderItem(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 voidrenderItem(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 voidrenderItemForButton(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 voidrenderItemForButton(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 voidrenderItemTooltip(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack itemStack, int mx, int my) protected voidrenderToolTips(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
protected net.minecraft.world.item.crafting.RecipeHolder<? extends T extends net.minecraft.world.item.crafting.Recipe<?>> 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.neoforged.neoforge.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.neoforged.neoforge.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.neoforged.neoforge.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.neoforged.neoforge.fluids.FluidStack fluidStack, int mx, int my) -
getHeight
protected int getHeight()- Specified by:
getHeightin classSectionAppendix
-
getHeightInner
protected abstract int getHeightInner() -
getAdditionalHeight
protected int getAdditionalHeight() -
getOffsetY
protected int getOffsetY()- Specified by:
getOffsetYin 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:
drawElementin 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:
postDrawElementin 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:
preBakeElementin classSectionAppendix
-
bakeElement
Description copied from class:SectionAppendixBake this appendix, only called once before changing pages.- Specified by:
bakeElementin classSectionAppendix- Parameters:
infoSection- The section this appendix is part of.w
-