Repository navigation
In Server Conformance
What this page covers: ECoreConformance - the plugin that runs the core's conformance suites
inside a real server, and the driver that runs it across the whole server matrix. It is this
repository's own check-up: it is never shipped with the core and no published artifact carries it.
The unit suite proves the core against doubles. Some questions only a live server answers: does a tag
written on an item survive on 1.7.10, does a GUI window open with the size the client expects, does a
placeholder resolve through a real PlaceholderAPI, which platform did the core detect. ECoreConformance
asks those questions where they happen.
conformance/
common/ :conformance:common the contract: suites, cases, verdicts, the runner, the
ENCTEST marker writer and the NDJSON report - no Bukkit
minecraft/ :conformance:minecraft the Bukkit plugin ECoreConformance (/ecoreconformance, /ecc)
hytale/ :conformance:hytale the Hytale plugin EverNife:ECoreConformance (/ecc), Java 25
scripts/ conformance-matrix.py the matrix driver (stdlib Python) and its offline test
./gradlew :conformance:minecraft:shadowJar # conformance/minecraft/build/libs/ECoreConformance-3.0.1.jar
./gradlew :conformance:hytale:shadowJar # conformance/hytale/build/libs/ECoreConformance-3.0.1-Hytale.jar
./gradlew :conformance:common:test :conformance:minecraft:test :conformance:hytale:testThe plugin is an ECBukkitPlugin with depend: [EverNifeCore]; its commands go through the core's own
@FinalCMD framework. Its jar carries the same relocations as the deployable core (one
applyCoreRelocations in the root build file) and the three *Conformance classes of
evernifecore-common-tests (without JUnit). checkLinkage scans the module like the rest of
:minecraft, so a suite that calls an API a supported server lacks fails the build unless the call is
guarded by version and allowlisted.
The Hytale plugin is a JavaPlugin whose manifest.json depends on EverNife:EverNifeCore; it reuses
:conformance:common (suites, runner, markers, NDJSON) and goes through the same @FinalCMD framework.
The default build never needs the test framework that drives the matrix: the modules depend only on the core.
Drop EverNifeCore-3.0.1.jar and ECoreConformance-3.0.1.jar into plugins/, start the server, then:
| command | what it does |
|---|---|
/ecc list |
the suites, in the order run all takes them |
/ecc run <suite|all> [--player <p>] [--cid <id>] |
runs the suites' main cases |
/ecc write <suite|all> ... / /ecc read <suite|all> ...
|
the halves that must survive a restart (nbt, playerdata): write, restart, read |
/ecc gui <screen> <player> |
opens one sample screen and leaves it open, for a client to look at |
/ecc click <player> |
hands the player the selection wand and arms the recorder for one block click |
/ecc text <player> |
sends the text-metrics lines, for a client to read back what it drew |
Cases that need a player are SKIPPED without --player, and a skipped case never fails a suite.
--cid tags every marker of the run (one is minted when omitted).
| suite | what it checks |
|---|---|
items |
the selection wand, an item tag line and setUnbreakable survive on the real server |
nbt |
FCNBTUtil end to end - text, items, entities, players, tile entities, block and chunk data, files; write/read across a restart |
platform |
PlatformConformance, ECEventConformance (the region events) and EconomyConformance against the registered platform |
version |
detected version, server software, the NMS revision with the two strings it was resolved from, world height, action bar, PlaceholderAPI detection |
commands |
registration, dispatch and tab-complete on the real command map, registering twice, /list owned by the core |
gui |
11 screens: open, window type and size, title, close seen once as PLAYER_CLOSED
|
scheduler |
main-thread hand-off from async, next tick and sync runs never inline |
playerdata |
a PDSection written before a restart reads back after it (write/read only) |
events |
an ECEvent reaches the bus and the Bukkit @EventHandler once; Forge detection matches the server |
selection-click |
a real block click of the wand reaches the selection listener |
particles |
the outline renderer draws every style |
text-metrics |
glyph widths, chat-line width and centering; /ecc text lets a client read the lines back |
hooks |
PlaceholderAPI present/absent, and the economy provider without Vault |
regions |
the core's flags registered, a plugin's own event source followed by need both ways, a denied break, a bot found inside a region that starts denying entry (expelFoundInside) sent to its fixed point, flag settings across a restart (write/read) |
nms |
the embedded ECNmsUtils bridge: item registry names both ways, localized name, handle, tool and armor slots, entity and world round trips, fake player, the item dictionary in the revision's own names (logWood up to 1.12.2, minecraft:logs after) |
Drop EverNifeCore-3.0.1-Hytale.jar and ECoreConformance-3.0.1-Hytale.jar into mods/, start the
server, then ecc list and ecc run <suite|all> [--player <p>] [--cid <id>] from the console. There
is no write/read half, no GUI and no client: the cases fire the game's own ECS events themselves
(store.invoke(ref, event)), with the player found by name.
| suite | what it checks |
|---|---|
platform |
the core detected HYTALE; the region SPIs (wand, outline) are the real ones; the region Systems take a second register as a no-op |
regions |
a source followed by need (no region: the System decides nothing; with one: inside cancelled, outside not); a break by an NPC denied inside; an explosion keeping the inside of deny-block-break; deny-entry reverted with its deny-message; a player found inside a region that starts denying entry (expelFoundInside) sent to its fixed point; the wand closing a shape; a denied spawn that never ticks; one deny-message for a run of hits; the outline sent |
cost |
median server tick with the move System needed, and the client-prediction measurement (native rule volumes against the core's own path, 100 regions) |
Every case comes out three ways.
A human line in the server log:
[ECoreConformance] nbt/item-pdc REFUSED expected=true since=1.14 ...
[ECoreConformance] nbt summary 12/12 (0 skipped) on 1.7.10 ...
An ENCTEST marker - one flat JSON object per line, the protocol a test harness reads off the log:
ENCTEST {"v":1,"e":"suite_start","t":<ms>,"cid":"<cid>","runId":"<r>","suite":"ecore-items","total":3}
ENCTEST {"v":1,"e":"test_result","t":<ms>,"cid":"<cid>","runId":"<r>","suite":"ecore-items","test":"wand","ok":true,"durationMs":1,"error":null}
ENCTEST {"v":1,"e":"suite_end","t":<ms>,"cid":"<cid>","runId":"<r>","suite":"ecore-items","passed":3,"failed":0,"skipped":0,"durationMs":49,"report":"reports/<r>.ndjson"}
And the same events in plugins/ECoreConformance/reports/<runId>.ndjson, one per line, suite_end last.
The verdicts: PASS, FAIL, REFUSED and SKIPPED. A REFUSED is a call the server turned down; it
is ok only when the refusal was expected. Version-dependent cases go through Verdict.since(...),
which writes expected=<is a refusal expected here> since=<version> into the detail and turns a call
that quietly succeeds below its version into a FAIL - the version table is wrong then. A case that
throws is a FAIL naming the exception. A SKIPPED case emits no test_result; it is counted in
suite_end.skipped.
public final class MySuite implements ConformanceSuite {
@Override
public String getId() {
return "my"; // bare id; markers say "ecore-my"
}
@Override
public List<ConformanceCase> getCases(ConformanceContext ctx) {
return Arrays.asList(
ConformanceCase.of("answers-now", () -> Verdict.of(somethingHolds(), "detail")),
ConformanceCase.later("answers-next-tick", () -> futureVerdictWithItsOwnTimeout()));
}
}Then one more entry in Suites.all() - the registry is a list, never a classpath scan. Rules that keep
the suite honest:
-
getId()andgetCases(...)must not touch Bukkit: the registry is built in the headless command tests. Only the case bodies run against the server. - A case that answers on a later tick uses
ConformanceCase.laterand completes its own future, timeout included; the runner waits as long as it takes. - A version-dependent case uses
Verdict.since(...)with a*_SINCEconstant at the top of the suite. - A case that needs a player goes through
PlayerCases, which skips it when there is none. - Write/read pairs override
getWriteCases/getReadCases. - A failing case is a defect to explain - in the core, or in the suite's expectation, corrected with the value read on the server. Never loosen a case until it passes.
conformance/scripts/conformance-matrix.py runs the plugin across the server matrix through the test
framework's command-line client, one call per step. For each Minecraft flavor (crucible-1.7.10,
mohist-1.12.2, mohist-1.16.5, arclight-1.21.1, paper-1.21.1):
- boots the server with the core jar from this tree,
ECoreConformanceand the harness (plus PlaceholderAPI onpaper-1.21.1); a routed plugin that does not enable fails the flavor; - joins a headless player of the matching client version, ops it, arms
/ecc clickand has it click a block; -
ecc run all, thenecc write all; - opens each of the 11 screens and records both sides: what the server says is open
(
gui/<screen>.server.json) and what the client drew (gui/<screen>.client.json); - restarts the server, reconnects the player, waits until the server sees it online,
ecc read all; - collects the markers through the framework's event reader into
events.ndjson, copies the plugin's NDJSON reports, and stops everything.
The Hytale flavor hytale-0.7.1 is run only when named (--flavors hytale-0.7.1) and goes another way:
- boots the server with the core,
ECoreConformanceand the framework's Hytale harness routed intomods/; the flavor fails unlessEverNife:ECoreConformanceenabled; - joins the framework's synthetic player (
player_join) - there is no headless Hytale client; -
ecc run all --player <bot>and waits for the threesuite_endmarkers; - reads what only the player's side shows - the
deny-entrymessage, the count of break denials, the outline's particle packets - off the framework's view of the player; - copies the
[ECoreConformance] <suite>/<case>lines of the server log into the flavor'ssummary.mdand the NDJSON reports, and stops the server. There is no restart.
The synthetic player never acknowledges a teleport, so the suite answers for it
(HyWorld.acknowledgeTeleport) - see Gotchas and Pitfalls.
The driver reads two environment variables and refuses to start (exit code 2, before any call,
--dry-run included) when either is missing:
| Variable | Value |
|---|---|
MCTF_HOME |
the test framework's root; its final-artifacts/ carries the harness and the companion mods |
MCTF_CLI |
the framework's mctf.py client |
The matrix is a maintainer tool that needs the framework's daemon running; the Gradle build and the
unit tests do not need it. The PlaceholderAPI routed into paper-1.21.1 (2.11.6 - 2.11.2 dies in its
static init on 1.21.1) comes from a public repository: :conformance:minecraft:shadowJar copies it to
conformance/minecraft/build/matrix/PlaceholderAPI.jar, the driver's default --papi-jar.
./gradlew :minecraft:shadowJar :conformance:minecraft:shadowJar
python -I conformance/scripts/conformance-matrix.py # all five flavors
python -I conformance/scripts/conformance-matrix.py --flavors paper-1.21.1 --keep
./gradlew :hytale:shadowJar :conformance:hytale:shadowJar
python -I conformance/scripts/conformance-matrix.py --flavors hytale-0.7.1Output in build/conformance/: one folder per flavor (events.ndjson, reports/, gui/,
summary.md) and a summary.md with the suite x flavor matrix of passed/failed/skipped. The exit
code is 0 only when every flavor booted and every suite ended with failed=0. --dry-run prints the
planned calls and touches nothing; --keep leaves the servers and clients up for inspection.
-
Testing Toolkit - the headless conformance suites the
platformsuite reuses - Version Compatibility - the version branches several suites pin
-
Building from Source -
checkLinkageand the shadow jars
EverNifeCore · Home · made by Petrus Pradella
Getting Started
Commands & Text
Player Data & Storage
- PlayerData & PDSections
- Accounts
- Storage Backends
- Inline Backends for Plugins
- Block Data (SVWorldDataManager)
- Legacy Data Migration
- Cooldowns
Config & Minecraft Systems
- Configuration
- Logging & Debug Modules
- Events
- Regions
- Groups
- Notifications
- NPCs
- Logic
- Quests
- Rewards
- Provenance
- Scheduler & Threading
- Items & NBT
- Screens
- Dialogues
- Menus
- Integrations
- Economy
- Boosters
- Deliveries
- Audit Log
- Dynamic Values
- Player Ignore
- Version Compatibility
Architecture & Reference