You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SimpleClaims should check HyperFactionsAPI.isClaimed(world, chunkX, chunkZ) before allowing claims
Our API is now on JitPack: compileOnly 'com.github.HyperSystemsDev:HyperFactions:v0.8.1'
SimpleClaims already uses reflection for other integrations (LuckPerms, PartyPro) — same pattern applies
Alternative: SimpleClaims could add a generic ClaimChecker interface that external mods register — more extensible
Risks and Alternatives
No stable API — SimpleClaims has no dedicated API package — all classes are internal and mutable. API surface could change between versions without notice.
Reverse integration — The SimpleClaims → HyperFactions direction requires SimpleClaims to adopt our API or accept a PR. Buuz135 may prefer a different integration approach.
Performance — Chunk claim checks happen frequently. Reflection overhead should be minimal since we cache method handles, but worth benchmarking.
Alternative — Instead of direct mod-to-mod integration, both mods could integrate through OrbisGuard as a shared protection layer. However, this adds a mandatory third dependency.
Scope
Implementation Details
HyperFactions side (we implement)
SimpleClaimsIntegrationclass incom.hyperfactions.integration.protection(same pattern asOrbisGuardIntegration)ClaimManager.getInstance()singletongetChunk(dimension, chunkX, chunkZ)andgetReservedChunk(dimension, chunkX, chunkZ)ClaimManager.claimChunk()to check SimpleClaims before allowing HF claims"simpleclaims": { "enabled": true, "respectReservedChunks": true }in config.jsonSimpleClaims side (PR or suggestion to Buuz135)
HyperFactionsAPI.isClaimed(world, chunkX, chunkZ)before allowing claimscompileOnly 'com.github.HyperSystemsDev:HyperFactions:v0.8.1'ClaimCheckerinterface that external mods register — more extensibleRisks and Alternatives
References and Media
com.github.HyperSystemsDev:HyperFactions:v0.8.1OrbisGuardIntegrationincom.hyperfactions.integration.protectionClaimManagerAPI:getChunk(),getReservedChunk(),getInstance()