Class CommandBlockEditScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractCommandBlockEditScreen
net.minecraft.client.gui.screens.inventory.CommandBlockEditScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandBlockEntityprivate booleanprivate CycleButton<Boolean> private booleanprivate CycleButton<Boolean> private CommandBlockEntity.Modeprivate CycleButton<CommandBlockEntity.Mode> Fields inherited from class AbstractCommandBlockEditScreen
cancelButton, commandEdit, doneButton, outputButton, previousEditFields 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 voidprivate voidenableControls(boolean state) (package private) BaseCommandBlock(package private) intprotected voidinit()protected voidvoidresize(int width, int height) voidMethods inherited from class AbstractCommandBlockEditScreen
getUsageNarration, isInGameUi, keyPressed, mouseClicked, mouseScrolled, onDone, render, setInitialFocus, tick, updatePreviousOutputMethods 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
-
autoCommandBlock
-
modeButton
-
conditionalButton
-
autoexecButton
-
mode
-
conditional
private boolean conditional -
autoexec
private boolean autoexec
-
-
Constructor Details
-
CommandBlockEditScreen
-
-
Method Details
-
getCommandBlock
BaseCommandBlock getCommandBlock()- Specified by:
getCommandBlockin classAbstractCommandBlockEditScreen
-
getPreviousY
int getPreviousY()- Specified by:
getPreviousYin classAbstractCommandBlockEditScreen
-
init
protected void init()- Overrides:
initin classAbstractCommandBlockEditScreen
-
addExtraControls
protected void addExtraControls()- Overrides:
addExtraControlsin classAbstractCommandBlockEditScreen
-
enableControls
private void enableControls(boolean state) -
updateGui
public void updateGui() -
resize
public void resize(int width, int height) - Overrides:
resizein classAbstractCommandBlockEditScreen
-
populateAndSendPacket
protected void populateAndSendPacket()- Specified by:
populateAndSendPacketin classAbstractCommandBlockEditScreen
-