public class SlotComponent extends GuiComponent
| Modifier and Type | Field and Description |
|---|---|
int |
componentId |
ContainerGui |
container |
SlotContainer |
slot |
| Constructor and Description |
|---|
SlotComponent(ContainerGui container,
SlotContainer slot,
int componentId,
int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
SlotComponent |
addColorOverride(int color)
This forces your slot to render as a specific color.
|
SlotComponent |
disableBackgroundRender()
This disables the background rendering of the slot.
|
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) |
canCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getPriority, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, onKeyPressed, setActive, setPos, shouldDoFingerCursor, toString, update, updateInactivepublic final SlotContainer slot
public final int componentId
public final ContainerGui container
public SlotComponent(ContainerGui container, SlotContainer slot, int componentId, int x, int y)
public SlotComponent disableBackgroundRender()
public SlotComponent addColorOverride(int color)
Settings.guiColorcolor - The color that you want your slot to usepublic boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class GuiComponentpublic ResourceName getName()
getName in class GuiComponentpublic 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 GuiComponent