Class AbstractCommandBlockEditScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
Direct Known Subclasses:
CommandBlockEditScreen, MinecartCommandBlockEditScreen

public abstract class AbstractCommandBlockEditScreen extends Screen
  • Field Details

    • SET_COMMAND_LABEL

      private static final Component SET_COMMAND_LABEL
    • COMMAND_LABEL

      private static final Component COMMAND_LABEL
    • PREVIOUS_OUTPUT_LABEL

      private static final Component PREVIOUS_OUTPUT_LABEL
    • commandEdit

      protected EditBox commandEdit
    • previousEdit

      protected EditBox previousEdit
    • doneButton

      protected Button doneButton
    • cancelButton

      protected Button cancelButton
    • outputButton

      protected CycleButton<Boolean> outputButton
    • commandSuggestions

      CommandSuggestions commandSuggestions
  • Constructor Details

    • AbstractCommandBlockEditScreen

      public AbstractCommandBlockEditScreen()
  • Method Details

    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • getCommandBlock

      abstract BaseCommandBlock getCommandBlock()
    • getPreviousY

      abstract int getPreviousY()
    • init

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

      protected void setInitialFocus()
      Overrides:
      setInitialFocus in class Screen
    • getUsageNarration

      protected Component getUsageNarration()
      Overrides:
      getUsageNarration in class Screen
    • resize

      public void resize(Minecraft p_97677_, int p_97678_, int p_97679_)
      Overrides:
      resize in class Screen
    • updatePreviousOutput

      protected void updatePreviousOutput(boolean p_169599_)
    • onDone

      protected void onDone()
    • populateAndSendPacket

      protected abstract void populateAndSendPacket(BaseCommandBlock p_97670_)
    • onEdited

      private void onEdited(String p_97689_)
    • keyPressed

      public boolean keyPressed(int p_97667_, int p_97668_, int p_97669_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • mouseScrolled

      public boolean mouseScrolled(double p_97659_, double p_97660_, double p_97661_, double p_299742_)
    • mouseClicked

      public boolean mouseClicked(double p_97663_, double p_97664_, int p_97665_)
    • render

      public void render(GuiGraphics p_283074_, int p_97673_, int p_97674_, float p_97675_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • renderBackground

      public void renderBackground(GuiGraphics p_328932_, int p_335727_, int p_329053_, float p_328540_)
      Overrides:
      renderBackground in class Screen