Package net.minecraft.client.gui.screen
Class CommandBlockScreen
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.FocusableGui
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.AbstractCommandBlockScreen
-
- net.minecraft.client.gui.screen.CommandBlockScreen
-
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
,IScreen
public class CommandBlockScreen extends AbstractCommandBlockScreen
-
-
Field Summary
Fields Modifier and Type Field Description private CommandBlockTileEntity
autoCommandBlock
private boolean
autoexec
private Button
autoexecButton
private boolean
conditional
private Button
conditionalButton
private CommandBlockTileEntity.Mode
mode
private Button
modeButton
-
Fields inherited from class net.minecraft.client.gui.screen.AbstractCommandBlockScreen
cancelButton, commandEdit, doneButton, outputButton, previousEdit, trackOutput
-
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description CommandBlockScreen(CommandBlockTileEntity p_i46596_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) CommandBlockLogic
getCommandBlock()
(package private) int
getPreviousY()
protected void
init()
private void
nextMode()
protected void
populateAndSendPacket(CommandBlockLogic p_195235_1_)
void
resize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)
private void
updateAutoexec()
private void
updateConditional()
void
updateGui()
private void
updateMode()
-
Methods inherited from class net.minecraft.client.gui.screen.AbstractCommandBlockScreen
keyPressed, mouseClicked, mouseScrolled, onClose, onDone, removed, render, tick, updateCommandOutput
-
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
-
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMoved
-
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, setInitialFocus
-
-
-
-
Field Detail
-
autoCommandBlock
private final CommandBlockTileEntity autoCommandBlock
-
modeButton
private Button modeButton
-
conditionalButton
private Button conditionalButton
-
autoexecButton
private Button autoexecButton
-
mode
private CommandBlockTileEntity.Mode mode
-
conditional
private boolean conditional
-
autoexec
private boolean autoexec
-
-
Constructor Detail
-
CommandBlockScreen
public CommandBlockScreen(CommandBlockTileEntity p_i46596_1_)
-
-
Method Detail
-
getCommandBlock
CommandBlockLogic getCommandBlock()
- Specified by:
getCommandBlock
in classAbstractCommandBlockScreen
-
getPreviousY
int getPreviousY()
- Specified by:
getPreviousY
in classAbstractCommandBlockScreen
-
init
protected void init()
- Overrides:
init
in classAbstractCommandBlockScreen
-
updateGui
public void updateGui()
-
resize
public void resize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)
- Overrides:
resize
in classAbstractCommandBlockScreen
-
populateAndSendPacket
protected void populateAndSendPacket(CommandBlockLogic p_195235_1_)
- Specified by:
populateAndSendPacket
in classAbstractCommandBlockScreen
-
updateMode
private void updateMode()
-
nextMode
private void nextMode()
-
updateConditional
private void updateConditional()
-
updateAutoexec
private void updateAutoexec()
-
-