Class BeaconScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.HandledScreen<BeaconScreenHandler>
net.minecraft.client.gui.screen.ingame.BeaconScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement,ScreenHandlerProvider<BeaconScreenHandler>,TickableElement
@Environment(CLIENT) public class BeaconScreen extends HandledScreen<BeaconScreenHandler>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classBeaconScreen.BaseButtonWidget(package private) classBeaconScreen.CancelButtonWidget(package private) classBeaconScreen.DoneButtonWidget(package private) classBeaconScreen.EffectButtonWidget(package private) static classBeaconScreen.IconButtonWidget -
Field Summary
Fields Modifier and Type Field Description private booleanconsumeGemprivate BeaconScreen.DoneButtonWidgetdoneButtonprivate static TextPRIMARY_POWER_TEXTprivate StatusEffectprimaryEffectprivate static TextSECONDARY_POWER_TEXTprivate StatusEffectsecondaryEffectprivate static IdentifierTEXTUREFields inherited from class net.minecraft.client.gui.screen.ingame.HandledScreen
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragging, cursorDragSlots, focusedSlot, handler, playerInventory, playerInventoryTitleX, playerInventoryTitleY, titleX, titleY, x, yFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description BeaconScreen(BeaconScreenHandler handler, PlayerInventory inventory, Text title) -
Method Summary
Modifier and Type Method Description protected voiddrawBackground(MatrixStack matrices, float delta, int mouseX, int mouseY)protected voiddrawForeground(MatrixStack matrices, int mouseX, int mouseY)protected voidinit()Called when a screen should be initialized.voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidtick()Methods inherited from class net.minecraft.client.gui.screen.ingame.HandledScreen
drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, keyPressed, method_33285, mouseClicked, mouseDragged, mouseReleased, onClose, onMouseClick, removedMethods inherited from class net.minecraft.client.gui.screen.Screen
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, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocus
-
Field Details
-
TEXTURE
-
PRIMARY_POWER_TEXT
-
SECONDARY_POWER_TEXT
-
doneButton
-
consumeGem
private boolean consumeGem -
-
secondaryEffect
-
-
Constructor Details
-
BeaconScreen
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
- Overrides:
initin classHandledScreen<BeaconScreenHandler>
-
tick
public void tick()- Specified by:
tickin interfaceTickableElement- Overrides:
tickin classHandledScreen<BeaconScreenHandler>
-
drawForeground
- Overrides:
drawForegroundin classHandledScreen<BeaconScreenHandler>
-
drawBackground
- Specified by:
drawBackgroundin classHandledScreen<BeaconScreenHandler>
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classHandledScreen<BeaconScreenHandler>
-