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 Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Buttonprivate static final Componentprotected EditBoxprivate CommandSuggestionsprotected Buttonprotected CycleButton<Boolean> private static final Componentprotected EditBoxprivate 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void(package private) abstract BaseCommandBlock(package private) abstract intprotected Componentprotected voidinit()booleanbooleankeyPressed(KeyEvent event) booleanmouseClicked(MouseButtonEvent event, boolean doubleClick) booleanmouseScrolled(double x, double y, double scrollX, double scrollY) protected voidonDone()private voidprotected abstract voidvoidrender(GuiGraphics graphics, int mouseX, int mouseY, float a) Renders the graphical user interface (GUI) element.voidresize(int width, int height) protected voidvoidtick()protected voidupdatePreviousOutput(boolean isTracking) Methods 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, 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 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, mouseDragged, mouseReleased, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
SET_COMMAND_LABEL
-
COMMAND_LABEL
-
PREVIOUS_OUTPUT_LABEL
-
commandEdit
-
previousEdit
-
doneButton
-
cancelButton
-
outputButton
-
commandSuggestions
-
-
Constructor Details
-
AbstractCommandBlockEditScreen
public AbstractCommandBlockEditScreen()
-
-
Method Details
-
tick
-
getCommandBlock
-
getPreviousY
abstract int getPreviousY() -
init
-
addExtraControls
protected void addExtraControls() -
setInitialFocus
protected void setInitialFocus()- Overrides:
setInitialFocusin classScreen
-
getUsageNarration
- Overrides:
getUsageNarrationin classScreen
-
resize
-
updatePreviousOutput
protected void updatePreviousOutput(boolean isTracking) -
onDone
protected void onDone() -
populateAndSendPacket
protected abstract void 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 x, double y, double scrollX, double scrollY) -
mouseClicked
-
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
graphics- the GuiGraphics object used for rendering.mouseX- the x-coordinate of the mouse cursor.mouseY- the y-coordinate of the mouse cursor.a- the partial tick time.
-