Update VariantSelector and implement Database Folder for Schematics

This commit is contained in:
2026-09-07 11:42:22 +02:00
parent 818a437ee0
commit a6d77256a9
13 changed files with 146 additions and 85 deletions
@@ -39,7 +39,7 @@ public class DynamicRegionVisualizer implements SWPlayer.Component {
private final REntityServer entityServer = new REntityServer();
private DynamicRegionVisualizer() {
RTextDisplay text = new RTextDisplay(entityServer, new Location(null, 0.5, 1.1, 0.5));
RTextDisplay text = new RTextDisplay(entityServer, new Location(null, 0.5, 51.1, 0.5));
text.setText("Spawn");
text.setBillboard(Display.Billboard.VERTICAL);
text.setBackgroundColor(0);
@@ -73,7 +73,7 @@ public class DynamicRegionVisualizer implements SWPlayer.Component {
public static Point toVisualization(Location worldLocation) {
Tile tile = Tile.fromLocation(worldLocation).orElseThrow();
return new Point(tile.getTileX(), 0, tile.getTileZ());
return new Point(tile.getTileX(), 50, tile.getTileZ());
}
private static class CRegion extends CEntity {
@@ -96,7 +96,7 @@ public class DynamicRegionVisualizer implements SWPlayer.Component {
area.setPos1And2(point.toLocation((World) null).add(0, 1 - CArea.DEFAULT_WIDTH, 0), point.toLocation((World) null).add(widthX - 1, 1 - CArea.DEFAULT_WIDTH, widthZ - 1));
entities.add(area);
RTextDisplay text = new RTextDisplay(server, point.toLocation((World) null).add(widthX / 2.0, 1.1, widthZ / 2.0));
RTextDisplay text = new RTextDisplay(server, point.toLocation((World) null).add(widthX / 2.0, 51.1, widthZ / 2.0));
text.setText(data.name());
text.setBillboard(Display.Billboard.VERTICAL);
text.setBackgroundColor(0);