Class StateSwitchingButton

java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.StateSwitchingButton
All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, 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
    • renderWidget

      public void renderWidget(GuiGraphics p_283051_, int p_283010_, int p_281379_, float p_283453_)
      Specified by:
      renderWidget in class AbstractWidget