Package schrumbo.schrumbohud.Utils
Klasse RenderUtils
java.lang.Object
schrumbo.schrumbohud.Utils.RenderUtils
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voiddrawBorder(net.minecraft.client.gui.DrawContext context, int x, int y, int width, int height, int color) static voiddrawOutlineWithCutCorners(net.minecraft.client.gui.DrawContext context, int x, int y, int width, int height, int thickness, int color) static voiddrawRectWithCutCorners(net.minecraft.client.gui.DrawContext context, int x, int y, int width, int height, int thickness, int color) private static voiddrawRoundedCornerOutline(net.minecraft.client.gui.DrawContext context, int x, int y, int radius, int thickness, int color, int corner) Draws a rounded corner outlinestatic voiddrawRoundedRectWithOutline(net.minecraft.client.gui.DrawContext context, int x, int y, int width, int height, float radius, int thickness, int color) private static voidfillRoundedCorner(net.minecraft.client.gui.DrawContext context, int x, int y, int radius, int color, int corner) Fills a rounded cornerstatic voidfillRoundedRect(net.minecraft.client.gui.DrawContext context, int x, int y, int width, int height, float radius, int color)
-
Konstruktordetails
-
RenderUtils
public RenderUtils()
-
-
Methodendetails
-
fillRoundedRect
public static void fillRoundedRect(net.minecraft.client.gui.DrawContext context, int x, int y, int width, int height, float radius, int color) -
drawRoundedRectWithOutline
public static void drawRoundedRectWithOutline(net.minecraft.client.gui.DrawContext context, int x, int y, int width, int height, float radius, int thickness, int color) -
fillRoundedCorner
private static void fillRoundedCorner(net.minecraft.client.gui.DrawContext context, int x, int y, int radius, int color, int corner) Fills a rounded corner- Parameter:
corner- 1=topleft 2=topright 3=bottomright 4=bottomleft
-
drawRoundedCornerOutline
private static void drawRoundedCornerOutline(net.minecraft.client.gui.DrawContext context, int x, int y, int radius, int thickness, int color, int corner) Draws a rounded corner outline- Parameter:
corner- 1=topleft 2=topright 3=bottomright 4=bottomleft
-
drawRectWithCutCorners
public static void drawRectWithCutCorners(net.minecraft.client.gui.DrawContext context, int x, int y, int width, int height, int thickness, int color) -
drawOutlineWithCutCorners
public static void drawOutlineWithCutCorners(net.minecraft.client.gui.DrawContext context, int x, int y, int width, int height, int thickness, int color) -
drawBorder
public static void drawBorder(net.minecraft.client.gui.DrawContext context, int x, int y, int width, int height, int color)
-