public class ConstructComponent extends GuiComponent
| Modifier and Type | Field and Description |
|---|---|
java.util.List<ConstructionTool> |
missingTools |
| Constructor and Description |
|---|
ConstructComponent(Gui gui,
ICompendiumRecipe recipe,
boolean hasIngredients,
java.util.function.Supplier<java.lang.Boolean> onClick) |
ConstructComponent(Gui gui,
ICompendiumRecipe recipe,
java.util.List<ConstructionTool> missingTools,
boolean hasIngredients,
java.util.function.Supplier<java.lang.Boolean> onClick) |
| Modifier and Type | Method and Description |
|---|---|
ResourceName |
getName() |
protected ItemInstance |
getOutput(IGameInstance game) |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
render(IGameInstance game,
IAssetManager manager,
IRenderer g,
int x,
int y) |
void |
renderOverlay(IGameInstance game,
IAssetManager manager,
IRenderer g,
int x,
int y) |
boolean |
shouldDoFingerCursor(IGameInstance game) |
canCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getPriority, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, onKeyPressed, setActive, setPos, toString, update, updateInactivepublic final java.util.List<ConstructionTool> missingTools
public ConstructComponent(Gui gui, ICompendiumRecipe recipe, boolean hasIngredients, java.util.function.Supplier<java.lang.Boolean> onClick)
public ConstructComponent(Gui gui, ICompendiumRecipe recipe, java.util.List<ConstructionTool> missingTools, boolean hasIngredients, java.util.function.Supplier<java.lang.Boolean> onClick)
public void render(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
render in class GuiComponentpublic void renderOverlay(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
renderOverlay in class GuiComponentpublic boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class GuiComponentprotected ItemInstance getOutput(IGameInstance game)
public boolean shouldDoFingerCursor(IGameInstance game)
shouldDoFingerCursor in class GuiComponentpublic ResourceName getName()
getName in class GuiComponent