Commit graph

153 commits

Author SHA1 Message Date
chris
f555dc0a92
Feature: Camera/Input locking API (#4332)
Adds API methods to control player cameras - including fancy transitions,  color fades, or simple input locks.
2024-01-31 11:21:06 +01: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
chris
3292718e69
Don't show custom names on display entities (#4309)
* Ensure that a custom text display entity name doesn't show up - it doesn't show on Java, and if we show it, the text display contents aren't shown.

* Update core/src/main/java/org/geysermc/geyser/entity/type/TextDisplayEntity.java

Co-authored-by: Konicai <71294714+Konicai@users.noreply.github.com>

---------

Co-authored-by: Konicai <71294714+Konicai@users.noreply.github.com>
2023-11-23 09:51:57 +01:00
chris
aa899af908
Clear bossbars & entity attributes on server switching (#4278)
* This ensures bossbars are cleared on server switch. Additionally, this clears the EntityCache - which should resolve issues around air supply/hearts persisting visually.

* - Also reset attributes on server switch, aswell as air
2023-11-08 00:23:56 +01:00
chris
574dad015d
Fix: Display entities only being visible when directly looked at (#4271) 2023-11-04 18:59:02 +01:00
chris
121ca11db2
Fix text displays on 1.20.2
It seems like 1.20.2 added one more field to base displays (https://wiki.vg/Entity_metadata#Display), and a few more to text displays: https://wiki.vg/Entity_metadata#Text_Display (#4268)
2023-11-03 16:58:02 +01:00
Kas-tle
3fa35b2cb9
Restrict game packets to state; Closes #4191 (#4210)
Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
2023-10-12 06:02:57 -07:00
Valaphee The Meerkat
dead91b929
Set BlockMapping.AIR (#4135)
* Set BlockMapping.AIR, id is always 0, but this also ensures that the palette always has air

* Rename BlockMapping.AIR to DEFAULT, as it does not have to represent AIR, and statically set it
2023-09-20 06:52:37 -07:00
chris
3ec591509c
Fix forced zoom issue when switching into spectator mode (#4093)
* init: spectator mode support

* properly set second abilitylayer for spectator mode

* Fixes https://github.com/GeyserMC/Geyser/issues/3318 by not sending changed flags in spectator mode
2023-09-06 18:13:19 -04:00
Valaphee The Meerkat
54bb1f3d13
Remove blockstate version (#4011)
* Remove blockstate version

* Regr, add comment why version tag is removed
2023-09-06 11:19:51 -07:00
chris
176ef83ed1
Fix fox height/width (#4039) 2023-08-06 17:15:13 -07:00
chris
cc6bbf9902
fix https://github.com/GeyserMC/Geyser/issues/3948 (#3955) 2023-07-08 21:36:08 -04:00
chris
872d7e3bb6
let boats not sink down, use less choppy (but faster) animation (#3949)
* let boats not sink down, use less choppy (but faster) animation

* remove passenger check since that always returns true
2023-07-07 18:14:38 -04:00
Konicai
cdd0459d47
Implement interaction entity (#3916) 2023-06-26 12:04:28 -04:00
Amberichu
70db98eeaf
Fix updating villager trade experience (#3906)
* Fix villager experience not updating

Remove unnecessary fake trade experience stuff

* Hide trade level for wandering traders
2023-06-22 17:38:05 -04: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
Konicai
4ab9eb4920
Misc 1.20 fixes (#3828)
* Update mappings

diff: f69b4db9a6...2989dbd7e1

* 1.20 boat entity variants and remove old check in UpstreamPacketHandler
2023-06-08 07:23:27 -07:00
Konicai
f712d4dd81 Bump Protocol and update imports of org.cloudburstmc.protocol.bedrock.data.definitions 2023-05-23 16:34:50 -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
Konicai
c2285e018b Merge remote-tracking branch 'upstream/master' into feature/1.20 2023-05-15 14:05:23 -04:00
Camotoy
8e67b87bc0
A start on signs 2023-05-14 19:12:19 -04:00
Roman Alexander
1e79aa9b37
Update AddEntityPacket to include headYaw (#3762) 2023-05-13 23:37:44 -04:00
Camotoy
cc856b84b1
Initial sniffer code 2023-05-11 13:23:27 -04:00
Camotoy
48b796d75e
Expose emote stuff in API; different secure chat checking
This should fix false flags from secure chat disablers doing funky things.
2023-04-15 12:54:30 -04:00
Camotoy
60de3187c6 Yeet NbtItemStackTranslator 2023-04-08 12:45:13 -04:00
Camotoy
b6113dfd31 Optimizations and regression fix 2023-04-06 21:47:37 -04:00
Camotoy
d9811d08e3 Merge remote-tracking branch 'origin/master' into feature/protocol-3.0 2023-04-06 13:26:28 -04:00
Camotoy
5871ca3f22
Fix up boat types after 1.19.4
Fixes #3649
2023-04-01 15:25:37 -04:00
Camotoy
e2535108e6
Folia support and preparations for future changes 2023-03-30 15:44:55 -04:00
Camotoy
95236b37e0
Add support for basic display entities 2023-03-28 18:49:19 -04:00
Kas-tle
2a8d8b6cdf
Set Shulker Color by Default (#3648) 2023-03-28 11:18:21 -04:00
Camotoy
720c901535
Fix nameTagVisibility nullability 2023-03-14 07:44:52 -04:00
Camotoy
b3f1c64249 Base changes for Java 1.19.4 support 2023-03-10 20:51:51 -05:00
Camotoy
1be2a1ccac
Fix sleeping on vanilla/Fabric
Fixes #3595
2023-03-06 20:53:54 -05:00
SupremeMortal
1769f2a85c
Merge branch 'master' into feature/protocol-3.0 2023-02-14 22:09:48 +00:00
Camotoy
bad077de53
oops 2023-02-07 13:15:02 -05:00
Camotoy
6ee3d4ed96
Fix #3537 2023-02-07 13:14:06 -05:00
Camotoy
0388785ea7
Fix some instances of team-applied nametags not working
Fixes #3531
2023-02-02 15:25:05 -05:00
David Choo
48d78720a1
Apply fallback skins to custom skulls with invalid or empty texture values (#3515) 2023-01-22 13:23:16 -05:00
Camotoy
c483204446
Merge branch 'dev' 2023-01-02 12:19:19 -05:00
Camotoy
b93b35b432
Should probably call super on this too 2023-01-01 14:35:16 -05:00
Camotoy
1b4be6135a
Let's call super too 2022-12-31 19:44:30 -05:00
Camotoy
3437fc98d8
Fix ageable entity scales not applying by default
Fixes #3486
2022-12-31 19:34:43 -05:00
Camotoy
d835f81772
Listen to creeper igniters tag 2022-12-30 19:38:47 -05:00
Camotoy
3f4ed67597
Add Item classes to partially replace ItemMapping. Part 1? 2022-12-29 15:10:40 -05:00
Camotoy
08c15a86ec
You can connect now. Command translation doesn't work though. 2022-12-23 16:18:48 -05:00