Files
OpenArcadeGames/README.md
T

5.5 KiB
Raw Blame History

ArcadeGames 2.19f — Reconstructed & Unified Source

Project Layout

ArcadeGames/
├─ common/          Shared engine, public API, all 10 minigames, and version abstraction layer (737 Java sources)
├─ latest/          LATEST (1.18–26.2) version adapter, AdvancedSlimePaper integration, and shaded plugin assembly (6 Java sources)
├─ legacy/          LEGACY (1.8.8–1.12.2) version adapter, legacy sounds/FallingBlock support, and shaded plugin assembly (5 Java sources)
├─ build-support/   NMS platform modules, jdk21 module, compile-time stubs, and bytecode finalization tool
├─ pom.xml
└─ build.ps1

This repository contains the deobfuscated and unified multi-version architecture (single common module + dual shaded plugin JARs):

  • Duplicated per-version sources (common/src/variants/, platform-api-latest, platform-api-legacy) have been consolidated so all engine and minigame logic lives in common/src/main/java (737 .java files compiled into 740 .class files), maintained in one place and compiled once.
  • Remaining obfuscated single-character and decompiler-generated numbered method/field names across common, latest, and legacy have been semantically renamed for readability.
  • Spigot/NMS version differences are isolated behind ro.fr33styler.arcade.platform.compat.VersionAdapter / VersionAdapters, ArcadeSound, ArcadeParticle, ArcadeMaterial, ArcadeColor, ColoredBlockType, GameBossBar, and TeamRule, keeping common strictly within the spigot-api-1.8.8 ∩ spigot-api-1.20.1 API intersection.
  • The public API ro.fr33styler.arcade.api.engine.* (56 sources), all YAML @Setting keys, enum constants, and bundled resources are preserved intact.

Building

Requires JDK 21 and Maven 3. From the repository root, run:

mvn clean verify

You can also run ./build.ps1 clean verify (or mvn -o -T 1C clean verify for offline parallel builds). Make sure to run through the verify phase so FinalizeClasses relinks NMS do_() aliases back to do()F.

Output plugin JARs:

  • latest/target/ArcadeGames-2.19f-LATEST-reconstructed.jar
  • legacy/target/ArcadeGames-2.19f-LEGACY-reconstructed.jar

Modules

Module Sources Description
common 737 .java api.engine.* (56), unified platform.api & compat, core engine, and all 10 minigames
jdk21 1 .java Java 21 virtual-thread executor (dynamically loaded by DefaultEngine on JDK 21+)
platforms/latest-* 6 modules NMS adapters for Minecraft 1.18.2 / 1.19.4 / 1.20.6 / 1.21.11 / 26.1 / 26.2
platforms/legacy-* 2 modules NMS adapters for Minecraft 1.8.8 / 1.12.2 and 1.12.2 off-hand listener
latest 6 .java Arcade, LatestVersionAdapter, SoundTypeToken, AdvancedSlimePaper* (3), and plugin.yml/resources
legacy 5 .java Arcade, LegacyVersionAdapter, LegacySounds, PartyGamesV1_8_8/1_12_2FallingBlockFactorySelector, and plugin.yml/resources

All modules target Java 17 except jdk21, which targets Java 21.

Package Overview

ro.fr33styler.arcade
├─ api.engine.*       Public engine API (original signatures preserved)
├─ engine             Config, commands, players, sessions, text, display, scoreboards, storage, and networking
├─ game               10 minigames (BlockParty, BombLobbers, MiniWalls, PartyGames, PropHunt, Quake, Splegg, TempleRun, TNTRun, TNTTag)
├─ platform           Unified platform contracts, VersionAdapter / Bukkit / JDK adapters, and NMS modules
├─ integration        Third-party integrations (PlaceholderAPI, NoteBlockAPI, Vault, etc.; AdvancedSlimePaper in latest only)
├─ support            IO, reflection, text, random, and compression utilities
├─ internal.compatibility
└─ vendor.bstats

Build & Compatibility Notes

  • build-support/deps/provided-api-stubs.jar and per-version stubs-*.jar files supply compile-time Spigot, NMS, and third-party plugin signatures only and are not shaded into the final plugin JARs.
  • NMS methods whose obfuscated names collide with Java keywords (such as do()) are compiled via do_() aliases and relinked to do()F during the verify phase by build-support/tools/build/FinalizeClasses.java using build-support/tools/dependencies/external-reserved-names.tsv.
  • Runtime resources (plugin.yml, template.dat, games/block-party/songs.zip, etc.) are packaged directly into the latest and legacy shaded JARs.

Verification

  • Full multi-module build (mvn -o -T 1C clean verify): All 13 Maven reactor modules compile, shade, and pass FinalizeClasses verification.
  • Spigot API intersection check: Bytecode scanning of all 740 compiled common classes confirmed 0 API intersection violations across spigot-api-1.8.8 and spigot-api-1.20.1.
  • NMS do() relinking check (javap -p -c): Confirmed packaged NMS entities (MiniWallsV1_18_2Arrow, PropHuntV1_18_2PropEntity) invoke Method do:()F with no leftover do_() calls.
  • Offline smoke tests: Verified GZIP compression round-trips, Text/Contexts placeholder interpolation, and resolution of all 25 ArcadeSound, 45 ArcadeMaterial, and 144 ColoredBlockType × ArcadeColor entries against real spigot-api-1.20.1 (latest) and spigot-api-1.8.8 (legacy) enums.

Note: These checks cover compilation, bytecode integrity, and offline unit/enum verification. End-to-end gameplay, NMS packet handling, and third-party plugin integrations (AdvancedSlimePaper, PlaceholderAPI, NoteBlockAPI) should still be tested on a live Paper/Spigot server.