Class CodeOfConductScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.multiplayer.WarningScreen
net.minecraft.client.gui.screens.multiplayer.CodeOfConductScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate final Stringprivate final Screenprivate final it.unimi.dsi.fastutil.booleans.BooleanConsumerprivate final @Nullable ServerDataprivate static final ComponentFields inherited from class WarningScreen
stopShowingFields 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
ConstructorsModifierConstructorDescriptionCodeOfConductScreen(@Nullable ServerData serverData, Screen parent, String codeOfConductText, it.unimi.dsi.fastutil.booleans.BooleanConsumer resultConsumer) privateCodeOfConductScreen(@Nullable ServerData serverData, Screen parent, Component contents, String codeOfConductText, it.unimi.dsi.fastutil.booleans.BooleanConsumer resultConsumer) -
Method Summary
Methods inherited from class WarningScreen
getNarrationMessage, init, repositionElementsMethods 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, 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, setInitialFocus, shouldNarrateNavigation, showsActiveEffects, 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
-
CHECK
-
serverData
-
codeOfConductText
-
resultConsumer
private final it.unimi.dsi.fastutil.booleans.BooleanConsumer resultConsumer -
parent
-
-
Constructor Details
-
CodeOfConductScreen
private CodeOfConductScreen(@Nullable ServerData serverData, Screen parent, Component contents, String codeOfConductText, it.unimi.dsi.fastutil.booleans.BooleanConsumer resultConsumer) -
CodeOfConductScreen
public CodeOfConductScreen(@Nullable ServerData serverData, Screen parent, String codeOfConductText, it.unimi.dsi.fastutil.booleans.BooleanConsumer resultConsumer)
-
-
Method Details
-
onResult
private void onResult(boolean accepted) -
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classScreen
-
tick