Class RecipeAppendix<C extends RecipeAppendixClient<?>>
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix<C>
org.cyclops.cyclopscore.infobook.pageelement.RecipeAppendix<C>
- Direct Known Subclasses:
CraftingRecipeAppendix,FurnaceRecipeAppendix
Recipes that can be added to sections.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Supplier<net.minecraft.world.item.crafting.display.RecipeDisplayEntry> protected Map<AdvancedButtonEnum, AdvancedButton> This map holds advanced buttons that have a unique identifier.protected static final int -
Constructor Summary
ConstructorsConstructorDescriptionRecipeAppendix(IInfoBook infoBook, Supplier<net.minecraft.world.item.crafting.display.RecipeDisplayEntry> recipeDisplaySupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidbakeElement(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected intprotected intprotected abstract intprotected intnet.minecraft.world.item.crafting.display.RecipeDisplayEntryprotected abstract StringvoidpreBakeElement(InfoSection infoSection) Methods inherited from class org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
canEqual, constructSectionAppendixClient, equals, getFullHeight, getInfoBook, getLineStart, getPage, getSectionAppendixClient, getWidth, hashCode, setLineStart, setPage, toString
-
Field Details
-
SLOT_SIZE
protected static final int SLOT_SIZE- See Also:
-
recipeDisplaySupplier
protected Supplier<net.minecraft.world.item.crafting.display.RecipeDisplayEntry> recipeDisplaySupplier -
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, Supplier<net.minecraft.world.item.crafting.display.RecipeDisplayEntry> recipeDisplaySupplier) throws InfoBookParser.InvalidAppendixException
-
-
Method Details
-
getRecipeDisplay
@Nullable public net.minecraft.world.item.crafting.display.RecipeDisplayEntry getRecipeDisplay() -
getRenderItemHolders
-
getHeight
protected int getHeight()- Specified by:
getHeightin classSectionAppendix<C extends RecipeAppendixClient<?>>
-
getHeightInner
protected abstract int getHeightInner() -
getAdditionalHeight
protected int getAdditionalHeight() -
getOffsetY
protected int getOffsetY()- Specified by:
getOffsetYin classSectionAppendix<C extends RecipeAppendixClient<?>>
-
getUnlocalizedTitle
-
preBakeElement
- Specified by:
preBakeElementin classSectionAppendix<C extends RecipeAppendixClient<?>>
-
bakeElement
Description copied from class:SectionAppendixBake this appendix, only called once before changing pages.- Specified by:
bakeElementin classSectionAppendix<C extends RecipeAppendixClient<?>>- Parameters:
infoSection- The section this appendix is part of.w
-