1111
1212public interface DrawFeatureFactory {
1313
14+ /**
15+ * Refreshed on MC render thread
16+ * Single color across all highlights
17+ * Color function is called each frame
18+ */
1419 static DrawFeature chunkHighlights (
1520 String id ,
1621 DirectChunkHighlightSupplier chunkHighlightSupplier ,
@@ -28,6 +33,11 @@ static DrawFeature chunkHighlights(
2833 );
2934 }
3035
36+ /**
37+ * Refreshed on MC render thread
38+ * Color function per-chunk
39+ * Color function is called only on refresh
40+ */
3141 static DrawFeature multiColorChunkHighlights (
3242 String id ,
3343 DirectChunkHighlightSupplier chunkHighlightSupplier ,
@@ -45,6 +55,11 @@ static DrawFeature multiColorChunkHighlights(
4555 );
4656 }
4757
58+ /**
59+ * Refreshed async, not on the MC render thread
60+ * Single color across all highlights
61+ * Color function is called each frame
62+ */
4863 static DrawFeature asyncChunkHighlights (
4964 String id ,
5065 AsyncChunkHighlightSupplier chunkHighlightSupplier ,
@@ -60,6 +75,11 @@ static DrawFeature asyncChunkHighlights(
6075 );
6176 }
6277
78+ /**
79+ * Refreshed async, not on the MC render thread
80+ * Color function per-chunk
81+ * Color function is called only on refresh
82+ */
6383 static DrawFeature multiColorAsyncChunkHighlights (
6484 String id ,
6585 AsyncChunkHighlightSupplier chunkHighlightSupplier ,
@@ -75,6 +95,11 @@ static DrawFeature multiColorAsyncChunkHighlights(
7595 );
7696 }
7797
98+ /**
99+ * Refreshed on MC render thread
100+ * Single color across all lines
101+ * Color function is called each frame
102+ */
78103 static DrawFeature lines (
79104 String id ,
80105 LineSupplier lineSupplier ,
@@ -93,6 +118,11 @@ static DrawFeature lines(
93118 );
94119 }
95120
121+ /**
122+ * Refreshed on MC render thread
123+ * Color function per-line
124+ * Color function is called only on refresh
125+ */
96126 static DrawFeature multiColorLines (
97127 String id ,
98128 MultiColorLineSupplier lineSupplier ,
@@ -111,6 +141,9 @@ static DrawFeature multiColorLines(
111141 );
112142 }
113143
144+ /**
145+ * Refreshed every frame on MC render thread
146+ */
114147 static DrawFeature text (
115148 String id ,
116149 TextSupplier textSupplier
@@ -121,7 +154,10 @@ static DrawFeature text(
121154 );
122155 }
123156
124- static DrawFeature text (
157+ /**
158+ * Refreshed async, not on the MC render thread
159+ */
160+ static DrawFeature asyncText (
125161 String id ,
126162 TextSupplier textSupplier ,
127163 int refreshIntervalMs
0 commit comments