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 CommandBlockTileEntityautoCommandBlockprivate booleanautoexecprivate ButtonautoexecButtonprivate booleanconditionalprivate ButtonconditionalButtonprivate CommandBlockTileEntity.Modemodeprivate ButtonmodeButton-
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) CommandBlockLogicgetCommandBlock()(package private) intgetPreviousY()protected voidinit()private voidnextMode()protected voidpopulateAndSendPacket(CommandBlockLogic p_195235_1_)voidresize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)private voidupdateAutoexec()private voidupdateConditional()voidupdateGui()private voidupdateMode()-
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:
getCommandBlockin classAbstractCommandBlockScreen
-
getPreviousY
int getPreviousY()
- Specified by:
getPreviousYin classAbstractCommandBlockScreen
-
init
protected void init()
- Overrides:
initin classAbstractCommandBlockScreen
-
updateGui
public void updateGui()
-
resize
public void resize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)
- Overrides:
resizein classAbstractCommandBlockScreen
-
populateAndSendPacket
protected void populateAndSendPacket(CommandBlockLogic p_195235_1_)
- Specified by:
populateAndSendPacketin classAbstractCommandBlockScreen
-
updateMode
private void updateMode()
-
nextMode
private void nextMode()
-
updateConditional
private void updateConditional()
-
updateAutoexec
private void updateAutoexec()
-
-