Repository navigation
Add tessera-api extension module for third-party block-data access - #61
Merged
Merged
Conversation
Expose a stable, read-only extension API so other plugins can reuse Tessera's pre-baked block data (per-chunk MineSkin head textures) without bundling any of it themselves — e.g. block-placing/decoration plugins. - New `tessera-api` Gradle subproject: interface-only artifact (TesseraApi, SkinPayload, ChunkLayout, BakeOutcome, Tessera accessor, TesseraBlockBakedEvent). The shared value types (BlockKey, BakeKey, ChunkCoord) move into it under the same package, so plugin code is unchanged. Shadow leaves org.inventivetalent.* unrelocated, so the api ships in the plugin jar and resolves through Tessera's classloader at runtime (Vault/WorldEdit pattern). Publishable via maven-publish. - TesseraApiImpl: read-only facade registered with Bukkit's ServicesManager, backed by HeadsRegistry (queries), FakeBlockFactory.layout (pre-oriented per-chunk data) and BlockBaker (on-demand requestBake). Licensing is invisible to consumers — baking is the baseline; NOT_CONFIGURED only when the server has neither a MineSkin key nor a license. - FakeBlockFactory.layout reuses the same BlockGeometry math and a single canonicalRotation() helper as the spawn path, so consumers get pixel-identical placement and the face-rotation invariant stays in one place. - BlockBaker.onBaked hook fires TesseraBlockBakedEvent on the main thread after a successful runtime bake. - Consumer quickstart in docs/api.md; architecture note in CLAUDE.md. https://claude.ai/code/session_01PCARQEjpqBNzZTD7mHC7VB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expose a stable, read-only extension API so other plugins can reuse Tessera's pre-baked block data (per-chunk MineSkin head textures) without bundling any of it themselves.
tessera-apiGradle subproject: interface-only artifact (TesseraApi, SkinPayload, ChunkLayout, BakeOutcome, Tessera accessor, TesseraBlockBakedEvent). The shared value types (BlockKey, BakeKey, ChunkCoord) move into it under the same package, so plugin code is unchanged. Shadow leaves org.inventivetalent.* unrelocated, so the api ships in the plugin jar and resolves through Tessera's classloader at runtime (Vault/WorldEdit pattern). Publishable via maven-publish.