类 RealmsSlotOptionsScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.RealmsSlotOptionsScreen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明private int
private int
private boolean
private static final int
private static final int
private final String
static final List<Difficulty>
private Difficulty
private boolean
private GameType
private static final Component
private EditBox
private final RealmsWorldOptions
protected final RealmsConfigureWorldScreen
private boolean
(专用程序包) static final Component
private static final Component
private boolean
private boolean
private boolean
(专用程序包) int
private String
private final RealmsServer.WorldType
从类继承的字段 net.minecraft.realms.RealmsScreen
COLOR_BLACK, COLOR_BRIGHT_YELLOW, COLOR_BUTTON_YELLOW, COLOR_DARK_GRAY, COLOR_DARK_GREEN, COLOR_GRAY, COLOR_GREEN, COLOR_INFO, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, COLOR_RED, COLOR_RED_FADE, COLOR_WHITE, COLOR_YELLOW, COMPONENT_HEIGHT, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHT, UPDATE_BREAKS_ADVENTURE_URL
从类继承的字段 net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器构造器说明RealmsSlotOptionsScreen
(RealmsConfigureWorldScreen pParent, RealmsWorldOptions pOptions, RealmsServer.WorldType pWorldType, int pActiveSlot) -
方法概要
修饰符和类型方法说明private CycleButton.OnValueChange<Boolean>
confirmDangerousOption
(Component pQuestion, Consumer<Boolean> pOnPress) private static <T> T
findByIndex
(List<T> pList, int pIndex, int pFallback) private static <T> int
void
init()
boolean
keyPressed
(int pKeyCode, int pScanCode, int pModifiers) void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) private void
private void
setWorldName
(String p_231314_) void
tick()
从类继承的方法 net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, row
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
DEFAULT_DIFFICULTY
private static final int DEFAULT_DIFFICULTY- 另请参阅:
-
DIFFICULTIES
-
DEFAULT_GAME_MODE
private static final int DEFAULT_GAME_MODE- 另请参阅:
-
GAME_MODES
-
NAME_LABEL
-
SPAWN_PROTECTION_TEXT
-
SPAWN_WARNING_TITLE
-
nameEdit
-
parent
-
column1X
private int column1X -
columnWidth
private int columnWidth -
options
-
worldType
-
difficulty
-
gameMode
-
defaultSlotName
-
worldName
-
pvp
private boolean pvp -
spawnNPCs
private boolean spawnNPCs -
spawnAnimals
private boolean spawnAnimals -
spawnMonsters
private boolean spawnMonsters -
spawnProtection
int spawnProtection -
commandBlocks
private boolean commandBlocks -
forceGameMode
private boolean forceGameMode -
spawnProtectionButton
RealmsSlotOptionsScreen.SettingsSlider spawnProtectionButton
-
-
构造器详细资料
-
RealmsSlotOptionsScreen
public RealmsSlotOptionsScreen(RealmsConfigureWorldScreen pParent, RealmsWorldOptions pOptions, RealmsServer.WorldType pWorldType, int pActiveSlot)
-
-
方法详细资料
-
tick
public void tick() -
keyPressed
public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers) - 指定者:
keyPressed
在接口中ContainerEventHandler
- 指定者:
keyPressed
在接口中GuiEventListener
- 覆盖:
keyPressed
在类中Screen
-
findByIndex
-
findIndex
-
init
public void init() -
confirmDangerousOption
private CycleButton.OnValueChange<Boolean> confirmDangerousOption(Component pQuestion, Consumer<Boolean> pOnPress) -
getNarrationMessage
- 覆盖:
getNarrationMessage
在类中Screen
-
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中Screen
-
setWorldName
-
saveSettings
private void saveSettings()
-