Package com.ldtteam.structurize.util
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 ClassesNested classes/interfaces inherited from class com.ldtteam.blockui.UiRenderMacros
com.ldtteam.blockui.UiRenderMacros.ResolvedBlit -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.client.renderer.RenderTypestatic final net.minecraft.client.renderer.RenderTypestatic final net.minecraft.client.renderer.RenderTypestatic final net.minecraft.client.renderer.RenderTypestatic final net.minecraft.client.renderer.RenderTypestatic final net.minecraft.client.renderer.RenderTypeFields inherited from class com.ldtteam.blockui.UiRenderMacros
HALF_BIAS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.client.renderer.MultiBufferSource.BufferSourcestatic voidpopulateCuboid(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, org.joml.Matrix4f m, com.mojang.blaze3d.vertex.VertexConsumer buf) static voidpopulateRectangle(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 voidpopulateRenderLineBox(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 voidputBufferAfter(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 voidputBufferBefore(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 voidputBufferHead(net.minecraft.client.renderer.RenderType bufferType) Put type at the first position.static voidputBufferTail(net.minecraft.client.renderer.RenderType bufferType) Put type at the last position.static voidrenderBlackLineBox(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 positionsstatic voidrenderBox(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 voidrenderBox(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 voidrenderDebugText(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 voidrenderFillRectangle(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 voidrenderLineAABB(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 aabbstatic voidrenderLineAABB(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 aabbstatic voidrenderLineBox(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 positionsstatic voidrenderLineBox(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 positionstatic voidrenderLineBox(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 positionsstatic voidrenderLineBox(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 positionsstatic voidrenderRedGlintLineBox(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 positionsstatic voidrenderWhiteLineBox(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 positionsMethods 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
-
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 inputBefore- 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 inputAfter- 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 PositionposB- 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 PositionposB- 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 PositionposB- 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 PositionposB- 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 positionposB- 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 positionposB- 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 attext- text listmatrixStack- stack to usebuffer- render bufferforceWhite- force white for no depth renderingmergeEveryXListElements- merge every X elements of text list using a tostring call
-