Class BackgroundScreen

java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.rodofire.easierworldcreator.client.hud.screen.BackgroundScreen
All Implemented Interfaces:
net.minecraft.client.gui.Drawable, net.minecraft.client.gui.Element, net.minecraft.client.gui.navigation.Navigable, net.minecraft.client.gui.ParentElement
Direct Known Subclasses:
AbstractConfigScreen, AbstractInfoScreen

@Environment(CLIENT) public abstract class BackgroundScreen extends net.minecraft.client.gui.screen.Screen
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen

    net.minecraft.client.gui.screen.Screen.SelectedElementNarrationData
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.util.Identifier
     

    Fields inherited from class net.minecraft.client.gui.screen.Screen

    client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, width

    Fields inherited from interface net.minecraft.client.gui.Element

    MAX_DOUBLE_CLICK_INTERVAL
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    BackgroundScreen(net.minecraft.text.Text title)
     
    protected
    BackgroundScreen(net.minecraft.text.Text title, net.minecraft.util.Identifier background, int backgroundWidth, int backgroundHeight)
     
    protected
    BackgroundScreen(net.minecraft.text.Text title, net.minecraft.util.Identifier background, int backgroundWidth, int backgroundHeight, int backgroundShaderColor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta)
     
    void
    renderBackgroundTexture(net.minecraft.client.gui.DrawContext context)
     
    void
    renderDarkRectangle(net.minecraft.client.gui.DrawContext context, int x, int y, int x2, int y2, int color)
     
    void
    renderOverBackground(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta)
     

    Methods inherited from class net.minecraft.client.gui.screen.Screen

    addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenError

    Methods inherited from class net.minecraft.client.gui.AbstractParentElement

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.Element

    mouseMoved

    Methods inherited from interface net.minecraft.client.gui.navigation.Navigable

    getNavigationOrder

    Methods inherited from interface net.minecraft.client.gui.ParentElement

    charTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
  • Field Details

    • TEXTURE

      protected net.minecraft.util.Identifier TEXTURE
  • Constructor Details

    • BackgroundScreen

      protected BackgroundScreen(net.minecraft.text.Text title)
    • BackgroundScreen

      protected BackgroundScreen(net.minecraft.text.Text title, net.minecraft.util.Identifier background, int backgroundWidth, int backgroundHeight)
    • BackgroundScreen

      protected BackgroundScreen(net.minecraft.text.Text title, net.minecraft.util.Identifier background, int backgroundWidth, int backgroundHeight, int backgroundShaderColor)
  • Method Details

    • render

      public void render(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface net.minecraft.client.gui.Drawable
      Overrides:
      render in class net.minecraft.client.gui.screen.Screen
    • renderOverBackground

      public void renderOverBackground(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta)
    • renderBackgroundTexture

      public void renderBackgroundTexture(net.minecraft.client.gui.DrawContext context)
      Overrides:
      renderBackgroundTexture in class net.minecraft.client.gui.screen.Screen
    • renderDarkRectangle

      public void renderDarkRectangle(net.minecraft.client.gui.DrawContext context, int x, int y, int x2, int y2, int color)