Class AbstractGameRulesScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.worldselection.AbstractGameRulesScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
- Direct Known Subclasses:
InWorldGameRulesScreen, WorldCreationGameRulesScreen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassstatic interfaceclassclassstatic classclassNested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable Buttonfinal GameRulesprivate final Set<AbstractGameRulesScreen.RuleEntry> protected final HeaderAndFooterLayoutprotected @Nullable AbstractGameRulesScreen.RuleListprivate static final intprivate static final Componentprotected @Nullable EditBoxprotected static final ComponentFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
ConstructorsConstructorDescriptionAbstractGameRulesScreen(GameRules gameRules, Consumer<Optional<GameRules>> exitCallback) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearInvalid(AbstractGameRulesScreen.RuleEntry invalidEntry) protected voidprotected voidprotected voidcreateAndConfigureSearchBox(LinearLayout headerLayout) protected voidfilterGameRules(String filter) protected voidinit()protected abstract voidvoidmarkInvalid(AbstractGameRulesScreen.RuleEntry invalidEntry) protected abstract voidonDone()protected voidprotected voidprivate voidMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, resize, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
TITLE
-
SEARCH_HINT
-
SEARCH_BOX_HEIGHT
private static final int SEARCH_BOX_HEIGHT- See Also:
-
invalidEntries
-
exitCallback
-
layout
-
gameRules
-
searchBox
-
ruleList
-
doneButton
-
-
Constructor Details
-
AbstractGameRulesScreen
-
-
Method Details
-
createAndConfigureSearchBox
-
init
-
initContent
protected abstract void initContent() -
onDone
protected abstract void onDone() -
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
setInitialFocus
protected void setInitialFocus()- Overrides:
setInitialFocusin classScreen
-
markInvalid
-
clearInvalid
-
updateDoneButton
private void updateDoneButton() -
closeAndDiscardChanges
protected void closeAndDiscardChanges() -
closeAndApplyChanges
protected void closeAndApplyChanges() -
filterGameRules
-