public class ComponentSlot extends GuiComponent
| Modifier and Type | Field and Description |
|---|---|
int |
componentId |
GuiContainer |
container |
ContainerSlot |
slot |
| Constructor and Description |
|---|
ComponentSlot(GuiContainer container,
ContainerSlot slot,
int componentId,
int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
ComponentSlot |
addColorOverride(int color)
This forces your slot to render as a specific color.
|
ComponentSlot |
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 ContainerSlot slot
public final int componentId
public final GuiContainer container
public ComponentSlot(GuiContainer container, ContainerSlot slot, int componentId, int x, int y)
public ComponentSlot disableBackgroundRender()
public ComponentSlot 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