Commit graph

4 commits

Author SHA1 Message Date
modmuss
de0fd6d132 Fix empty data attachments being saved. (#3588)
* Fix empty data attachments being saved.

* Checkstyle
2024-02-13 19:05:10 +00:00
Jochen Jacobs
41e516f9db Fix data attachment testmod (#3586)
* fix data attachment testmod: use marker file to determine first/second launch

* fix typos

* one more typo
2024-02-13 19:05:10 +00:00
Jochen Jacobs
7e2f48b4b4 Extend Data Attachment API to ProtoChunk (#3548)
* allow data-attachment on ProtoChunks

- moved interfaceInjection from WorldChunk to Chunk
- dataAttachment saving on ProtoChunks in ChunkSerializer
- copy attachment from ProtoChunk to WorldChunk on creation.
- make WrapperProtoChunk wrap attachment calls to WorldChunk

* add test for data-attachment on ProtoChunks, and extend testmod.

* code style and license headers

* fix typos in javadoc

* extend testmod to test setting attachment during worldgen.

* code formatting

* fix testmod: don't crash when feature isn't placed (i.e. on GameTest server)

* add warning when adding persistent attachment to chunk with status EMPTY.

* update javadoc

* update javadoc to reference ServerLivingEntityEvents#MOB_CONVERSION

Backport persistent state code
2024-02-13 19:05:10 +00:00
Syst3ms
efd4a353d0 Data Attachment API (#3476) 2024-02-13 19:05:10 +00:00