Class AbstractCommandBlockEditScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractCommandBlockEditScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
- Direct Known Subclasses:
CommandBlockEditScreen,MinecartCommandBlockEditScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Buttonprivate static final Componentprotected EditBox(package private) CommandSuggestionsprotected Buttonprotected CycleButton<Boolean> private static final Componentprotected EditBoxprivate static final ComponentFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void(package private) abstract BaseCommandBlock(package private) abstract intprotected Componentprotected voidinit()booleanbooleankeyPressed(KeyEvent p_445776_) booleanmouseClicked(MouseButtonEvent p_445504_, boolean p_433099_) booleanmouseScrolled(double p_97659_, double p_97660_, double p_97661_, double p_294594_) protected voidonDone()private voidprotected abstract voidpopulateAndSendPacket(BaseCommandBlock pCommandBlock) voidrender(GuiGraphics p_283074_, int p_97673_, int p_97674_, float p_97675_) Renders the graphical user interface (GUI) element.voidprotected voidvoidtick()protected voidupdatePreviousOutput(boolean pTrackOutput) Methods 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, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleClickEvent, handleComponentClicked, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isPauseScreen, isValidCharacterForName, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, setInitialFocus, shouldCloseOnEsc, 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, mouseDragged, mouseReleased, 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
-
SET_COMMAND_LABEL
-
COMMAND_LABEL
-
PREVIOUS_OUTPUT_LABEL
-
commandEdit
-
previousEdit
-
doneButton
-
cancelButton
-
outputButton
-
commandSuggestions
CommandSuggestions commandSuggestions
-
-
Constructor Details
-
AbstractCommandBlockEditScreen
public AbstractCommandBlockEditScreen()
-
-
Method Details
-
tick
public void tick() -
getCommandBlock
-
getPreviousY
abstract int getPreviousY() -
init
protected void init() -
addExtraControls
protected void addExtraControls() -
setInitialFocus
protected void setInitialFocus()- Overrides:
setInitialFocusin classScreen
-
getUsageNarration
- Overrides:
getUsageNarrationin classScreen
-
resize
-
updatePreviousOutput
protected void updatePreviousOutput(boolean pTrackOutput) -
onDone
protected void onDone() -
populateAndSendPacket
-
onEdited
-
isInGameUi
public boolean isInGameUi()- Overrides:
isInGameUiin classScreen
-
keyPressed
- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
mouseScrolled
public boolean mouseScrolled(double p_97659_, double p_97660_, double p_97661_, double p_294594_) -
mouseClicked
-
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
p_283074_- the GuiGraphics object used for rendering.p_97673_- the x-coordinate of the mouse cursor.p_97674_- the y-coordinate of the mouse cursor.p_97675_- the partial tick time.
-