Geyser/core/src/main/java/org/geysermc/geyser/translator/protocol/bedrock
David Choo 9ea22042eb
Fix some item interactions (#3083)
* Remove Bedrock only banner patterns from the creative inventory

* Add sound for tadpole bucket

* Fix lily pad and frogspawn placing on mobile/single stacks

* Workaround? Fix? for bucket usage on mobile

* Simplify math and update position+rotation whenever ServerboundUseItemPacket is sent

* Rotate the player back after using an item and fix glass bottles

* ITEM_USE actionType 1 does not need the rotation fix

Increase delay for look back

* Add some checks

* Prevent buckets and spawn eggs from being unintentionally placed when interacting with special blocks

As of 1.19 Bedrock no longer sends a PlayerActionPacket with action=BLOCK_INTERACT. Bedrock now sends action=ITEM_USE_ON_START before and action=ITEM_USE_ON_STOP after using an item on a block. However, this is not useful as it is sent for all block interactions.

* Fix inventory transactions being rejected after restoreCorrectBlock

The held item's netId is always 0 in the InventoryTransactionPacket.

* Touch ups

* Fix lookAt for different poses and sneaking + cauldron + bucket interactions

Fix boat items being desynced when placing them very close to collision
Fix bottles being desynced when tapping above water

Resend the held item if we do encounter a desync

* Avoid getting blockstate twice and fix comment

* Use generated interaction data

* Fix glass bottles being double filled and phantom water bottles/water buckets

* Don't update the entire inventory on useItem

* Use Geyser's inventory copy for check

* Use ItemTranslator#getBedrockItemMapping to avoid NBT translation

* mappings

Co-authored-by: Camotoy <20743703+Camotoy@users.noreply.github.com>
2022-06-24 16:48:28 -04:00
..
entity Fix some item interactions (#3083) 2022-06-24 16:48:28 -04:00
world We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockAdventureSettingsTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockAnimateTranslator.java Replicate Bedrock shield behavior more accurately 2022-03-15 13:34:56 -04:00
BedrockBlockEntityDataTranslator.java Remove now-obsolete sign workaround. Yay. 2022-05-29 20:31:54 -04:00
BedrockBlockPickRequestTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockBookEditTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockCommandBlockUpdateTranslator.java Switch all Position instances to Vector3i 2022-05-25 19:17:49 -04:00
BedrockCommandRequestTranslator.java Compiles; provide your own mappings for now 2022-05-25 15:55:15 -04:00
BedrockContainerCloseTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockEmoteListTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockEntityPickRequestTranslator.java Implement chest boat 2022-05-26 13:11:39 -04:00
BedrockFilterTextTranslator.java Fix anvils for 1.18.30 Bedrock 2022-04-20 21:39:35 -04:00
BedrockInventoryTransactionTranslator.java Fix some item interactions (#3083) 2022-06-24 16:48:28 -04:00
BedrockItemFrameDropItemTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockItemStackRequestTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockLecternUpdateTranslator.java Switch all Position instances to Vector3i 2022-05-25 19:17:49 -04:00
BedrockMapInfoRequestTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockMobEquipmentTranslator.java Compiles; provide your own mappings for now 2022-05-25 15:55:15 -04:00
BedrockMoveEntityAbsoluteTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockNetworkStackLatencyTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockPacketViolationWarningTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockPlayerInputTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockPositionTrackingDBClientRequestTranslator.java Don't fully translate item data to compare net IDs 2022-01-30 11:05:29 -05:00
BedrockRequestChunkRadiusTranslator.java Send the client render distance to the server 2022-01-15 20:29:00 -05:00
BedrockRespawnTranslator.java Don't send respawn code until Java is ready 2022-01-30 11:14:51 -05:00
BedrockServerSettingsRequestTranslator.java Update Geyser to use the latest features of Cumulus 1.1 2022-01-22 12:20:52 +01:00
BedrockSetLocalPlayerAsInitializedTranslator.java Deprecate userAuths in favor of a saved token system 2022-03-03 18:52:26 -05:00
BedrockShowCreditsTranslator.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BedrockTextTranslator.java Compiles; provide your own mappings for now 2022-05-25 15:55:15 -04:00