Class EmiDrawContext

java.lang.Object
emi.dev.emi.emi.runtime.EmiDrawContext

public class EmiDrawContext extends Object
  • Field Details

    • context

      public final Gui context
  • Method Details

    • instance

      public static EmiDrawContext instance()
    • wrap

      public static EmiDrawContext wrap(DrawContext ctx)
    • raw

      public DrawContext raw()
    • matrices

      public MatrixStack matrices()
    • push

      public void push()
    • pop

      public void pop()
    • drawTexture

      public void drawTexture(ResourceLocation texture, int x, int y, int u, int v, int w, int h)
    • drawTexture

      public void drawTexture(ResourceLocation texture, int x, int y, int z, float u, float v, int w, int h)
    • drawTexture

      public void drawTexture(ResourceLocation texture, int x, int y, int z, float u, float v, int w, int h, int textureWidth, int textureHeight)
    • drawTexture

      public void drawTexture(ResourceLocation texture, int x, int y, int w, int h, float u, float v, int regionWidth, int regionHeight, int textureWidth, int textureHeight)
    • drawTexture

      public void drawTexture(ResourceLocation texture, int x, int y, int z, int w, int h, float u, float v, int rW, int rH, int textureWidth, int textureHeight)
    • fill

      public void fill(int x, int y, int w, int h, int color)
    • drawText

      public void drawText(Text text, int x, int y)
    • drawText

      public void drawText(Text text, int x, int y, int color)
    • drawText

      public void drawText(OrderedText text, int x, int y, int color)
    • drawTextWithShadow

      public void drawTextWithShadow(Text text, int x, int y)
    • drawTextWithShadow

      public void drawTextWithShadow(Text text, int x, int y, int color)
    • drawTextWithShadow

      public void drawTextWithShadow(OrderedText text, int x, int y, int color)
    • drawCenteredText

      public void drawCenteredText(Text text, int x, int y)
    • drawCenteredText

      public void drawCenteredText(Text text, int x, int y, int color)
    • drawCenteredTextWithShadow

      public void drawCenteredTextWithShadow(Text text, int x, int y)
    • drawCenteredTextWithShadow

      public void drawCenteredTextWithShadow(Text text, int x, int y, int color)
    • resetColor

      public void resetColor()
    • setColor

      public void setColor(float r, float g, float b)
    • setColor

      public void setColor(float r, float g, float b, float a)
    • drawStack

      public void drawStack(EmiIngredient stack, int x, int y)
    • drawStack

      public void drawStack(EmiIngredient stack, int x, int y, int flags)
    • drawStack

      public void drawStack(EmiIngredient stack, int x, int y, float delta, int flags)