Class BackgroundScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
fr.rodofire.ewc.client.gui.screen.BackgroundScreen
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Renderable,net.minecraft.client.gui.components.TabOrderedElement
- Direct Known Subclasses:
AbstractConfigScreen,AbstractInfoScreen
public abstract class BackgroundScreen
extends net.minecraft.client.gui.screens.Screen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBackgroundScreen(net.minecraft.network.chat.Component title) protectedBackgroundScreen(net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background, int backgroundWidth, int backgroundHeight) protectedBackgroundScreen(net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background, int backgroundWidth, int backgroundHeight, int backgroundShaderColor) -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(@NotNull net.minecraft.client.gui.GuiGraphics context, int mouseX, int mouseY, float delta) voidrenderBackground(@NotNull net.minecraft.client.gui.GuiGraphics context, int mouseX, int mouseY, float delta) voidrenderBackgroundTexture(net.minecraft.client.gui.GuiGraphics context, int mouseX, int mouseY, float delta) method to render the backgoundvoidrenderDarkRectangle(net.minecraft.client.gui.GuiGraphics 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.GuiGraphics context, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
TEXTURE
protected net.minecraft.resources.ResourceLocation TEXTURE
-
-
Constructor Details
-
BackgroundScreen
protected BackgroundScreen(net.minecraft.network.chat.Component title) -
BackgroundScreen
protected BackgroundScreen(net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background, int backgroundWidth, int backgroundHeight) -
BackgroundScreen
protected BackgroundScreen(net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background, int backgroundWidth, int backgroundHeight, int backgroundShaderColor)
-
-
Method Details
-
render
public void render(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics context, int mouseX, int mouseY, float delta) - Specified by:
renderin interfacenet.minecraft.client.gui.components.Renderable- Overrides:
renderin classnet.minecraft.client.gui.screens.Screen
-
renderOverBackground
public void renderOverBackground(net.minecraft.client.gui.GuiGraphics context, int mouseX, int mouseY, float delta) -
renderBackground
public void renderBackground(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics context, int mouseX, int mouseY, float delta) - Overrides:
renderBackgroundin classnet.minecraft.client.gui.screens.Screen
-
renderBackgroundTexture
public void renderBackgroundTexture(net.minecraft.client.gui.GuiGraphics context, int mouseX, int mouseY, float delta) method to render the backgound -
renderDarkRectangle
public void renderDarkRectangle(net.minecraft.client.gui.GuiGraphics 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
-