public abstract class ContainerGui extends Gui
| Modifier and Type | Class and Description |
|---|---|
static class |
ContainerGui.ShiftClickBehavior |
| Modifier and Type | Field and Description |
|---|---|
AbstractPlayerEntity |
player |
java.util.List<ContainerGui.ShiftClickBehavior> |
shiftClickBehaviors |
components, GRADIENT_COLOR, hasUnspecifiedBounds, height, HOVER_INFO_BACKGROUND, parent, width, x, y| Constructor and Description |
|---|
ContainerGui(AbstractPlayerEntity player,
int sizeX,
int sizeY) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCloseWithInvKey() |
boolean |
doesPauseGame() |
ItemContainer |
getContainer() |
int |
getSlotOffsetX() |
int |
getSlotOffsetY() |
void |
init(IGameInstance game) |
void |
onClosed(IGameInstance game) |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
render(IGameInstance game,
IAssetManager manager,
IRenderer g) |
boolean |
shouldCloseContainer() |
getComponents, getHeight, getName, getWidth, getX, getY, hasGradient, isMouseOver, isMouseOverComponent, isMouseOverPrioritized, onCharInput, onKeyPressed, onOpened, renderOverlay, shouldDoFingerCursor, sortComponents, toString, tryEscape, update, updateDimensionspublic final java.util.List<ContainerGui.ShiftClickBehavior> shiftClickBehaviors
public final AbstractPlayerEntity player
public ContainerGui(AbstractPlayerEntity player, int sizeX, int sizeY)
public void onClosed(IGameInstance game)
public boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class Guipublic boolean canCloseWithInvKey()
canCloseWithInvKey in class Guipublic void init(IGameInstance game)
public void render(IGameInstance game, IAssetManager manager, IRenderer g)
public boolean doesPauseGame()
doesPauseGame in class Guipublic boolean shouldCloseContainer()
public int getSlotOffsetX()
public int getSlotOffsetY()
public ItemContainer getContainer()