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 voidvoidextractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) (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 voidvoidresize(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, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isPauseScreen, isValidCharacterForName, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, 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, preeditUpdated, 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
-
extractRenderState
- Specified by:
extractRenderStatein interfaceRenderable- Overrides:
extractRenderStatein classScreen
-