@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, trackingOutput
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_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, updateTrackedOutput
addButton, 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, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, setInitialFocus
mouseMoved
private 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 AbstractCommandBlockScreen
int getTrackOutputButtonHeight()
getTrackOutputButtonHeight
in class AbstractCommandBlockScreen
protected void init()
This method is called when this screen is opened
or resized.
init
in class AbstractCommandBlockScreen
public void updateCommandBlock()
public void resize(MinecraftClient client, int width, int height)
resize
in class AbstractCommandBlockScreen
protected void syncSettingsToServer(CommandBlockExecutor commandExecutor)
syncSettingsToServer
in class AbstractCommandBlockScreen
private void updateMode()
private void cycleType()
private void updateConditionalMode()
private void updateActivationMode()