@Environment(value=CLIENT) public abstract class AbstractInventoryScreen<T extends ScreenHandler> extends HandledScreen<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
drawStatusEffects |
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragging, cursorDragSlots, focusedSlot, handler, playerInventory, playerInventoryTitleX, playerInventoryTitleY, titleX, titleY, x, ybuttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
AbstractInventoryScreen(T handler,
PlayerInventory inventory,
Text title) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyStatusEffectOffset() |
private void |
drawStatusEffectBackgrounds(MatrixStack matrixStack,
int int2,
int int3,
Iterable<StatusEffectInstance> iterable) |
private void |
drawStatusEffectDescriptions(MatrixStack matrixStack,
int int2,
int int3,
Iterable<StatusEffectInstance> iterable) |
private void |
drawStatusEffects(MatrixStack matrixStack) |
private void |
drawStatusEffectSprites(MatrixStack matrixStack,
int int2,
int int3,
Iterable<StatusEffectInstance> iterable) |
protected void |
init()
Called when a screen should be initialized.
|
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
drawBackground, drawForeground, drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, keyPressed, mouseClicked, mouseDragged, mouseReleased, onClose, onMouseClick, removed, tickaddButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocusmouseMovedpublic AbstractInventoryScreen(T handler, PlayerInventory inventory, Text title)
protected void init()
This method is called when this screen is opened or resized.
init in class HandledScreen<T extends ScreenHandler>protected void applyStatusEffectOffset()
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
render in interface Drawablerender in class HandledScreen<T extends ScreenHandler>private void drawStatusEffects(MatrixStack matrixStack)
private void drawStatusEffectBackgrounds(MatrixStack matrixStack, int int2, int int3, Iterable<StatusEffectInstance> iterable)
private void drawStatusEffectSprites(MatrixStack matrixStack, int int2, int int3, Iterable<StatusEffectInstance> iterable)
private void drawStatusEffectDescriptions(MatrixStack matrixStack, int int2, int int3, Iterable<StatusEffectInstance> iterable)