@Environment(value=CLIENT) public class CommandBlockScreen extends AbstractCommandBlockScreen
| Modifier and Type | Field and Description |
|---|---|
private boolean |
autoActivate |
private CommandBlockBlockEntity |
blockEntity |
private boolean |
conditional |
private ButtonWidget |
conditionalModeButton |
private CommandBlockBlockEntity.Type |
mode |
private ButtonWidget |
modeButton |
private ButtonWidget |
redstoneTriggerButton |
cancelButton, consoleCommandTextField, doneButton, previousOutputTextField, toggleTrackingOutputButton, trackingOutputbuttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
CommandBlockScreen(CommandBlockBlockEntity blockEntity) |
| Modifier and Type | Method and Description |
|---|---|
private void |
cycleType() |
(package private) CommandBlockExecutor |
getCommandExecutor() |
(package private) int |
getTrackOutputButtonHeight() |
protected void |
init()
Called when a screen should be initialized.
|
void |
resize(MinecraftClient client,
int width,
int height) |
protected void |
syncSettingsToServer(CommandBlockExecutor commandExecutor) |
private void |
updateActivationMode() |
void |
updateCommandBlock() |
private void |
updateConditionalMode() |
private void |
updateMode() |
commitAndClose, keyPressed, mouseClicked, mouseScrolled, onClose, removed, render, tick, updateTrackedOutputaddButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, setInitialFocusmouseMovedprivate final CommandBlockBlockEntity blockEntity
private ButtonWidget modeButton
private ButtonWidget conditionalModeButton
private ButtonWidget redstoneTriggerButton
private CommandBlockBlockEntity.Type mode
private boolean conditional
private boolean autoActivate
public CommandBlockScreen(CommandBlockBlockEntity blockEntity)
CommandBlockExecutor getCommandExecutor()
getCommandExecutor in class AbstractCommandBlockScreenint getTrackOutputButtonHeight()
getTrackOutputButtonHeight in class AbstractCommandBlockScreenprotected void init()
This method is called when this screen is opened or resized.
init in class AbstractCommandBlockScreenpublic void updateCommandBlock()
public void resize(MinecraftClient client, int width, int height)
resize in class AbstractCommandBlockScreenprotected void syncSettingsToServer(CommandBlockExecutor commandExecutor)
syncSettingsToServer in class AbstractCommandBlockScreenprivate void updateMode()
private void cycleType()
private void updateConditionalMode()
private void updateActivationMode()