@Environment(value=CLIENT) public class BeaconScreen extends HandledScreen<BeaconScreenHandler>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
BeaconScreen.BaseButtonWidget |
(package private) class |
BeaconScreen.CancelButtonWidget |
(package private) class |
BeaconScreen.DoneButtonWidget |
(package private) class |
BeaconScreen.EffectButtonWidget |
(package private) static class |
BeaconScreen.IconButtonWidget |
Modifier and Type | Field and Description |
---|---|
private boolean |
consumeGem |
private BeaconScreen.DoneButtonWidget |
doneButton |
private static Text |
field_26560 |
private static Text |
field_26561 |
private StatusEffect |
primaryEffect |
private StatusEffect |
secondaryEffect |
private static Identifier |
TEXTURE |
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragging, cursorDragSlots, focusedSlot, handler, playerInventory, playerInventoryTitleX, playerInventoryTitleY, titleX, titleY, x, y
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
BeaconScreen(BeaconScreenHandler handler,
PlayerInventory inventory,
Text title) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawBackground(MatrixStack matrices,
float delta,
int mouseX,
int mouseY) |
protected void |
drawForeground(MatrixStack matrices,
int mouseX,
int mouseY) |
protected void |
init()
Called when a screen should be initialized.
|
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
tick() |
drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, keyPressed, mouseClicked, mouseDragged, mouseReleased, onClose, onMouseClick, removed
addButton, 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, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final Identifier TEXTURE
private static final Text field_26560
private static final Text field_26561
private BeaconScreen.DoneButtonWidget doneButton
private boolean consumeGem
private StatusEffect primaryEffect
private StatusEffect secondaryEffect
public BeaconScreen(BeaconScreenHandler handler, PlayerInventory inventory, Text title)
protected void init()
This method is called when this screen is opened
or resized.
init
in class HandledScreen<BeaconScreenHandler>
public void tick()
tick
in interface TickableElement
tick
in class HandledScreen<BeaconScreenHandler>
protected void drawForeground(MatrixStack matrices, int mouseX, int mouseY)
drawForeground
in class HandledScreen<BeaconScreenHandler>
protected void drawBackground(MatrixStack matrices, float delta, int mouseX, int mouseY)
drawBackground
in class HandledScreen<BeaconScreenHandler>
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
render
in interface Drawable
render
in class HandledScreen<BeaconScreenHandler>