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
FieldsFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBackgroundScreen(net.minecraft.text.Text title) protectedBackgroundScreen(net.minecraft.text.Text title, net.minecraft.util.Identifier background, int backgroundWidth, int backgroundHeight) protectedBackgroundScreen(net.minecraft.text.Text title, net.minecraft.util.Identifier background, int backgroundWidth, int backgroundHeight, int backgroundShaderColor) -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) voidrenderBackgroundTexture(net.minecraft.client.gui.DrawContext context) voidrenderDarkRectangle(net.minecraft.client.gui.DrawContext context, int x, int y, int x2, int y2, int color) voidrenderOverBackground(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, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods 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.navigation.Navigable
getNavigationOrderMethods 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:
renderin interfacenet.minecraft.client.gui.Drawable- Overrides:
renderin classnet.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:
renderBackgroundTexturein classnet.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)
-