Package emi.dev.emi.emi.runtime
Class EmiDrawContext
java.lang.Object
emi.dev.emi.emi.runtime.EmiDrawContext
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawCenteredText(Text text, int x, int y) voiddrawCenteredText(Text text, int x, int y, int color) voiddrawCenteredTextWithShadow(Text text, int x, int y) voiddrawCenteredTextWithShadow(Text text, int x, int y, int color) voiddrawStack(EmiIngredient stack, int x, int y) voiddrawStack(EmiIngredient stack, int x, int y, float delta, int flags) voiddrawStack(EmiIngredient stack, int x, int y, int flags) voiddrawText(OrderedText text, int x, int y, int color) voidvoidvoiddrawTexture(ResourceLocation texture, int x, int y, int z, float u, float v, int w, int h) voiddrawTexture(ResourceLocation texture, int x, int y, int z, float u, float v, int w, int h, int textureWidth, int textureHeight) voiddrawTexture(ResourceLocation texture, int x, int y, int w, int h, float u, float v, int regionWidth, int regionHeight, int textureWidth, int textureHeight) voiddrawTexture(ResourceLocation texture, int x, int y, int z, int w, int h, float u, float v, int rW, int rH, int textureWidth, int textureHeight) voiddrawTexture(ResourceLocation texture, int x, int y, int u, int v, int w, int h) voiddrawTextWithShadow(OrderedText text, int x, int y, int color) voiddrawTextWithShadow(Text text, int x, int y) voiddrawTextWithShadow(Text text, int x, int y, int color) voidfill(int x, int y, int w, int h, int color) static EmiDrawContextinstance()matrices()voidpop()voidpush()raw()voidvoidsetColor(float r, float g, float b) voidsetColor(float r, float g, float b, float a) static EmiDrawContextwrap(DrawContext ctx)
-
Field Details
-
context
-
-
Method Details
-
instance
-
wrap
-
raw
-
matrices
-
push
public void push() -
pop
public void pop() -
drawTexture
-
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
-
drawText
-
drawText
-
drawTextWithShadow
-
drawTextWithShadow
-
drawTextWithShadow
-
drawCenteredText
-
drawCenteredText
-
drawCenteredTextWithShadow
-
drawCenteredTextWithShadow
-
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
-
drawStack
-
drawStack
-