@Environment(value=CLIENT) public abstract class AbstractCommandBlockScreen extends Screen
Modifier and Type | Field and Description |
---|---|
protected ButtonWidget |
cancelButton |
private CommandSuggestor |
commandSuggestor |
protected TextFieldWidget |
consoleCommandTextField |
protected ButtonWidget |
doneButton |
protected TextFieldWidget |
previousOutputTextField |
protected ButtonWidget |
toggleTrackingOutputButton |
protected boolean |
trackingOutput |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
AbstractCommandBlockScreen() |
Modifier and Type | Method and Description |
---|---|
protected void |
commitAndClose() |
(package private) abstract CommandBlockExecutor |
getCommandExecutor() |
(package private) abstract int |
getTrackOutputButtonHeight() |
protected void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double amount) |
void |
onClose() |
private void |
onCommandChanged(String text) |
void |
removed() |
void |
render(int mouseX,
int mouseY,
float delta) |
void |
resize(MinecraftClient client,
int width,
int height) |
protected abstract void |
syncSettingsToServer(CommandBlockExecutor commandExecutor) |
void |
tick() |
protected void |
updateTrackedOutput() |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, setInitialFocus
mouseMoved
protected TextFieldWidget consoleCommandTextField
protected TextFieldWidget previousOutputTextField
protected ButtonWidget doneButton
protected ButtonWidget cancelButton
protected ButtonWidget toggleTrackingOutputButton
protected boolean trackingOutput
private CommandSuggestor commandSuggestor
abstract CommandBlockExecutor getCommandExecutor()
abstract int getTrackOutputButtonHeight()
public void resize(MinecraftClient client, int width, int height)
protected void updateTrackedOutput()
protected void commitAndClose()
protected abstract void syncSettingsToServer(CommandBlockExecutor commandExecutor)
private void onCommandChanged(String text)
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
keyPressed
in interface Element
keyPressed
in interface ParentElement
keyPressed
in class Screen
public boolean mouseScrolled(double mouseX, double mouseY, double amount)
public boolean mouseClicked(double mouseX, double mouseY, int button)