public class ConfigScreen
extends net.minecraft.client.gui.screens.Screen
ConfigScreen class is an implementation of Screen
that functions as the config screen or Simpl No Shading.
Like any other screens for minecraft, it can be displayed by using
Minecraft.setScreen(Screen).
| Modifier and Type | Field and Description |
|---|---|
protected Config.Builder |
configBuilder
The config builder to build immutable config objects.
|
static net.minecraft.network.chat.Component |
DEFAULT_TITLE
The default title for Simply No Shading's config screen.
|
protected net.minecraft.client.gui.components.OptionsList |
optionsWidget
The options widget that contains the options for the user to interact.
|
protected net.minecraft.client.renderer.PanoramaRenderer |
panoramaRenderer
The panorama renderer used when there is no level to render.
|
protected net.minecraft.client.gui.screens.Screen |
parent
The parent screen who'll regain display once this screen is done for :).
|
| Modifier | Constructor and Description |
|---|---|
|
ConfigScreen(net.minecraft.client.gui.screens.Screen parent)
Creates a new screen with a set parent, default
title, and default config builder.
|
protected |
ConfigScreen(net.minecraft.client.gui.screens.Screen parent,
net.minecraft.network.chat.Component title)
Creates a new screen with a set parent, title, and default config builder.
|
protected |
ConfigScreen(net.minecraft.client.gui.screens.Screen parent,
net.minecraft.network.chat.Component title,
Config.Builder configBuilder)
Creates a new screen with a set parent, title, and config builder.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
init() |
void |
onClose() |
void |
removed() |
void |
render(int mouseX,
int mouseY,
float delta) |
void |
renderBackground(int z) |
addButton, addWidget, children, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, drawCenteredString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final net.minecraft.network.chat.Component DEFAULT_TITLE
protected Config.Builder configBuilder
protected net.minecraft.client.gui.components.OptionsList optionsWidget
protected final net.minecraft.client.renderer.PanoramaRenderer panoramaRenderer
protected final net.minecraft.client.gui.screens.Screen parent
public ConfigScreen(net.minecraft.client.gui.screens.Screen parent)
parent - the parent screenprotected ConfigScreen(net.minecraft.client.gui.screens.Screen parent,
net.minecraft.network.chat.Component title)
parent - the parent screentitle - the screen titleprotected ConfigScreen(net.minecraft.client.gui.screens.Screen parent,
net.minecraft.network.chat.Component title,
Config.Builder configBuilder)
parent - the parent screentitle - the screen titleconfigBuilder - the congfig builderprotected void init()
init in class net.minecraft.client.gui.screens.Screenpublic void onClose()
onClose in class net.minecraft.client.gui.screens.Screenpublic void removed()
removed in class net.minecraft.client.gui.screens.Screenpublic void render(int mouseX,
int mouseY,
float delta)
render in interface net.minecraft.client.gui.components.Widgetrender in class net.minecraft.client.gui.screens.Screenpublic void renderBackground(int z)
renderBackground in class net.minecraft.client.gui.screens.Screen