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 TypeMethodDescriptionvoid
bakeElement
(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected int
protected int
protected abstract int
protected int
net.minecraft.world.item.crafting.display.RecipeDisplayEntry
protected abstract String
void
preBakeElement
(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:
getHeight
in classSectionAppendix<C extends RecipeAppendixClient<?>>
-
getHeightInner
protected abstract int getHeightInner() -
getAdditionalHeight
protected int getAdditionalHeight() -
getOffsetY
protected int getOffsetY()- Specified by:
getOffsetY
in classSectionAppendix<C extends RecipeAppendixClient<?>>
-
getUnlocalizedTitle
-
preBakeElement
- Specified by:
preBakeElement
in classSectionAppendix<C extends RecipeAppendixClient<?>>
-
bakeElement
Description copied from class:SectionAppendix
Bake this appendix, only called once before changing pages.- Specified by:
bakeElement
in classSectionAppendix<C extends RecipeAppendixClient<?>>
- Parameters:
infoSection
- The section this appendix is part of.w
-