DrawHelper
Talks about DrawHelper class
DrawHelper
Constructors
DrawHelper(MinecraftClient client, VertexConsumerProvider.Immediate vertexConsumers)
DrawHelper(MinecraftClient client, VertexConsumerProvider.Immediate vertexConsumers)Parameter
Description
Methods
drawBox(DrawContext drawContext, int x, int y, int width, int height, int color)
drawBox(DrawContext drawContext, int x, int y, int width, int height, int color)Parameter
Description
fill(DrawContext drawContext, int x1, int y1, int x2, int y2, int color)
fill(DrawContext drawContext, int x1, int y1, int x2, int y2, int color)Parameter
Description
drawText(DrawContext drawContext, TextRenderer textRenderer, String text, int x, int y, int color, boolean shadow)
drawText(DrawContext drawContext, TextRenderer textRenderer, String text, int x, int y, int color, boolean shadow)Parameter
Description
fillRoundedRect(Matrix4f matrix4f, int x1, int y1, int x2, int y2, int cornerRadius, int color)
fillRoundedRect(Matrix4f matrix4f, int x1, int y1, int x2, int y2, int cornerRadius, int color)Parameter
Description
fillRoundedRect(DrawContext drawContext, int left, int top, int right, int bottom, int color)
fillRoundedRect(DrawContext drawContext, int left, int top, int right, int bottom, int color)Parameter
Description
fillGradient(Matrix4f matrix4f, int x1, int y1, int x2, int y2, int topColor, int bottomColor)
fillGradient(Matrix4f matrix4f, int x1, int y1, int x2, int y2, int topColor, int bottomColor)Parameter
Description
drawOutlinedBox(DrawContext drawContext, int x1, int y1, int x2, int y2, int color)
drawOutlinedBox(DrawContext drawContext, int x1, int y1, int x2, int y2, int color)Parameter
Description