Class UIUtils

java.lang.Object
foundry.veil.api.client.util.UIUtils

public class UIUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    drawGradientRect(org.joml.Matrix4f mat, int zLevel, int left, int top, int right, int bottom, int startColor, int endColor)
     
    static void
    drawHoverText(Tooltippable tooltippable, float pticks, net.minecraft.world.item.ItemStack stack, com.mojang.blaze3d.vertex.PoseStack pStack, List<? extends net.minecraft.network.chat.FormattedText> textLines, int mouseX, int mouseY, int screenWidth, int screenHeight, int maxTextWidth, int backgroundColor, int borderColorStart, int borderColorEnd, net.minecraft.client.gui.Font font, int tooltipTextWidthBonus, int tooltipTextHeightBonus, List<VeilUIItemTooltipDataHolder> items, int desiredX, int desiredY)
     
    static void
    drawTexturedRect(org.joml.Matrix4f mat, int zLevel, float x, float y, float width, float height, float u, float v, float uWidth, float vHeight, int textureWidth, int textureHeight, net.minecraft.resources.ResourceLocation texture)
     
    static List<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent>
    gatherTooltipComponents(net.minecraft.world.item.ItemStack stack, List<? extends net.minecraft.network.chat.FormattedText> textElements, Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, @Nullable net.minecraft.client.gui.Font forcedFont, net.minecraft.client.gui.Font fallbackFont)
     
    static void
    renderAndDecorateItem(net.minecraft.world.item.ItemStack $$0, float $$1, float $$2)
     
    static void
    renderGuiItem(net.minecraft.world.item.ItemStack stack, float x, float y, net.minecraft.client.resources.model.BakedModel bakedModel)
     
    static void
    tryRenderGuiItem(@Nullable net.minecraft.world.entity.LivingEntity $$0, net.minecraft.world.item.ItemStack $$1, float $$2, float $$3, int $$4)
     
    static void
    tryRenderGuiItem(net.minecraft.world.entity.LivingEntity $$0, net.minecraft.world.item.ItemStack $$1, float $$2, float $$3, int $$4, float $$5)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UIUtils

      public UIUtils()
  • Method Details

    • drawHoverText

      public static void drawHoverText(Tooltippable tooltippable, float pticks, net.minecraft.world.item.ItemStack stack, com.mojang.blaze3d.vertex.PoseStack pStack, List<? extends net.minecraft.network.chat.FormattedText> textLines, int mouseX, int mouseY, int screenWidth, int screenHeight, int maxTextWidth, int backgroundColor, int borderColorStart, int borderColorEnd, net.minecraft.client.gui.Font font, int tooltipTextWidthBonus, int tooltipTextHeightBonus, List<VeilUIItemTooltipDataHolder> items, int desiredX, int desiredY)
    • renderAndDecorateItem

      public static void renderAndDecorateItem(net.minecraft.world.item.ItemStack $$0, float $$1, float $$2)
    • tryRenderGuiItem

      public static void tryRenderGuiItem(@Nullable @Nullable net.minecraft.world.entity.LivingEntity $$0, net.minecraft.world.item.ItemStack $$1, float $$2, float $$3, int $$4)
    • gatherTooltipComponents

      public static List<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> gatherTooltipComponents(net.minecraft.world.item.ItemStack stack, List<? extends net.minecraft.network.chat.FormattedText> textElements, Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, @Nullable @Nullable net.minecraft.client.gui.Font forcedFont, net.minecraft.client.gui.Font fallbackFont)
    • drawGradientRect

      public static void drawGradientRect(org.joml.Matrix4f mat, int zLevel, int left, int top, int right, int bottom, int startColor, int endColor)
    • drawTexturedRect

      public static void drawTexturedRect(org.joml.Matrix4f mat, int zLevel, float x, float y, float width, float height, float u, float v, float uWidth, float vHeight, int textureWidth, int textureHeight, net.minecraft.resources.ResourceLocation texture)
    • tryRenderGuiItem

      public static void tryRenderGuiItem(net.minecraft.world.entity.LivingEntity $$0, net.minecraft.world.item.ItemStack $$1, float $$2, float $$3, int $$4, float $$5)
    • renderGuiItem

      public static void renderGuiItem(net.minecraft.world.item.ItemStack stack, float x, float y, net.minecraft.client.resources.model.BakedModel bakedModel)