Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mechanism for retrieving BlockEntity data #524

Merged
merged 5 commits into from
Mar 20, 2024

Conversation

glorantq
Copy link
Contributor

This commit adds a mechanism for retrieving block entity data. Block entity data is required to support for example text on signs, banner patterns, or mods such as Domum Ornamentum.

Copy link
Member

@TBlueF TBlueF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!
Just a really quick and hasty review for now, since i don't have much time rn until tuesday :)

@glorantq glorantq force-pushed the tile-entities branch 2 times, most recently from e92f106 to 213e141 Compare March 18, 2024 20:10
This commit adds a mechanism for retrieving block entity data.
Block entity data is required to support for example text on signs,
banner patterns, or mods such as Domum Ornamentum.
@glorantq glorantq requested a review from TBlueF March 18, 2024 20:12
This commit fixes the incorrect shifting of bits when
packing the chunk-local coordinates of a block entity
into a 64-bit long for lookups.
This commit changes the type stored for BlockEntity
mappings from a class of the type associated with the
ID to a method reference to its constructor.
This commit introduces a small functional interface
to make the type less ungodly. Also silences the warning
about referencing subclasses in the superclass, it is
fine in this case, we're just storing a reference to
the constructor.
@glorantq glorantq requested a review from TBlueF March 19, 2024 16:31
@TBlueF
Copy link
Member

TBlueF commented Mar 19, 2024

The github-build fails, but i think it only needs a ./gradlew spotlessApply to add the license headers ^^

The license headers were missing. Oops.
@glorantq
Copy link
Contributor Author

Yeah I realised I missed the headers, should be fine now. spotlessCheck is happy locally.

@TBlueF TBlueF merged commit a847e24 into BlueMap-Minecraft:master Mar 20, 2024
2 checks passed
@glorantq glorantq deleted the tile-entities branch April 4, 2024 17:38
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.

2 participants