refactor: reorganize packages and replace LPSchematic with WorldEdit

Restructure core modules into subpackages (generator, schematic, config, session, etc.); add .schem/.nbt schematic pipeline, commands, adaptive stats skeleton, and bootstrap wiring.
This commit is contained in:
loki5512344 2026-06-01 14:02:48 +02:00
parent 6ba6e5137d
commit fd0ba2cc0e
203 changed files with 5652 additions and 2367 deletions

View file

@ -0,0 +1,35 @@
package dev.loki.loparkour.schematic.registry;
import dev.loki.loparkour.LoParkour;
import dev.loki.loparkour.schematic.core.SchematicManager;
import dev.lolib.scheduler.Scheduler;
import java.io.File;
/**
* Ensures the schematics folder exists; structures are loaded by {@link SchematicManager}.
*/
public class Schematics {
private static final File FOLDER = LoParkour.getInFolder("schematics");
public static void init() {
Scheduler.get(LoParkour.getPlugin()).runAsync(() -> {
if (!FOLDER.exists()) {
FOLDER.mkdirs();
}
File[] files = FOLDER.listFiles((dir, name) -> {
String lower = name.toLowerCase();
return lower.endsWith(".nbt") || lower.endsWith(".schem") || lower.endsWith(".schematic");
});
if (files == null || files.length == 0) {
LoParkour.log("No .nbt / .schem files in " + FOLDER.getAbsolutePath());
return;
}
LoParkour.log("Found " + files.length + " schematic file(s) in schematics/");
});
}
}