1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-22 16:29:25 +00:00
Commit Graph

178 Commits

Author SHA1 Message Date
onebeastchris
2916f3f18f Minor cleanup 2025-12-17 14:58:12 +01:00
onebeastchris
199737d1ef Expose entity hitboxes in API, store bedrock position to avoid re-calculation 2025-12-16 23:03:39 +01:00
onebeastchris
899bd29af7 correct javadoc 2025-12-02 00:51:55 +01:00
onebeastchris
d4f07135f4 Set up feature branch publishing and vertical offset applying 2025-12-01 16:35:30 +01:00
onebeastchris
a497d3d84c API polishing; properly initialize height/width 2025-11-30 15:28:47 +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
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
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
c57f2508cc EntityDefinition -> EntityTypeDefinition 2025-11-22 19:53:29 +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
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
5a7bf1ba84 Start working on custom entity API (for real this time) 2025-11-22 17:41:00 +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
KabanFriends
9d5e1cbcb3 Fix incorrect priority range validation message in PriorityOption (#5939) 2025-10-28 21:36:14 +01:00
onebeastchris
1a02b91293 Fix cocoa beans, rename shouldSkipSaving to skipSaving in the SessionAcceptCodeOfConductEvent 2025-10-11 15:59:01 +02:00
onebeastchris
e8e6c2bdbd Remove pick item remains 2025-10-08 21:47:52 +02:00
Zigy
d869e745e0 Custom entity properties API (#5788)
* Custom entity properties API

* Fix build fail

* Resolve comments

* Entity property registration improvements

* oops

* Add boolean and enum property sync API

* default value + no packet if value unchanged

* Don't send packet if no properties were updated

* small refactor

* the refactor, part two

* Move updateProperties to GeyserEntity

* Don't inherit properties from parent

* temp

* type-safe property updating

* Address review

* call the GeyserDefineEntityPropertiesEvent once, require specifying entity identifier instead of calling the event once for every entity type

* Migrate to identifiers (from custom items v2, thanks eclipse), remove duplicate logic

* fix test

* Merge 1.21.9, update copper golem entity property usage

* fixup javadocs

---------

Co-authored-by: onebeastchris <github@onechris.mozmail.com>
2025-10-08 14:39:34 +02:00
onebeastchris
c8c035d664 Small api event cleanup, fix neoforge to-do's 2025-10-04 00:14:59 +02:00
onebeastchris
ca23e501b4 Cleanup api, remove unused stored item mappings 2025-10-03 20:21:44 +02:00
Eclipse
9666390ba2 Expose CodeOfConductManager through API events 2025-09-25 15:24:46 +00:00
chris
a41cc9e4a3 API 2.8.3: Support 1.21.100, support sending skins via api (#5742)
* Support 1.21.100

* Add GeyserConnection#sendSkin, #joinAddress and #joinPort (#5641)

* Add GeyserConnection#sendSkin and GeyserConnection#clientConnectionAddress

* address reviews

* Bump to 2.8.3

* Split into joinAddress / joinPort

* Update api/src/main/java/org/geysermc/geyser/api/connection/GeyserConnection.java

* Update api/src/main/java/org/geysermc/geyser/api/connection/GeyserConnection.java

* improve address / port parsing
2025-08-05 16:25:23 +02:00
Konicai
70bdb7f66a Refactor GameProtocol to remove version slash-combinations (#4979)
* Refactor GameProtocol

* Document 1.21.22 as a supported version, update MinecraftVersion javadoc

* Only expose latest Bedrock protocol & version, ensure latest version in ping

* Also indicate 1.21.8 Java edition support in the geyser api

---------

Co-authored-by: onebeastchris <github@onechris.mozmail.com>
2025-07-27 20:37:51 +02:00
onebeastchris
34e7dc96a2 Remove PlayerLoginEvent usage on Geyser-Spigot 2025-07-11 03:16:18 +02:00
onebeastchris
473cd0bb97 Add since annotations to new API methods 2025-06-26 00:23:03 +02:00
Aurorawr
2ca4ea7652 Introduce sendCommand API method (#5582)
* Introduce sendCommand API method

* Ensure Geyser/extension commands are caught

* Remove handleCommand from the translator, use executeCommand directly

* Relocate the command handling logic again, using the new one this time

* Fix up the javadocs

* Rename back to sendCommand, rename the packet method

* Also change the bedrock command translator

* And another one...

* Ensure we forward commands directly when catching exceptions during command execution

---------

Co-authored-by: onebeastchris <github@onechris.mozmail.com>
2025-06-26 00:21:40 +02:00
Eclipse
3286e884ae Address reviews 2025-06-18 17:06:54 +00:00
onebeastchris
facae0926e Merge remote-tracking branch 'upstream/master' into feature/1.21.6
# Conflicts:
#	README.md
#	core/src/main/java/org/geysermc/geyser/network/GameProtocol.java
#	core/src/main/java/org/geysermc/geyser/network/UpstreamPacketHandler.java
#	core/src/main/java/org/geysermc/geyser/session/GeyserSession.java
#	core/src/main/java/org/geysermc/geyser/session/cache/tags/GeyserHolderSet.java
#	core/src/main/resources/bedrock/entity_identifiers.dat
#	gradle.properties
2025-06-17 17:42:57 +02:00
chris
871390b803 1.21.90 support (#5589)
* Initial changes for 1.21.90

* Update Bedrock protocol, fix camera present serializer

* yeet debug

* Set auth chain data

* Update dependencies, add bstats metrics for haproxy usage
2025-06-17 03:23:53 +02:00
Eclipse
05f1bf2135 Add methods to open quick actions and pause screen additions dialog tags and add command to open quick actions dialog tag 2025-06-06 14:24:26 +00:00
onebeastchris
ccba72afe2 Fix issue with ResourcePack#builder(PackCodec) 2025-05-29 15:20:19 +02:00
onebeastchris
ae8062c5bc Revert api breaking change 2025-03-25 17:23:43 +01:00
chris
69329f2cad Feature: Resource Pack API additions - ResourcePackOptions and a GeyserDefineResourcePacksEvent (#4978) 2025-03-25 15:49:18 +01:00
chris
ea13e588cd Fix: non-vanilla custom blockstate registration (#5310)
* Try fixing custom blockstate registration

* another attempt; round two

* register collisions

* don't register block states twice
2025-02-02 15:16:34 +01:00
chris
58e2f17e08 Fix: Brand message being sent too early (#5265)
* Fix: Brand message not being sent, send lowercase locale, ensure the MCPL default listener comes first

* Refactor disconnect handling

* apparently default listeners aren't always first... huh

* fix issue with bundle cache attempting to check a null inventory
2025-01-12 20:44:33 +01:00
onebeastchris
650cb8d473 remove isValidRepairItem in favor of component, remove unneeded item tiers, deprecate repair items and tool tier in NonVanillaCustomItemData 2024-12-03 18:35:02 +08:00
chris
c145c3f495 Fix: Don't include player offset when querying player position in the api (#5168) 2024-11-27 22:51:59 +08:00
chris
d94c6ffcb6 API: Expose a GeyserConnection's protocol version (#5083)
* Add protocolVersion() to GeyserConnection

* specify which protocol
2024-10-23 03:49:04 +08:00
chris
ce62824899 Feature: Add method to close forms in the API (#4957)
* Add closeForm api method

* Move version check to GameProtocol
2024-08-12 23:29:00 +02:00
Konicai
5019b5aded Fix Geyser Api BuildData directory 2024-07-31 20:01:31 -05:00
chris
f3ba5848c2 Extensions should specify geyser api version in the extension.yml (#3880)
* let extensions specify geyser api version instead of base api version

* fix spacing, @link formatting, properly check for compat

* Proper warning, update to API changes to also check patch version

* Bump base-api version

* adapt to new base api changes

* Actually bump to 2.4.1

* Update api/src/main/java/org/geysermc/geyser/api/extension/ExtensionDescription.java

* Address reviews

* Address reviews

* Update to latest base api changes; proper extension *human* version checking

* no need to apply a plugin, that's the default

---------

Co-authored-by: Konicai <71294714+Konicai@users.noreply.github.com>
2024-07-31 20:01:31 -05:00
chris
813d197887 Feature: API to switch items in the offhand/mainhand (#4819) 2024-07-31 20:01:31 -05:00
chris
48311f8771 Add a /geyser ping command (#4131)
* Init: Add /geyser ping command

* Block just console execution, not everything but console senders

* Use RTT as that seems to vary less wildly compared to getPing()

* Cleanup, use lang strings

* Add ping() method to GeyserConnection in api

* Update to cloud changes
2024-07-31 20:01:31 -05:00
Konicai
87ab51cb28 Cloud for commands (#3808)
Co-authored-by: onebeastchris <github@onechris.mozmail.com>
2024-07-31 20:01:31 -05:00