Skip to content

Add Bedrock util (Floodgate helpers, soft dependency)#18

Merged
albemiglio merged 1 commit into
masterfrom
feat/bedrock-util
Jul 4, 2026
Merged

Add Bedrock util (Floodgate helpers, soft dependency)#18
albemiglio merged 1 commit into
masterfrom
feat/bedrock-util

Conversation

@albemiglio

@albemiglio albemiglio commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Adds it.mycraft.powerlib.common.utils.Bedrock — pure Floodgate uuid/prefix helpers (isFloodgateId = MSB==0, javaIdFromXuid = new UUID(0,xuid), stripPrefix) plus reflective API helpers (isFloodgatePlayer/prefix/xuid/javaUuid) that degrade gracefully when Floodgate is absent, so plugins never hard-depend on it. 4 unit tests on the pure path; common module builds green.

Pure helpers (isFloodgateId = MSB==0, javaIdFromXuid = new UUID(0,xuid), stripPrefix)
work with no dependency; isFloodgatePlayer/prefix/xuid/javaUuid reflect into the
Floodgate API when present and degrade to false/null/"" when it isn't, so plugins
never hard-depend on Floodgate. Covers the pre-login uuid math a proxy needs to spot
a Bedrock player and their linked Java account.
@sonarqubecloud

sonarqubecloud Bot commented Jul 4, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@albemiglio albemiglio merged commit b0b6a37 into master Jul 4, 2026
2 of 3 checks passed
@albemiglio albemiglio deleted the feat/bedrock-util branch July 4, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant