Geyser/core/src/main/java/org/geysermc/geyser/registry
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
..
loader Swap pitch and volume for warden heartbeat 2022-06-02 18:57:33 -04:00
populator Fix some item interactions (#3083) 2022-06-24 16:48:28 -04:00
type Translate goat horns (#3057) 2022-06-15 22:55:11 -04:00
AbstractMappedRegistry.java We're in 2022 now 2022-01-01 20:03:05 +01:00
ArrayRegistry.java We're in 2022 now 2022-01-01 20:03:05 +01:00
BlockRegistries.java Fix some item interactions (#3083) 2022-06-24 16:48:28 -04:00
IntMappedRegistry.java Create IntMappedRegistry to prevent boxing 2022-02-01 20:15:31 -05:00
MappedRegistry.java We're in 2022 now 2022-01-01 20:03:05 +01:00
PacketTranslatorRegistry.java We're in 2022 now 2022-01-01 20:03:05 +01:00
Registries.java SoundEvent and ParticleEvent are now combined 2022-05-26 19:57:45 -04:00
Registry.java We're in 2022 now 2022-01-01 20:03:05 +01:00
SimpleMappedRegistry.java We're in 2022 now 2022-01-01 20:03:05 +01:00
SimpleRegistry.java We're in 2022 now 2022-01-01 20:03:05 +01:00
VersionedRegistry.java We're in 2022 now 2022-01-01 20:03:05 +01:00