Class DrawingUtils
java.lang.Object
com.binaris.wizardry.api.content.util.DrawingUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawGlitchRect(Random random, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, boolean flipX, boolean flipY) static voiddrawScaledStringToWidth(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, float x, float y, float scale, int colour, float width, boolean centre, boolean alignR) static voiddrawScaledTranslucentString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, float x, float y, float scale, int colour) static voiddrawTexturedFlippedRect(float x, float y, int u, int v, int width, int height, int textureWidth, int textureHeight, boolean flipX, boolean flipY) static voiddrawTexturedFlippedRectF(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float u, float v, float width, float height, float textureWidth, float textureHeight, boolean flipX, boolean flipY) static voiddrawTexturedRect(float x, float y, int width, int height) static voiddrawTexturedRect(float x, float y, int u, int v, int width, int height, int textureWidth, int textureHeight) static voiddrawTexturedRectF(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float u, float v, float width, float height, float textureWidth, float textureHeight) static intmakeTranslucent(int colour, float opacity) static intmix(int colour1, int colour2, float proportion) static floatsmoothScaleFactor(int lifetime, int ticksExisted, float partialTicks, int startLength, int endLength)
-
Constructor Details
-
DrawingUtils
public DrawingUtils()
-
-
Method Details
-
drawTexturedRectF
public static void drawTexturedRectF(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float u, float v, float width, float height, float textureWidth, float textureHeight) -
drawTexturedFlippedRectF
public static void drawTexturedFlippedRectF(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float u, float v, float width, float height, float textureWidth, float textureHeight, boolean flipX, boolean flipY) -
smoothScaleFactor
public static float smoothScaleFactor(int lifetime, int ticksExisted, float partialTicks, int startLength, int endLength) -
mix
public static int mix(int colour1, int colour2, float proportion) -
drawGlitchRect
public static void drawGlitchRect(Random random, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, boolean flipX, boolean flipY) -
drawTexturedFlippedRect
public static void drawTexturedFlippedRect(float x, float y, int u, int v, int width, int height, int textureWidth, int textureHeight, boolean flipX, boolean flipY) -
drawTexturedRect
public static void drawTexturedRect(float x, float y, int width, int height) -
drawTexturedRect
public static void drawTexturedRect(float x, float y, int u, int v, int width, int height, int textureWidth, int textureHeight) -
makeTranslucent
public static int makeTranslucent(int colour, float opacity) -
drawScaledStringToWidth
public static void drawScaledStringToWidth(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, float x, float y, float scale, int colour, float width, boolean centre, boolean alignR) -
drawScaledTranslucentString
public static void drawScaledTranslucentString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, float x, float y, float scale, int colour)
-