Class RenderElement

java.lang.Object
com.simibubi.create.foundation.gui.element.RenderElement
All Implemented Interfaces:
ScreenElement
Direct Known Subclasses:
BoxElement, GuiGameElement.GuiRenderBuilder, RenderElement.SimpleRenderElement, StencilElement

public abstract class RenderElement extends Object implements ScreenElement
  • Field Details

    • EMPTY

      public static final RenderElement EMPTY
    • width

      protected int width
    • height

      protected int height
    • x

      protected float x
    • y

      protected float y
    • z

      protected float z
    • alpha

      protected float alpha
  • Constructor Details

    • RenderElement

      public RenderElement()
  • Method Details

    • of

      public static RenderElement of(ScreenElement renderable)
    • at

      public <T extends RenderElement> T at(float x, float y)
    • at

      public <T extends RenderElement> T at(float x, float y, float z)
    • withBounds

      public <T extends RenderElement> T withBounds(int width, int height)
    • withAlpha

      public <T extends RenderElement> T withAlpha(float alpha)
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getX

      public float getX()
    • getY

      public float getY()
    • getZ

      public float getZ()
    • render

      public abstract void render(com.mojang.blaze3d.vertex.PoseStack ms)
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack ms, int x, int y)
      Specified by:
      render in interface ScreenElement