Class StateSwitchingButton

All Implemented Interfaces:
GuiEventListener, Renderable, NarratableEntry, NarrationSupplier
Direct Known Subclasses:
RecipeBookTabButton

public class StateSwitchingButton extends AbstractWidget
  • Field Details

    • resourceLocation

      protected ResourceLocation resourceLocation
    • isStateTriggered

      protected boolean isStateTriggered
    • xTexStart

      protected int xTexStart
    • yTexStart

      protected int yTexStart
    • xDiffTex

      protected int xDiffTex
    • yDiffTex

      protected int yDiffTex
  • Constructor Details

    • StateSwitchingButton

      public StateSwitchingButton(int p_94615_, int p_94616_, int p_94617_, int p_94618_, boolean p_94619_)
  • Method Details

    • initTextureValues

      public void initTextureValues(int p_94625_, int p_94626_, int p_94627_, int p_94628_, ResourceLocation p_94629_)
    • setStateTriggered

      public void setStateTriggered(boolean p_94636_)
    • isStateTriggered

      public boolean isStateTriggered()
    • updateWidgetNarration

      public void updateWidgetNarration(NarrationElementOutput p_259073_)
      Specified by:
      updateWidgetNarration in class AbstractWidget
    • renderButton

      public void renderButton(PoseStack p_94631_, int p_94632_, int p_94633_, float p_94634_)
      Overrides:
      renderButton in class AbstractWidget