@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, cursorDragSlots, focusedSlot, handler, isCursorDragging, playerInventory, x, ybuttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_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(int x,
int yIncrement,
Iterable<StatusEffectInstance> effects) |
private void |
drawStatusEffectDescriptions(int x,
int yIncrement,
Iterable<StatusEffectInstance> effects) |
private void |
drawStatusEffects() |
private void |
drawStatusEffectSprites(int x,
int yIncrement,
Iterable<StatusEffectInstance> effects) |
protected void |
init() |
void |
render(int mouseX,
int mouseY,
float delta) |
drawBackground, drawForeground, drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, keyPressed, mouseClicked, mouseDragged, mouseReleased, onMouseClick, removed, shouldCloseOnEsc, tickaddButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, 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()
init in class HandledScreen<T extends ScreenHandler>protected void applyStatusEffectOffset()
public void render(int mouseX,
int mouseY,
float delta)
render in interface Drawablerender in class HandledScreen<T extends ScreenHandler>private void drawStatusEffects()
private void drawStatusEffectBackgrounds(int x,
int yIncrement,
Iterable<StatusEffectInstance> effects)
private void drawStatusEffectSprites(int x,
int yIncrement,
Iterable<StatusEffectInstance> effects)
private void drawStatusEffectDescriptions(int x,
int yIncrement,
Iterable<StatusEffectInstance> effects)