Class WorldRenderMacros

java.lang.Object
com.ldtteam.blockui.UiRenderMacros
com.ldtteam.structurize.util.WorldRenderMacros

public class WorldRenderMacros extends com.ldtteam.blockui.UiRenderMacros
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class com.ldtteam.blockui.UiRenderMacros

    com.ldtteam.blockui.UiRenderMacros.ResolvedBlit
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.client.renderer.RenderType
     
    static final net.minecraft.client.renderer.RenderType
     
    static final net.minecraft.client.renderer.RenderType
     
    static final net.minecraft.client.renderer.RenderType
     
    static final net.minecraft.client.renderer.RenderType
     
    static final net.minecraft.client.renderer.RenderType
     

    Fields inherited from class com.ldtteam.blockui.UiRenderMacros

    HALF_BIAS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.client.renderer.MultiBufferSource.BufferSource
     
    static void
    populateCuboid(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, org.joml.Matrix4f m, com.mojang.blaze3d.vertex.VertexConsumer buf)
     
    static void
    populateRectangle(int x, int y, int z, int w, int h, int red, int green, int blue, int alpha, com.mojang.blaze3d.vertex.VertexConsumer buffer, org.joml.Matrix4f m)
     
    static void
    populateRenderLineBox(float minX, float minY, float minZ, float minX2, float minY2, float minZ2, float maxX, float maxY, float maxZ, float maxX2, float maxY2, float maxZ2, org.joml.Matrix4f m, com.mojang.blaze3d.vertex.VertexConsumer buf)
     
    static void
    putBufferAfter(net.minecraft.client.renderer.RenderType bufferType, net.minecraft.client.renderer.RenderType putAfter)
    Put type after the given buffer or if not found then at last position.
    static void
    putBufferBefore(net.minecraft.client.renderer.RenderType bufferType, net.minecraft.client.renderer.RenderType putBefore)
    Put type before the given buffer or if not found then at first position.
    static void
    putBufferHead(net.minecraft.client.renderer.RenderType bufferType)
    Put type at the first position.
    static void
    putBufferTail(net.minecraft.client.renderer.RenderType bufferType)
    Put type at the last position.
    static void
    renderBlackLineBox(net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, float lineWidth)
    Render a black box around two positions
    static void
    renderBox(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, int red, int green, int blue, int alpha)
     
    static void
    renderBox(net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, int argbColor)
     
    static void
    renderDebugText(net.minecraft.core.BlockPos pos, List<String> text, com.mojang.blaze3d.vertex.PoseStack matrixStack, boolean forceWhite, int mergeEveryXListElements, net.minecraft.client.renderer.MultiBufferSource buffer)
    Renders the given list of strings, 3 elements a row.
    static void
    renderFillRectangle(net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ps, int x, int y, int z, int w, int h, int argbColor)
     
    static void
    renderLineAABB(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.world.phys.AABB aabb, int argbColor, float lineWidth)
    Render a colored box around from aabb
    static void
    renderLineAABB(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.world.phys.AABB aabb, int red, int green, int blue, int alpha, float lineWidth)
    Render a colored box around from aabb
    static void
    renderLineBox(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int red, int green, int blue, int alpha, float lineWidth)
    Render a box around two positions
    static void
    renderLineBox(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos pos, int argbColor, float lineWidth)
    Render a colored box around position
    static void
    renderLineBox(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, int argbColor, float lineWidth)
    Render a colored box around two positions
    static void
    renderLineBox(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, int red, int green, int blue, int alpha, float lineWidth)
    Render a box around two positions
    static void
    renderRedGlintLineBox(net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, float lineWidth)
    Render a red glint box around two positions
    static void
    renderWhiteLineBox(net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, float lineWidth)
    Render a white box around two positions

    Methods inherited from class com.ldtteam.blockui.UiRenderMacros

    blit, blit, blit, blit, blitRepeatable, blitRepeatable, blitSprite, blitSprite, drawEntity, drawLineRect, drawLineRect, drawLineRect, drawLineRectGradient, drawLineRectGradient, drawLineRectGradient, fill, fill, fillGradient, fillGradient, hLine, hLine, line, line, populateBlitTriangles, populateFillGradientTriangles, populateFillTriangles, resolveSprite, vLine, vLine

    Methods inherited from class java.lang.Object

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

    • LINES

      public static final net.minecraft.client.renderer.RenderType LINES
    • LINES_WITH_WIDTH

      public static final net.minecraft.client.renderer.RenderType LINES_WITH_WIDTH
    • GLINT_LINES

      public static final net.minecraft.client.renderer.RenderType GLINT_LINES
    • GLINT_LINES_WITH_WIDTH

      public static final net.minecraft.client.renderer.RenderType GLINT_LINES_WITH_WIDTH
    • COLORED_TRIANGLES

      public static final net.minecraft.client.renderer.RenderType COLORED_TRIANGLES
    • COLORED_TRIANGLES_NC_ND

      public static final net.minecraft.client.renderer.RenderType COLORED_TRIANGLES_NC_ND
  • Constructor Details

    • WorldRenderMacros

      public WorldRenderMacros()
  • Method Details

    • putBufferHead

      public static void putBufferHead(net.minecraft.client.renderer.RenderType bufferType)
      Put type at the first position.
      Parameters:
      bufferType - type to put in
    • putBufferTail

      public static void putBufferTail(net.minecraft.client.renderer.RenderType bufferType)
      Put type at the last position.
      Parameters:
      bufferType - type to put in
    • putBufferBefore

      public static void putBufferBefore(net.minecraft.client.renderer.RenderType bufferType, net.minecraft.client.renderer.RenderType putBefore)
      Put type before the given buffer or if not found then at first position.
      Parameters:
      bufferType - type to put in
      putBefore - search for type to put before
    • putBufferAfter

      public static void putBufferAfter(net.minecraft.client.renderer.RenderType bufferType, net.minecraft.client.renderer.RenderType putAfter)
      Put type after the given buffer or if not found then at last position.
      Parameters:
      bufferType - type to put in
      putAfter - search for type to put after
    • getBufferSource

      public static net.minecraft.client.renderer.MultiBufferSource.BufferSource getBufferSource()
    • renderBlackLineBox

      public static void renderBlackLineBox(net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, float lineWidth)
      Render a black box around two positions
      Parameters:
      posA - The first Position
      posB - The second Position
    • renderRedGlintLineBox

      public static void renderRedGlintLineBox(net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, float lineWidth)
      Render a red glint box around two positions
      Parameters:
      posA - The first Position
      posB - The second Position
    • renderWhiteLineBox

      public static void renderWhiteLineBox(net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, float lineWidth)
      Render a white box around two positions
      Parameters:
      posA - The first Position
      posB - The second Position
    • renderLineAABB

      public static void renderLineAABB(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.world.phys.AABB aabb, int argbColor, float lineWidth)
      Render a colored box around from aabb
      Parameters:
      aabb - the box
    • renderLineAABB

      public static void renderLineAABB(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.world.phys.AABB aabb, int red, int green, int blue, int alpha, float lineWidth)
      Render a colored box around from aabb
      Parameters:
      aabb - the box
    • renderLineBox

      public static void renderLineBox(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos pos, int argbColor, float lineWidth)
      Render a colored box around position
      Parameters:
      pos - The Position
    • renderLineBox

      public static void renderLineBox(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, int argbColor, float lineWidth)
      Render a colored box around two positions
      Parameters:
      posA - The first Position
      posB - The second Position
    • renderLineBox

      public static void renderLineBox(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, int red, int green, int blue, int alpha, float lineWidth)
      Render a box around two positions
      Parameters:
      posA - First position
      posB - Second position
    • renderLineBox

      public static void renderLineBox(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int red, int green, int blue, int alpha, float lineWidth)
      Render a box around two positions
      Parameters:
      posA - First position
      posB - Second position
    • populateRenderLineBox

      public static void populateRenderLineBox(float minX, float minY, float minZ, float minX2, float minY2, float minZ2, float maxX, float maxY, float maxZ, float maxX2, float maxY2, float maxZ2, org.joml.Matrix4f m, com.mojang.blaze3d.vertex.VertexConsumer buf)
    • renderBox

      public static void renderBox(net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, int argbColor)
    • renderBox

      public static void renderBox(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack ps, net.minecraft.core.BlockPos posA, net.minecraft.core.BlockPos posB, int red, int green, int blue, int alpha)
    • populateCuboid

      public static void populateCuboid(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, org.joml.Matrix4f m, com.mojang.blaze3d.vertex.VertexConsumer buf)
    • renderFillRectangle

      public static void renderFillRectangle(net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ps, int x, int y, int z, int w, int h, int argbColor)
    • populateRectangle

      public static void populateRectangle(int x, int y, int z, int w, int h, int red, int green, int blue, int alpha, com.mojang.blaze3d.vertex.VertexConsumer buffer, org.joml.Matrix4f m)
    • renderDebugText

      public static void renderDebugText(net.minecraft.core.BlockPos pos, List<String> text, com.mojang.blaze3d.vertex.PoseStack matrixStack, boolean forceWhite, int mergeEveryXListElements, net.minecraft.client.renderer.MultiBufferSource buffer)
      Renders the given list of strings, 3 elements a row.
      Parameters:
      pos - position to render at
      text - text list
      matrixStack - stack to use
      buffer - render buffer
      forceWhite - force white for no depth rendering
      mergeEveryXListElements - merge every X elements of text list using a tostring call