Class ToggleWidget

All Implemented Interfaces:
IGuiEventListener, IRenderable
Direct Known Subclasses:
RecipeTabToggleWidget

public class ToggleWidget extends Widget
  • 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

    • ToggleWidget

      public ToggleWidget(int p_i51128_1_, int p_i51128_2_, int p_i51128_3_, int p_i51128_4_, boolean p_i51128_5_)
  • Method Details

    • initTextureValues

      public void initTextureValues(int p_191751_1_, int p_191751_2_, int p_191751_3_, int p_191751_4_, ResourceLocation p_191751_5_)
    • setStateTriggered

      public void setStateTriggered(boolean p_191753_1_)
    • isStateTriggered

      public boolean isStateTriggered()
    • setPosition

      public void setPosition(int p_191752_1_, int p_191752_2_)
    • renderButton

      public void renderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_)
      Overrides:
      renderButton in class Widget