public class ComponentIngredient extends GuiComponent
| Modifier and Type | Field and Description |
|---|---|
static ResourceName |
DEFAULT_TEX |
| Constructor and Description |
|---|
ComponentIngredient(Gui gui,
boolean hasItem,
java.util.List<ItemInstance> inputs) |
ComponentIngredient(Gui gui,
boolean hasItem,
java.util.List<ItemInstance> inputs,
ResourceName tex) |
| Modifier and Type | Method and Description |
|---|---|
protected ItemInstance |
getInput(IGameInstance game) |
ResourceName |
getName() |
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 static final ResourceName DEFAULT_TEX
public ComponentIngredient(Gui gui, boolean hasItem, java.util.List<ItemInstance> inputs, ResourceName tex)
public ComponentIngredient(Gui gui, boolean hasItem, java.util.List<ItemInstance> inputs)
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 GuiComponentprotected ItemInstance getInput(IGameInstance game)
public boolean shouldDoFingerCursor(IGameInstance game)
shouldDoFingerCursor in class GuiComponentpublic ResourceName getName()
getName in class GuiComponentpublic boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class GuiComponent