Class ImageButton

All Implemented Interfaces:
GuiEventListener, Widget, NarratableEntry, NarrationSupplier

public class ImageButton extends Button
  • Field Details

    • resourceLocation

      private final ResourceLocation resourceLocation
    • xTexStart

      private final int xTexStart
    • yTexStart

      private final int yTexStart
    • yDiffTex

      private final int yDiffTex
    • textureWidth

      private final int textureWidth
    • textureHeight

      private final int textureHeight
  • Constructor Details

    • ImageButton

      public ImageButton(int p_169011_, int p_169012_, int p_169013_, int p_169014_, int p_169015_, int p_169016_, ResourceLocation p_169017_, Button.OnPress p_169018_)
    • ImageButton

      public ImageButton(int p_94269_, int p_94270_, int p_94271_, int p_94272_, int p_94273_, int p_94274_, int p_94275_, ResourceLocation p_94276_, Button.OnPress p_94277_)
    • ImageButton

      public ImageButton(int p_94230_, int p_94231_, int p_94232_, int p_94233_, int p_94234_, int p_94235_, int p_94236_, ResourceLocation p_94237_, int p_94238_, int p_94239_, Button.OnPress p_94240_)
    • ImageButton

      public ImageButton(int p_94256_, int p_94257_, int p_94258_, int p_94259_, int p_94260_, int p_94261_, int p_94262_, ResourceLocation p_94263_, int p_94264_, int p_94265_, Button.OnPress p_94266_, Component p_94267_)
    • ImageButton

      public ImageButton(int p_94242_, int p_94243_, int p_94244_, int p_94245_, int p_94246_, int p_94247_, int p_94248_, ResourceLocation p_94249_, int p_94250_, int p_94251_, Button.OnPress p_94252_, Button.OnTooltip p_94253_, Component p_94254_)
  • Method Details

    • setPosition

      public void setPosition(int p_94279_, int p_94280_)
    • renderButton

      public void renderButton(PoseStack p_94282_, int p_94283_, int p_94284_, float p_94285_)
      Overrides:
      renderButton in class Button