Class DrawingUtils

java.lang.Object
com.binaris.wizardry.api.content.util.DrawingUtils

public class DrawingUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     
    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)
     
    static void
    drawTexturedFlippedRect(float x, float y, int u, int v, int width, int height, int textureWidth, int textureHeight, boolean flipX, boolean flipY)
     
    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)
     
    static void
    drawTexturedRect(float x, float y, int width, int height)
     
    static void
    drawTexturedRect(float x, float y, int u, int v, int width, int height, int textureWidth, int textureHeight)
     
    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)
     
    static int
    makeTranslucent(int colour, float opacity)
     
    static int
    mix(int colour1, int colour2, float proportion)
     
    static float
    smoothScaleFactor(int lifetime, int ticksExisted, float partialTicks, int startLength, int endLength)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)