From e2526d88ae73e61b9f76b4d3baf0f218fd2b2d5f Mon Sep 17 00:00:00 2001 From: i509VCB Date: Thu, 11 Jun 2020 03:35:50 -0700 Subject: [PATCH] Document drawBox methods (#1455) --- .../client/render/WorldRenderer.mapping | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/mappings/net/minecraft/client/render/WorldRenderer.mapping b/mappings/net/minecraft/client/render/WorldRenderer.mapping index 4a791c16c8..9066e001df 100644 --- a/mappings/net/minecraft/client/render/WorldRenderer.mapping +++ b/mappings/net/minecraft/client/render/WorldRenderer.mapping @@ -110,7 +110,9 @@ CLASS net/minecraft/class_761 net/minecraft/client/render/WorldRenderer METHOD method_22979 checkEmpty (Lnet/minecraft/class_4587;)V ARG 1 matrices METHOD method_22980 drawBox (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;DDDDDDFFFF)V - METHOD method_22981 drawBox (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;DDDDDDFFFFFFF)V + COMMENT Draws a box spanning from [x1,y1,z1] to [x2,y2,z2]. + COMMENT + COMMENT

Note the coordinates the box spans are relative to current translation of the matrices. ARG 0 matrices ARG 1 vertexConsumer ARG 2 x1 @@ -120,10 +122,40 @@ CLASS net/minecraft/class_761 net/minecraft/client/render/WorldRenderer ARG 10 y2 ARG 12 z2 ARG 14 red + ARG 15 green + ARG 16 blue ARG 17 alpha - ARG 19 green - ARG 20 blue + METHOD method_22981 drawBox (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;DDDDDDFFFFFFF)V + COMMENT Draws a box spanning from [x1,y1,z1] to [x2,y2,z2]. + COMMENT The 3 axes centered at [x1,y1,z1] may be colored differently using xAxisRed, yAxisGreen, and zAxisBlue. + COMMENT + COMMENT

Note the coordinates the box spans are relative to current translation of the matrices. + ARG 0 matrices + ARG 1 vertexConsumer + ARG 2 x1 + ARG 4 y1 + ARG 6 z1 + ARG 8 x2 + ARG 10 y2 + ARG 12 z2 + ARG 14 red + ARG 15 green + ARG 16 blue + ARG 17 alpha + ARG 18 xAxisRed + ARG 19 yAxisGreen + ARG 20 zAxisBlue METHOD method_22982 drawBox (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;Lnet/minecraft/class_238;FFFF)V + COMMENT Draws a box. + COMMENT + COMMENT

Note the coordinates the box spans are relative to current translation of the matrices. + ARG 0 matrices + ARG 1 vertexConsumer + ARG 2 box + ARG 3 red + ARG 4 green + ARG 5 blue + ARG 6 alpha METHOD method_22987 removeBlockBreakingInfo (Lnet/minecraft/class_3191;)V METHOD method_22989 renderChunkDebugInfo (Lnet/minecraft/class_4184;)V ARG 1 camera