1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-26 18:29:21 +00:00
Commit Graph

1767 Commits

Author SHA1 Message Date
onebeastchris
a497d3d84c API polishing; properly initialize height/width 2025-11-30 15:28:47 +01:00
onebeastchris
37f1285fbd Fix NPE in test 2025-11-30 02:30:16 +01:00
onebeastchris
b26b9d17fb Implement dirty entities to send updates once a tick 2025-11-30 02:25:43 +01:00
onebeastchris
460305a515 Api design goes brrr 2025-11-30 02:13:20 +01:00
onebeastchris
5a16517d3c Another couple changes, start designing an entity data system to set scale/variant/height/width and so forth 2025-11-27 22:52:47 +01:00
onebeastchris
75d5f07170 Apply some suggestions 2025-11-27 22:18:12 +01:00
onebeastchris
9e6b1333b3 Rename SessionAttachParrotsEvent -> ServerAttachParrotsEvent, fill in API Javadocs 2025-11-27 22:13:22 +01:00
onebeastchris
8f8e3bea8c Expose geyserId in API, add SessionAttachParrotsEvent 2025-11-27 18:45:08 +01:00
onebeastchris
52b76f5b6f Fix startup 2025-11-27 18:45:07 +01:00
onebeastchris
b2739e1948 More work on events, closer to working 2025-11-26 17:08:05 +01:00
onebeastchris
8ff763ba66 Width, height and offset should be tied to the Java entity type; and can now be modified in the ServerSpawnEntityEvent 2025-11-25 22:34:05 +01:00
onebeastchris
142cbaee71 Continue splitting bedrock entities from java types 2025-11-23 17:54:18 +01:00
onebeastchris
c57f2508cc EntityDefinition -> EntityTypeDefinition 2025-11-22 19:53:29 +01:00
onebeastchris
3392510326 Separate BedrockEntityDefinition from Entity classes 2025-11-22 17:53:38 +01:00
onebeastchris
6fab587227 CustomEntityDefinition should extend GeyserEntityDefinition 2025-11-22 17:50:20 +01:00
onebeastchris
11e6b50d53 Move CustomEntityDefinition into custom package 2025-11-22 17:48:52 +01:00
Eclipse
a3869cf5f8 Implement CustomEntityDefinition, part one 2025-11-22 17:47:23 +01:00
Eclipse
e398c545f9 Add EntityDefinition#is 2025-11-22 17:44:55 +01:00
Eclipse
7fe8992ceb Work on exposing custom entity definitions in the API 2025-11-22 17:44:54 +01:00
Eclipse
d843745ded Further refactor EntityDefinition, create a Base class 2025-11-22 17:44:52 +01:00
Eclipse
0b8678e2f2 Allow creating custom entity types from API 2025-11-22 17:43:37 +01:00
Eclipse
f4156c61f6 Split EntityDefinition up into EntityDefinition and VanillaEntityDefinition, create GeyserEntityType, target custom entities MCPL 2025-11-22 17:43:35 +01:00
Eclipse
5a7bf1ba84 Start working on custom entity API (for real this time) 2025-11-22 17:41:00 +01:00
onebeastchris
a49ae8fade Print protocol version in join message 2025-11-21 18:56:44 +01:00
onebeastchris
b7e5f63672 Use new auth payload 2025-11-21 18:22:51 +01:00
onebeastchris
c0b4579436 Don't add invalid packet handler twice to subclient sessions 2025-11-21 18:09:04 +01:00
rtm516
846e0b5ce0 Fix trailing formatting characters causing OOB (#5990)
* Fix trailing formatting characters causing OOB

* Fix typo
2025-11-20 15:05:19 +01:00
chris
53596d05bc API 2.9.1: Support 1.21.124, add tint/isotropic method to custom block material, allowing updating entity properties immediately (#5991)
* Prepare for 1.21.124

* Add tint method and isotropic properties to block material instances (#5977)

* Add tint method and isotropic properties to block material instances

* Check if tint method is null before including it

* Lets cover the null check on render method too

* Allow updating properties immediately (#5961)

---------

Co-authored-by: rtm516 <rtm516@users.noreply.github.com>
2025-11-20 14:52:56 +01:00
onebeastchris
c0c7b51935 Fix wrong comment of the show-cooldown config option 2025-11-19 22:07:16 +01:00
oryxel
8ba82dd7a1 Fix: swimming near water surface. (#5992)
* Fix: swimming near water surface.

* Only update if pose change.
2025-11-19 19:36:54 +01:00
onebeastchris
80db983a4c Indicate support for 1.12.12x, update Bedrock protocol library, bump Bedrock network dependency 2025-11-19 02:45:51 +01:00
Camotoy
765128ce42 Switch config system to Configurate (#5010)
* Start implementing Configurate config system

* More development

* Start migrating to Gson only

* Progress

* Update usage of WebUtils

* Most things now use Gson for JSON

* Allow tests to succeed by using new Gson version

* Use slightly cleaner version for Version deserializer

* Work around older Gson versions without record support

* GeyserCustomSkullConfiguration uses Configurate

* Fix regression in properties get

* New config used in core

* The configuration is gone. Long live the config.

* More changes and migrations away from Jackson

* Improve node ordering when updating configs

* typo

* Better check for ignoring non-configurate configs for considering comment moving

* Ensure metrics UUID is valid

* Initial advanced config

* Remove Jackson; finish config value placements

* Remove duplicate relocate declarations

* Let annotations work

* Renaming to PluginSpecific

* Use global bStats config where possible

* Fix test

* Re-introduce asterisk behavior in configs

* Remove GeyserPluginBootstrap as it's no longer necessary

* Remove old config.yml file

* Update Xbox achievement comment

* Apply suggestions from code review

Co-authored-by: chris <github@onechris.mozmail.com>

* No need to remove values anymore

* Fix: disable bstats relocation on platforms where it is not needed

* ensure it builds

* Update custom unavailable slot comment

Co-authored-by: chris <github@onechris.mozmail.com>

* Update cooldown image

* Logger message for direct-compression still being enabled

* oops

* More explicit RuntimeException message

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

* Constant for 'system' locale

* Better config JSON encoding (something is broken with Cloudflare; we'll figure it out

* Fix broadcast port default

* Add this file too

* Update configurate branch

* fix build

* Fix: Allow using custom config file on Standalone, add relocation comment

* Move config loading to GeyserBootstrap interface

* Add and rename some config options, add section notes (#5390)

* Add and rename some config options, add section notes

* adjust message

* Update core/src/main/java/org/geysermc/geyser/command/defaults/ConnectionTestCommand.java

Co-authored-by: Eclipse <eclipse@eclipseisoffline.xyz>

* Update core/src/main/java/org/geysermc/geyser/configuration/GeyserConfig.java

Co-authored-by: Eclipse <eclipse@eclipseisoffline.xyz>

* Update ConfigLoader.java

* Update AdvancedConfig.java

* clarify that we're talking about the HAProxy protocol

* rename config option to use-haproxy-protocol

* remove ominous warning sign on xbox auth warning

* adjust wording

---------

Co-authored-by: Eclipse <eclipse@eclipseisoffline.xyz>

* Back to one config file

* Some minor touchups

* Configurate: Sectionification (#5904)

* Init: config sections

* Start on adding tests, move migrations over to ConfigMigrations class

* Get rid of auth section again, rename that one config option, fix mtu migration

* Move custom skulls config options to the bottom of the gameplay settings

* Add more tests

* Rename and migrate proxy-protocol-whitelisted-ips to haproxy-protocol-whitelisted-ips

* Add automatic downloading of the GeyserOptionalPack

* Revert "Add automatic downloading of the GeyserOptionalPack"

This reverts commit 65b96208fb.

* Add more invalid config tests

* Warn about emote-offhand-workaround removal

* Add automatic loading of the GeyserOptionalPack (feature/configurate) (#5964)

* Add automatic downloading of the GeyserOptionalPack

* Warn about including the OptionalPack from extensions when Geyser is already including it instead of throwing.

* Copy optional pack instead of downloading

---------

Co-authored-by: onebeastchris <github@onechris.mozmail.com>

* Remove unused variable

* Start warning users not running Java 21

* Update tests, temporarily remove NumericRanges test

* Remove duplicate advanced section from Geyser dump

* Address some "reviews"

* yeet md5 hash from geyser dump

* Add info about number of resource packs / amount of mappings into Geyser dump

* Re-enable invalid config loading test

* Fix: allow-custom-skulls migration

* Fix test

* Add "enable-emotes" configuration option

* Rename "emotes-enabled" to "show-emotes"

* Only enable integrated pack when optional pack isn't present

* Update integrated pack

* Exclude jackson annotations, remove leftover debug print

* Remove one-time config migration warnings as we don't have access to the logger at that stage

* Throw more detailed descriptive error when loading resource packs from the "packs" folder, add another legacy config test

* Fix NeoForge's fun module conflict

* Re-add warning about moved functionality, fix Geyser-ViaProxy

This reverts commit fbadfa574a.

* oops

* Move GeyserLegacyPingPassthrough to separate thread to avoid Standalone command locking issues

---------

Co-authored-by: Konicai <71294714+Konicai@users.noreply.github.com>
Co-authored-by: chris <github@onechris.mozmail.com>
Co-authored-by: Eclipse <eclipse@eclipseisoffline.xyz>
Co-authored-by: Aurora <auroranova8756@gmail.com>
2025-11-18 17:55:12 +01:00
RK_01
48bf0942e9 Updated to MinecraftAuth 5 (#5989) 2025-11-16 21:43:39 +01:00
oryxel
a58fa79805 Fix: Player pose switching behaviour (#5987)
* More accurate pose switching behaviour.

* Revert some change.
2025-11-16 15:49:32 +01:00
oryxel
659369a913 Fix: prevent max health smaller than health (#5988) 2025-11-16 13:50:45 +01:00
onebeastchris
0488023829 Fix: Critical / Enchanted critical hit particles 2025-11-08 23:01:42 +01:00
chris
73e67fc7a9 Fix GeyserDefineEntityPropertiesEvent#properties() NPE (#5960)
* Fix GeyserDefineEntityPropertiesEvent#properties() NPE

* This is cleaner
2025-11-02 13:52:26 +01:00
oryxel
208f4611cc Fix: don't lock jumping input for minecart (#5959)
* Don't lock jumping for minecart.
2025-11-02 12:17:56 +01:00
oryxel
d5b0091108 Fix: ground status for client-predicted vehicles (#5957)
Co-authored-by: oryxel1 <gamingnoob681@gmail.ocm>
2025-11-02 11:34:45 +01:00
dima_dencep
a5db5104b7 Fixes for Custom entity properties API (#5949)
* Fixes

* Further fixes

* let's not talk about this one

---------

Co-authored-by: onebeastchris <github@onechris.mozmail.com>
2025-11-01 13:40:11 +01:00
onebeastchris
17247f2c33 Revert gradle/shadow update, for now
This reverts commit dc322cba0a and 27cd53ead8.
2025-10-30 02:20:21 +01:00
onebeastchris
e1e8b6734b More leniency for obsidian block breaking 2025-10-29 22:33:12 +01:00
onebeastchris
dc322cba0a Update gradle to 9.2.0 2025-10-29 21:03:42 +01:00
onebeastchris
d8058766cc Fix: Entity property min/max being flipped 2025-10-28 20:53:24 +01:00
onebeastchris
3c08b31453 Use old auth certificate chain to fix skin uploading 2025-10-28 19:09:38 +01:00
chris
29d77ff641 Support 1.21.120 (#5936)
* Initial work on 1.21.120 support

* Version item components, update creative items

* Global api changes
2025-10-28 15:33:32 +01:00
Eclipse
38893a9476 Implement hashers for new object component type (#5935)
* Implement hashers for new object component type

* Remove extra whitespace
2025-10-28 00:40:17 +01:00
onebeastchris
7375b748d7 Make real container check less strict
Closes https://github.com/GeyserMC/Geyser/issues/5912
2025-10-26 19:40:48 +01:00
onebeastchris
75f3f2c6ce Fix: right-click events for custom skulls
Resolves https://github.com/GeyserMC/Geyser/issues/5923
2025-10-26 19:24:22 +01:00
onebeastchris
5e7ce45d0b Merge remote-tracking branch 'upstream/master' 2025-10-26 19:02:42 +01:00