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, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, 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) voidrenderBackground(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) voidrenderBackgroundTexture(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) method to render the backgoundvoidrenderDarkRectangle(net.minecraft.client.gui.DrawContext context, int x, int y, int x2, int y2, int color) method to render a dark rectangle on top of the background, used in config screenvoidrenderOverBackground(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, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, 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, 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) -
renderBackground
public void renderBackground(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) - Overrides:
renderBackgroundin classnet.minecraft.client.gui.screen.Screen
-
renderBackgroundTexture
public void renderBackgroundTexture(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) method to render the backgound -
renderDarkRectangle
public void renderDarkRectangle(net.minecraft.client.gui.DrawContext context, int x, int y, int x2, int y2, int color) method to render a dark rectangle on top of the background, used in config screen- Parameters:
context- draw contextx- corner coordinates of the rectangley- corner coordinates of the rectanglex2- corner coordinates of the rectangley2- corner coordinates of the rectanglecolor- the color of the rectangle
-