Class AbstractCommandBlockScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen
Direct Known Subclasses:
CommandBlockScreen, EditMinecartCommandBlockScreen

public abstract class AbstractCommandBlockScreen extends Screen
  • Field Details

    • SET_COMMAND_LABEL

      private static final ITextComponent SET_COMMAND_LABEL
    • COMMAND_LABEL

      private static final ITextComponent COMMAND_LABEL
    • PREVIOUS_OUTPUT_LABEL

      private static final ITextComponent PREVIOUS_OUTPUT_LABEL
    • commandEdit

      protected TextFieldWidget commandEdit
    • previousEdit

      protected TextFieldWidget previousEdit
    • doneButton

      protected Button doneButton
    • cancelButton

      protected Button cancelButton
    • outputButton

      protected Button outputButton
    • trackOutput

      protected boolean trackOutput
    • commandSuggestions

      private CommandSuggestionHelper commandSuggestions
  • Constructor Details

    • AbstractCommandBlockScreen

      public AbstractCommandBlockScreen()
  • Method Details

    • tick

      public void tick()
      Specified by:
      tick in interface IScreen
      Overrides:
      tick in class Screen
    • getCommandBlock

      abstract CommandBlockLogic getCommandBlock()
    • getPreviousY

      abstract int getPreviousY()
    • init

      protected void init()
      Overrides:
      init in class Screen
    • resize

      public void resize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)
      Overrides:
      resize in class Screen
    • updateCommandOutput

      protected void updateCommandOutput()
    • onDone

      protected void onDone()
    • removed

      public void removed()
      Overrides:
      removed in class Screen
    • populateAndSendPacket

      protected abstract void populateAndSendPacket(CommandBlockLogic p_195235_1_)
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • onEdited

      private void onEdited(String p_214185_1_)
    • keyPressed

      public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
      Specified by:
      keyPressed in interface IGuiEventListener
      Specified by:
      keyPressed in interface INestedGuiEventHandler
      Overrides:
      keyPressed in class Screen
    • mouseScrolled

      public boolean mouseScrolled(double p_231043_1_, double p_231043_3_, double p_231043_5_)
    • mouseClicked

      public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
    • render

      public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
      Specified by:
      render in interface IRenderable
      Overrides:
      render in class Screen