[FEATURE] Update to 1.18
ginsm opened this issue ยท 2 comments
Describe the solution you'd like
As the title says, begin work on updating to 1.18.
This will be the next thing that's worked on.
Apparently serialization and client syncing has changed quite a bit for block entities, and as a result they removed BlockEntityClientSerializable from Fabric API:
There's a few things I'll need to do to get it up and running again:
- Remove anything related to
BlockEntityClientSerializable.class. - Create a
.synchelper method onGraveBlockEntity. - Implement client syncing using the new methods found on
BlockEntity.class(toUpdatePacketandtoInitialChunkDataNbt. - Revise
writeNbtandreadNbta little.
According to the issue, I can leverage BlockEntityUpdateS2CPacket.create alongside toUpdatePacket to easily generate an update packet for the client.
Commit e123d49 resolves this.
Ported from 1.17.1 to 1.18 (Caves & Cliffs: Part II)
In the process I updated the mod to use Java 17 & the most recent fabric loader (1.12.8).
Make sure you update as well! :)
Closing.