feat(03-04): ajoute 6 champs optionnels sur GravityFlipRegion (Task 1)

- POJO: FallDamage (false), GracePeriodMs (2500), VerticalForce (0.1),
  AffectPlayers/Npcs/Items (true) avec getters/setters
- CODEC: 6 .append sans nonNull validator (sémantique optionnelle)
- Tests: 6 round-trip + back-compat defaults (9 tests total)
This commit is contained in:
2026-04-23 14:00:12 +02:00
parent ffb716ca1c
commit a834c59b66
4 changed files with 242 additions and 11 deletions
@@ -63,8 +63,9 @@ public class GravityFlipPlugin extends JavaPlugin {
super.start();
GravityFlipConfig cfg = configHolder.get();
this.registry = new RegionRegistry(cfg, configHolder);
this.gravityApplier = new GravityApplier(th ->
getLogger().at(Level.WARNING).withCause(th).log("gravityApply failed"));
this.gravityApplier = new GravityApplier(
th -> getLogger().at(Level.WARNING).withCause(th).log("gravityApply failed"),
msg -> getLogger().at(Level.INFO).log("%s", msg));
this.tickLoop = new RegionTickLoop(registry, gravityApplier, th ->
getLogger().at(Level.WARNING).withCause(th).log("detectTick failed"));