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 net.minecraft.client.gui.screens.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 net.minecraft.client.gui.screens.multiplayer.WarningScreen
stopShowingFields inherited from class net.minecraft.client.gui.screens.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 pServerData, Screen pParent, String pCodeOfConductText, it.unimi.dsi.fastutil.booleans.BooleanConsumer pResultConsumer) privateCodeOfConductScreen(@Nullable ServerData pServerData, Screen pParent, Component pContent, String pCodeOfConductScreen, it.unimi.dsi.fastutil.booleans.BooleanConsumer pResultConsumer) -
Method Summary
Methods inherited from class net.minecraft.client.gui.screens.multiplayer.WarningScreen
getNarrationMessage, init, repositionElementsMethods inherited from class net.minecraft.client.gui.screens.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 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
getBorderForArrowNavigation, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.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 pServerData, Screen pParent, Component pContent, String pCodeOfConductScreen, it.unimi.dsi.fastutil.booleans.BooleanConsumer pResultConsumer) -
CodeOfConductScreen
public CodeOfConductScreen(@Nullable ServerData pServerData, Screen pParent, String pCodeOfConductText, it.unimi.dsi.fastutil.booleans.BooleanConsumer pResultConsumer)
-
-
Method Details
-
onResult
private void onResult(boolean pAccepted) -
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classScreen
-
tick
public void tick()