Class CraftingRecipeAppendix
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix<CraftingRecipeAppendixClient>
org.cyclops.cyclopscore.infobook.pageelement.RecipeAppendix<CraftingRecipeAppendixClient>
org.cyclops.cyclopscore.infobook.pageelement.CraftingRecipeAppendix
Shaped recipes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AdvancedButtonEnum[]static final AdvancedButtonEnumstatic final intstatic final intstatic final intFields inherited from class RecipeAppendix
recipeDisplaySupplier, renderItemHolders, SLOT_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCraftingRecipeAppendix(IInfoBook infoBook, Supplier<net.minecraft.world.item.crafting.display.RecipeDisplayEntry> recipeDisplay) -
Method Summary
Modifier and TypeMethodDescriptionvoidbakeElement(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected intprotected Stringprotected intgetWidth()Methods inherited from class RecipeAppendix
getAdditionalHeight, getHeight, getOffsetY, getRecipeDisplay, getRenderItemHolders, preBakeElementMethods inherited from class SectionAppendix
canEqual, equals, getFullHeight, getInfoBook, getLineStart, getPage, getSectionAppendixClient, hashCode, setLineStart, setPage, toString
-
Field Details
-
SLOT_OFFSET_X
public static final int SLOT_OFFSET_X- See Also:
-
SLOT_OFFSET_Y
public static final int SLOT_OFFSET_Y- See Also:
-
START_X_RESULT
public static final int START_X_RESULT- See Also:
-
INPUT
-
RESULT
-
-
Constructor Details
-
CraftingRecipeAppendix
public CraftingRecipeAppendix(IInfoBook infoBook, Supplier<net.minecraft.world.item.crafting.display.RecipeDisplayEntry> recipeDisplay) throws InfoBookParser.InvalidAppendixException
-
-
Method Details
-
getWidth
protected int getWidth()- Specified by:
getWidthin classSectionAppendix<CraftingRecipeAppendixClient>
-
constructSectionAppendixClient
- Specified by:
constructSectionAppendixClientin classSectionAppendix<CraftingRecipeAppendixClient>
-
getHeightInner
protected int getHeightInner()- Specified by:
getHeightInnerin classRecipeAppendix<CraftingRecipeAppendixClient>
-
getUnlocalizedTitle
- Specified by:
getUnlocalizedTitlein classRecipeAppendix<CraftingRecipeAppendixClient>
-
bakeElement
Description copied from class:SectionAppendixBake this appendix, only called once before changing pages.- Overrides:
bakeElementin classRecipeAppendix<CraftingRecipeAppendixClient>- Parameters:
infoSection- The section this appendix is part of.w
-