WorldEditCompatibility

public final class WorldEditCompatibility

Tells admins, loudly, when WorldEdit itself is what stops BetterStructures from working.

WorldEdit ships one adapter per Minecraft version, and that adapter (block state conversion, Mojang's data fixers, NBT) is the part that breaks when a WorldEdit build does not match the server or has a version-specific bug. Those failures surface as BetterStructures errors, so admins report them here even though only a WorldEdit update can fix them. A failure is blamed on WorldEdit only when the evidence says so: it started inside WorldEdit's version adapter, or it is a linkage error thrown by WorldEdit code. A damaged schematic fails in WorldEdit's file readers instead and keeps the ordinary message.

Types

Link copied to clipboard
public final class Fault extends Record
One schematic that WorldEdit failed to read.

Functions

Link copied to clipboard
public static String chatWarning()
Link copied to clipboard
public static void checkAdapterOnStartup()
Warns once at startup when WorldEdit found no adapter for this Minecraft version.
Link copied to clipboard
Link copied to clipboard
public static boolean report(Throwable failure, File schematic)
Logs the WorldEdit warning if WorldEdit caused this schematic failure.
Link copied to clipboard
public static void reset()
Forgets earlier failures.