-
Notifications
You must be signed in to change notification settings - Fork 135
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
Conversation
There was a problem hiding this 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 :)
BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/block/BlockEntity.java
Outdated
Show resolved
Hide resolved
BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/block/BlockEntity.java
Outdated
Show resolved
Hide resolved
BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/block/Block.java
Outdated
Show resolved
Hide resolved
BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/block/BlockEntity.java
Outdated
Show resolved
Hide resolved
BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/mca/chunk/Chunk_1_13.java
Outdated
Show resolved
Hide resolved
BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/mca/chunk/Chunk_1_13.java
Outdated
Show resolved
Hide resolved
e92f106
to
213e141
Compare
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.
BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/block/entity/BlockEntity.java
Outdated
Show resolved
Hide resolved
BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/mca/chunk/Chunk_1_13.java
Outdated
Show resolved
Hide resolved
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.
The github-build fails, but i think it only needs a |
The license headers were missing. Oops.
Yeah I realised I missed the headers, should be fine now. |
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.