Class ConstructComponent
java.lang.Object
de.ellpeck.rockbottom.api.gui.component.GuiComponent
de.ellpeck.rockbottom.api.gui.component.construction.ConstructComponent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructComponent(Gui gui, ICompendiumRecipe recipe, boolean hasIngredients, Supplier<Boolean> onClick) ConstructComponent(Gui gui, ICompendiumRecipe recipe, List<ConstructionTool> missingTools, boolean hasIngredients, Supplier<Boolean> onClick) -
Method Summary
Modifier and TypeMethodDescriptiongetName()protected ItemInstancegetOutput(IGameInstance game) booleanonMouseAction(IGameInstance game, int button, float x, float y) voidrender(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y) voidrenderOverlay(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y) booleanMethods inherited from class de.ellpeck.rockbottom.api.gui.component.GuiComponent
canCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getPriority, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, onKeyPressed, setActive, setPos, toString, update, updateInactive
-
Field Details
-
missingTools
-
-
Constructor Details
-
ConstructComponent
public ConstructComponent(Gui gui, ICompendiumRecipe recipe, boolean hasIngredients, Supplier<Boolean> onClick) -
ConstructComponent
public ConstructComponent(Gui gui, ICompendiumRecipe recipe, List<ConstructionTool> missingTools, boolean hasIngredients, Supplier<Boolean> onClick)
-
-
Method Details
-
render
- Overrides:
renderin classGuiComponent
-
renderOverlay
- Overrides:
renderOverlayin classGuiComponent
-
onMouseAction
- Overrides:
onMouseActionin classGuiComponent
-
getOutput
-
shouldDoFingerCursor
- Overrides:
shouldDoFingerCursorin classGuiComponent
-
getName
- Specified by:
getNamein classGuiComponent
-