Class ModalSurvivalTab

All Implemented Interfaces:
SurvivalTab, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.TabOrderedElement

public final class ModalSurvivalTab extends SimpleSurvivalTab
  • Constructor Details

    • ModalSurvivalTab

      public ModalSurvivalTab(net.minecraft.network.chat.Component name, String defaultMode, Function<String,StatefulScreen> screen, int id, int column, boolean topRow, boolean alignedRight, boolean showParty, net.minecraft.world.item.ItemStack iconItem)
  • Method Details

    • init

      public void init()
    • update

      public void update()
    • tick

      public void tick()
    • setMode

      public void setMode(String mode)
    • forceUpdate

      public void forceUpdate()
    • reset

      public void reset()
    • rebuild

      public void rebuild(BiConsumer<StatefulScreen,StatefulScreen> clone)
    • access

      public StatefulScreen access()
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
    • mouseReleased

      public boolean mouseReleased(double x, double y, int b)
    • mouseDragged

      public boolean mouseDragged(double x, double y, int b, double dx, double dy)
    • mouseScrolled

      public boolean mouseScrolled(double x, double y, double dx, double dy)
    • mouseMoved

      public void mouseMoved(double x, double y)
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
    • keyReleased

      public boolean keyReleased(int keyCode, int scanCode, int modifiers)
    • charTyped

      public boolean charTyped(char typedChar, int keyCode)
    • mouseClicked

      public boolean mouseClicked(double x, double y, int b)