A small compatibility probe for Cardboard.
It covers the two areas that headless testing cannot reach:
- NMS reflection —
CraftPlayer#getHandle,ServerPlayer#connectionby field reflection,CraftServer#getServer,Class.forNameon unobfuscated NMS names, andCraftWorld#getHandle. - Custom inventories — creating a GUI, item display names and lore, the
metadata round trip, and
InventoryClickEvent/InventoryCloseEvent(including closing from inside the click handler).
Every probe is caught and reported individually as [PASS] / [FAIL], so a
partial failure still tells you which surface broke.
/cbtest all # everything
/cbtest nms # NMS reflection only
/cbtest meta # item metadata only
/cbtest gui # open the inventory probe
./gradlew jar # -> out/CardboardTest.jar
Requires JDK 25 (auto-provisioned) because paper-api 26.2 targets Java 25.
All probes pass. See the Cardboard 26.2 release.