All Implemented Interfaces:
TParentElement, ITooltipProvider, IEnableStateProvider

public class TTextureElement extends TBlankElement
  • Field Details

    • texture

      @Nullable protected @Nullable UITexture texture
    • textureColor

      protected final float[] textureColor
  • Constructor Details

    • TTextureElement

      public TTextureElement(int x, int y, int width, int height)
    • TTextureElement

      public TTextureElement(int x, int y, int width, int height, UITexture texture)
  • Method Details

    • getTexture

      @Nullable public final @Nullable UITexture getTexture()
    • setTexture

      public void setTexture(UITexture texture)
    • getTextureColor

      public final float[] getTextureColor()
    • setTextureColor

      public final void setTextureColor(float r, float g, float b)
    • setTextureColor

      public void setTextureColor(float r, float g, float b, float a)
    • render

      public void render(TDrawContext pencil)
      Description copied from interface: TParentElement
      Renders this GUI element on the screen.
      Specified by:
      render in interface TParentElement
      Overrides:
      render in class TBlankElement
      Parameters:
      pencil - The TDrawContext.