Geyser/connector/src/main/java/org/geysermc/connector/network/translators
Camotoy fe23c79053
Implement book editing (#1117)
* Implement book editing

Updates the PR created by @ForceUpdate1 for 1.16 support. Seems to work fine now that hand support is in MCProtocolLib.

Co-authored-by: Camotoy <20743703+DoctorMacc@users.noreply.github.com>

* Remove debug line

* Simplify code

Currently still borked for creative mode.

* Fix books on creative

* Bug fixes

* Fix NPE?

* Blind fixes

* Send Book update before any player actions

* Remove debug prints

* Fix out of bounds for page replace and add

* Fix editing desync and remove empty pages from the end

* Send edit packet after signing

* Refactor

* Clean up and fix creative

* Apply suggestions from code review

Co-authored-by: rtm516 <rtm516@users.noreply.github.com>

Co-authored-by: ForceUpdate1 <mneuhaus44@gmail.com>
Co-authored-by: Camotoy <20743703+DoctorMacc@users.noreply.github.com>
Co-authored-by: David Choo <davchoo3@gmail.com>
Co-authored-by: rtm516 <rtm516@users.noreply.github.com>
2021-01-07 19:40:34 -05:00
..
bedrock Implement book editing (#1117) 2021-01-07 19:40:34 -05:00
chat Update copyright to 2021 (#1772) 2021-01-01 10:10:36 -05:00
collision Add Tickable interface (#1790) 2021-01-05 18:41:20 -05:00
effect Update copyright to 2021 (#1772) 2021-01-01 10:10:36 -05:00
inventory Update copyright to 2021 (#1772) 2021-01-01 10:10:36 -05:00
item Implement book editing (#1117) 2021-01-07 19:40:34 -05:00
java Dimension switching cleanup (#1694) 2021-01-03 19:06:20 -05:00
sound Update copyright to 2021 (#1772) 2021-01-01 10:10:36 -05:00
world Fix items on campfires (#1779) 2021-01-01 18:33:21 -05:00
BiomeTranslator.java Update copyright to 2021 (#1772) 2021-01-01 10:10:36 -05:00
EntityIdentifierRegistry.java Update copyright to 2021 (#1772) 2021-01-01 10:10:36 -05:00
ItemRemapper.java Update copyright to 2021 (#1772) 2021-01-01 10:10:36 -05:00
PacketTranslator.java Update copyright to 2021 (#1772) 2021-01-01 10:10:36 -05:00
PacketTranslatorRegistry.java Update copyright to 2021 (#1772) 2021-01-01 10:10:36 -05:00
Translator.java Update copyright to 2021 (#1772) 2021-01-01 10:10:36 -05:00