1919import dev .xpple .seedmapper .config .Configs ;
2020import dev .xpple .seedmapper .feature .OreTypes ;
2121import dev .xpple .seedmapper .render .RenderManager ;
22+ import dev .xpple .seedmapper .render .esp .EspStyle ;
2223import dev .xpple .seedmapper .util .ComponentUtils ;
2324import dev .xpple .seedmapper .util .SpiralLoop ;
2425import net .fabricmc .fabric .api .client .command .v2 .FabricClientCommandSource ;
@@ -169,7 +170,7 @@ private static int highlightBlock(CustomClientCommandSource source, Pair<Integer
169170 .toList ();
170171 count [0 ] += blockOres .size ();
171172 source .getClient ().schedule (() -> {
172- RenderManager .drawBoxes (blockOres , colour );
173+ RenderManager .drawBoxes (blockOres , Configs . BlockHighlightESP , colour );
173174 source .sendFeedback (Component .translatable ("command.highlight.block.chunkSuccess" , accent (String .valueOf (blockOres .size ())), ComponentUtils .formatXZ (chunkX , chunkZ )));
174175 });
175176
@@ -229,7 +230,7 @@ private static int highlightOreVein(CustomClientCommandSource source, int chunkR
229230 }
230231 count [0 ] += positions .size ();
231232 int colour = BLOCKS .values ().stream ().filter (pair -> Objects .equals (block , pair .getFirst ())).findAny ().orElseThrow ().getSecond ();
232- RenderManager .drawBoxes (positions , colour );
233+ RenderManager .drawBoxes (positions , Configs . OreVeinESP , colour );
233234 if (block == Cubiomes .RAW_COPPER_BLOCK () || block == Cubiomes .RAW_IRON_BLOCK ()) {
234235 source .getClient ().schedule (() -> source .sendFeedback (Component .translatable ("command.highlight.oreVein.rawBlocks" , ComponentUtils .formatXYZCollection (positions ))));
235236 }
@@ -279,7 +280,7 @@ private static int highlightTerrain(CustomClientCommandSource source, int chunkR
279280 }
280281 return false ;
281282 });
282- RenderManager .drawBoxes (blocks , 0xFF_FF0000 );
283+ RenderManager .drawBoxes (blocks , Configs . TerrainESP , 0xFF_FF0000 );
283284 return blocks .size ();
284285 }
285286 }
@@ -302,7 +303,7 @@ private static int highlightCanyon(CustomClientCommandSource source, int canyonC
302303 throw CommandExceptions .INVALID_DIMENSION_EXCEPTION .create ();
303304 }
304305 var biomeFunction = LocateCommand .getCarverBiomeFunction (arena , seed , dimension , version );
305- return highlightCarver (source , chunkRange , (chunkX , chunkZ ) -> {
306+ return highlightCarver (source , chunkRange , Configs . CanyonESP , (chunkX , chunkZ ) -> {
306307 int biome = biomeFunction .applyAsInt (chunkX , chunkZ );
307308 if (Cubiomes .isViableCanyonBiome (canyonCarver , biome ) == 0 ) {
308309 return null ;
@@ -330,7 +331,7 @@ private static int highlightCave(CustomClientCommandSource source, int caveCarve
330331 throw CommandExceptions .INVALID_DIMENSION_EXCEPTION .create ();
331332 }
332333 var biomeFunction = LocateCommand .getCarverBiomeFunction (arena , seed , dimension , version );
333- return highlightCarver (source , chunkRange , (chunkX , chunkZ ) -> {
334+ return highlightCarver (source , chunkRange , Configs . CaveESP , (chunkX , chunkZ ) -> {
334335 int biome = biomeFunction .applyAsInt (chunkX , chunkZ );
335336 if (Cubiomes .isViableCaveBiome (caveCarver , biome ) == 0 ) {
336337 return null ;
@@ -340,7 +341,7 @@ private static int highlightCave(CustomClientCommandSource source, int caveCarve
340341 }
341342 }
342343
343- private static int highlightCarver (CustomClientCommandSource source , int chunkRange , BiFunction <Integer , Integer , @ Nullable MemorySegment > carverFunction ) {
344+ private static int highlightCarver (CustomClientCommandSource source , int chunkRange , EspStyle style , BiFunction <Integer , Integer , @ Nullable MemorySegment > carverFunction ) {
344345 ChunkPos center = new ChunkPos (BlockPos .containing (source .getPosition ()));
345346 Set <BlockPos > blocks = new HashSet <>();
346347 SpiralLoop .spiral (center .x , center .z , chunkRange , (chunkX , chunkZ ) -> {
@@ -357,7 +358,7 @@ private static int highlightCarver(CustomClientCommandSource source, int chunkRa
357358
358359 return false ;
359360 });
360- RenderManager .drawBoxes (blocks , 0xFF_FF0000 );
361+ RenderManager .drawBoxes (blocks , style , 0xFF_FF0000 );
361362 source .getClient ().schedule (() -> source .sendFeedback (Component .translatable ("command.highlight.carver.success" , accent (String .valueOf (blocks .size ())))));
362363 return blocks .size ();
363364 }
0 commit comments