Commit Graph

48 Commits

Author SHA1 Message Date
AJ Ferguson 9490a091b5
Calculate horse inventory size 2024-04-24 16:26:59 -04:00
Camotoy a1534e4535
Basic Armadillo structure 2024-04-24 16:26:59 -04:00
AJ Ferguson bbaffb2ab3
Wolf interactions 2024-04-24 16:26:59 -04:00
Camotoy abea0131e4
Fix llama carpets 2024-04-24 16:26:59 -04:00
Camotoy b81408820b
Refactor TagCache to be extensible
Previously, for any new tag, we would have to add a field, add the line to load it, add the line to clear it, and make a method for that tag. Now, you just add an enum.
2024-04-24 16:26:58 -04:00
AJ Ferguson 1bdbcab4e8
Wolf variants 2024-04-24 16:26:58 -04:00
basaigh 94e533ea7c
Fix tags and attributes 2024-04-24 16:26:57 -04:00
AJ Ferguson c3ffd65f48
Fix default wolf and cat collar color (#4582) 2024-04-19 05:41:06 -04:00
chris 95d65350e4
Project wide syntax/annotation cleanup (#4238)
Co-authored-by: Konicai <71294714+Konicai@users.noreply.github.com>
2023-12-05 18:54:42 -05:00
Amberichu f55d84321a
New entity mount offsets (#3861)
* Add missing entities to getMountedHeightOffset and getHeightOffset

* Fix mount offset on Camels for more than 1 passenger

* Fix mount offset for Shulkers on Bamboo boats and minecarts with stuff

Also fix mount offsets for minecart and boat passengers

* Combine

* More missing mount offsets

* Fix mount offsets for entities riding players
2023-06-11 13:32:42 -04:00
AJ Ferguson 3e7f420532 Handle non-full blocks for Sniffer digging particles
This is how Java does it
2023-05-19 21:11:43 -04:00
AJ Ferguson 53ed40fde7 Some work on CamelEntity 2023-05-19 18:46:02 -04:00
Konicai 5cf5225c0c canEat for Sniffer 2023-05-17 16:06:28 -04:00
AJ Ferguson 701d9844aa Set SnifferEntity digTicks to 0 when transitioning out of DIGGING state 2023-05-16 23:35:28 -04:00
AJ Ferguson c35b7c93fd
Translate SnifferEntity (#3777)
* Translate SnifferEntity

* Add comment for pose
2023-05-16 21:45:16 -04:00
Camotoy 8e67b87bc0
A start on signs 2023-05-14 19:12:19 -04:00
Camotoy cc856b84b1
Initial sniffer code 2023-05-11 13:23:27 -04:00
Camotoy 60de3187c6 Yeet NbtItemStackTranslator 2023-04-08 12:45:13 -04:00
SupremeMortal 1769f2a85c
Merge branch 'master' into feature/protocol-3.0 2023-02-14 22:09:48 +00:00
Camotoy 3437fc98d8
Fix ageable entity scales not applying by default
Fixes #3486
2022-12-31 19:34:43 -05:00
Camotoy 3f4ed67597
Add Item classes to partially replace ItemMapping. Part 1? 2022-12-29 15:10:40 -05:00
Camotoy 03390b99e8
Fix black cats not appearing correctly 2022-12-21 21:18:49 -05:00
Camotoy 4fe9aeca40
Merge branch 'master' of https://github.com/GeyserMC/Geyser into feature/protocol-3.0 2022-12-20 19:47:45 -05:00
Konicai 59974c3f3a
A start on camels and hanging signs 2022-12-04 18:12:07 -05:00
RednedEpic a133308f51 It compiles! 2022-10-29 22:02:11 -05:00
RednedEpic 18e7db8c30 Start on update to Protocol 3.0 2022-10-29 19:23:21 -05:00
ImDaBigBoss 4e2f74481b Updated to 1.19 2022-06-08 14:09:14 +02:00
Camotoy a397f55e8b
Add goat horn count 2022-06-06 21:06:02 -04:00
Camotoy eb23a46887
Fix frog color translation 2022-05-31 14:51:21 -04:00
Camotoy a3cdfc5306
Use correct type for entity metadata 2022-05-29 21:11:10 -04:00
davchoo 7b9a98aa09
Add croaking and using tongue poses to frog 2022-05-27 13:59:37 -04:00
Camotoy 85800eb32b
Tadpole 2022-05-26 18:52:04 -04:00
Camotoy 29c819fe21
Implement allay, plus some interaction fixes 2022-05-26 17:51:55 -04:00
Camotoy 59cb0c07c2
Start implementing frogs. Ribbit. 2022-05-26 16:22:53 -04:00
Camotoy bbf45b6a4c
Compiles; provide your own mappings for now 2022-05-25 15:55:15 -04:00
Camotoy 7f5d81772b Fix inability to toggle sitting of parrots 2022-03-10 15:16:08 -05:00
Camotoy 17fb38e567
This method can be final 2022-03-01 22:50:11 -05:00
Camotoy e163301d23
Fix StackOverflow possibility with undead horses 2022-03-01 15:44:13 -05:00
Camotoy b4b5cea42d
Implement offhand support when interacting with entities
By simulating the exact processing that Java Edition does on the client-side, we can achieve full packet parity with Java when interacting with an entity.
2022-02-25 11:02:18 -05:00
Camotoy 7d1ec5c41a
Support offhand interactions with entities 2022-02-24 22:49:10 -05:00
Camotoy 44af9da01d
Use axolotl tempt tag to determine axolotl food 2022-02-11 13:37:19 -05:00
Tim203 3251d9010c
We're in 2022 now 2022-01-01 20:03:05 +01:00
Camotoy 4c409f98f3 Properly implement piglin/hoglin dimension safety
Whether they shake or not is now controlled by the server, as implemented in Java Edition.
2021-12-20 22:54:34 -05:00
Camotoy 24f09e016d Entity IDs in Java Edition just need to be integers
We don't need to keep them as longs - this just reduces the amount of casting needing throughout the codebase.
2021-12-20 19:25:11 -05:00
David Choo 754bb42c19
Fix some mount offsets and strange behaviors with GSit (#2701)
* Prevent boats from floating when a Bedrock player rides in the back

* Update llama and shulker mount height offset

* Fix Trader llama mount offset

* Change passengers to an IntList

Also move rotation lock stuff to EntityUtils

* Allow EntityCache.getEntityByJavaId to return the session's player

Removes many checks from several translators.

* Fix mount offset on armorstands and area effect clouds

Also prevent area effect clouds from despawning when used as an invisible entity (used in GSit to offset players riding on other players)

* Update mount offsets on height changes

TODO test this

* Actually update vehicleId and optimize StriderEntity metadata update

* Don't hide marker armor stands and properly update mount offsets

* What?

* Remove y offset for Shulkers riding other entities

* Confirm teleports in the order received

This allows Bedrock players to move after standing up when using GSit

* Fix mount offset for riders on baby zoglins

* Cache only the latest teleport and confirm teleports immediately

* Fix crawling with GSit

* Inline var and undo respawn method

* Use Entity reference for vehicles

* Remove ridingVehicleEntity from GeyserSession

* Use Entity references for passengers and drop cachedPlayerEntityLinks

* Reuse variable and remove setVehicle(null)
2021-12-18 11:43:57 -05:00
Camotoy 966c2155ad
API: change player class to Connection 2021-11-22 14:52:26 -05:00
RednedEpic 83ddbd7d1a Initial api draft 2021-11-21 12:36:42 -06:00
RednedEpic 2c663e0ee5 The Great Refactor Part 3 - Entire project restructure 2021-11-20 17:29:46 -06:00