Commit Graph

5740 Commits

Author SHA1 Message Date
mworzala
d606051f1e
fix: incorrect camel case in item component nbt (fixes #2233) 2024-07-05 14:16:08 -04:00
Steank
0129aedae3
feat: Acquirable, ThreadDispatcher usage improvements (#2237)
* feat: fewer casts needed when working with Acquirable, ThreadDispatcher now usable with non-Entity tickables, AcquirableSource for synchronizing items added to dispatcher

* chore: rename AcquirableSource#getAcquirable -> AcquirableSource#acquirable, re-add getAcquirable to Entity with old signature, deprecate it
2024-07-04 20:11:30 +00:00
Steank
a49e1673e9
feat: Improvements to AttributeInstance API (#2221)
* feat: method to compute the value of an AttributeInstance with a given base instead of its stored one, add return values to AttributeInstance#removeModifier and AttributeInstance#addModifier

* chore: getValueWithBase -> applyModifiers
2024-07-04 18:22:40 +00:00
Not Flamgop
90fb708739
Autogenerate Feature Flags (#2201)
* Autogenerate Feature Flags (Won't work until MinestomDataGen 1.21-rev2 is released with datagen changes.)

* Rewrite feature flag auto-generation, add example in demo.

* Update data gen

* Remove dead code and fix access modifier on FeatureFlagImpl
2024-07-02 22:59:38 +00:00
DeidaraMC
3661ecbc54
chore: send keepalive packets immediately, simplify PacketProcessor#process (#2218)
* chore: send keepalive packets immediately, simplify PacketProcessor#process

* chore: make latency volatile
2024-07-02 22:56:05 +00:00
DeidaraMC
435ee1ff52
chore: int flags potion constructor (#2238) 2024-07-02 16:38:57 -04:00
ItsAnnie
73b308673b
Fix infinite recursion. (#2230) 2024-07-01 20:25:35 +00:00
TogAr2
4a03aeccea
Add Player#getCurrentItemUseTime (#2235)
* Add Player#getCurrentItemUseTime

* Use player ticks as reference instead of world age
2024-07-01 20:23:16 +00:00
DeidaraMC
efeb2229ea
fix: DustColorTransition packet reading/writing (#2236)
* fix: DustColorTransition packet reading/writing

* chore: fix tests
2024-07-01 16:02:04 -04:00
DeidaraMC
77af815afe
fix: adding an existing viewer to a scoreboard kicks them (#2231) 2024-06-30 16:22:20 -04:00
mworzala
8ea7760e6a
fix: concurrent region file creation 2024-06-29 13:48:27 -04:00
mworzala
edb73f0a5a
fix: update sprinting movement speed modifier serverside to keep synced with client state 2024-06-27 11:59:30 -04:00
mworzala
435534368b
Revert "fix: do not overwrite default movement speed attribute"
This reverts commit 66dc936cd6.
2024-06-27 11:41:15 -04:00
mworzala
66dc936cd6
fix: do not overwrite default movement speed attribute 2024-06-27 09:54:28 -04:00
mworzala
2c73b4b8f0
fix: preserve handler in block placement rule neighbor updates 2024-06-27 09:29:30 -04:00
MelonHell
5cb192157c
Ability to teleport player without teleport confirm (#2222)
* optional teleport confirm

* rename flag to shouldConfirm

* oops, this change is no longer needed

* fix last line formatting
2024-06-27 08:52:51 -04:00
mworzala
9b4aba2812
fix: correctly disconnect player if resource pack is not applied successfully (for required resource pack) 2024-06-26 18:55:08 -04:00
GreatWyrm
d5c6126a6b
Fix LivingEntity Damage Event Packet (#2209) 2024-06-25 12:25:16 +00:00
ItsAnnie
e513efb393
Fixed bug in LargeFramebuffer#preparePacket(int,int,int) (#2213) 2024-06-25 12:17:07 +00:00
Ilya Uskov
2b661fd48f
Drop eventnode listener ref on invalidate (#2212) 2024-06-25 12:02:24 +00:00
mworzala
5eb1eeaa22
fix: nbt byte for sections[].Y in anvil chunk data (fixes #2207) 2024-06-25 07:58:52 -04:00
mworzala
277dceacf1
fix: inverted vanilla exclusion 2024-06-20 16:59:25 -04:00
iam
f1d5940855
Fix events not triggering for bows, crossbows, etc. (#2199)
* Fix item update for bow, crossbow, shield, trident, spyglass, goat horn, brush
2024-06-17 00:26:03 +00:00
iam4722202468
898032c554 Fix add transaction 2024-06-16 19:17:56 -04:00
mworzala
c864773d38
fix: deserialize extra correctly in component serializer 2024-06-16 08:56:49 -06:00
unjoinable
80377e37d7
Update Player.java (#2195)
* Update Player.java

* Update PlayerConnection.java
2024-06-16 07:08:23 -06:00
bea4dev
8736fc43d8 fix projectile remove 2024-06-15 06:59:38 -06:00
bea4dev
461d0aa746
fix player health update animation (#2183) 2024-06-15 12:57:13 +00:00
Not Flamgop
6766e3c7ed Add feature flags to AsyncPlayerConfigurationEvent 2024-06-15 06:54:40 -06:00
bea4dev
0f81bc31ff
fix full light data is not sent (#2191)
* fix full light data is not sent

* remove fullLightCache
2024-06-14 01:28:36 +00:00
bea4dev
a909985d8e fix inventory packet for global translator 2024-06-13 12:22:30 -04:00
mworzala
2f5bb97908 feat: minor improvements, 1.21 release 2024-06-13 11:59:51 -04:00
mworzala
0e14214690 feat: add some ItemStack convenience methods 2024-06-13 11:59:51 -04:00
mworzala
f089708ed4 feat: mostly functional enchants, needs cleanup 2024-06-13 11:59:51 -04:00
mworzala
fadf30ac98 chore: start on effect types 2024-06-13 11:59:51 -04:00
mworzala
6345042aa6 chore: protocol set 2024-06-13 11:59:51 -04:00
mworzala
fc2ce0bde2 chore: start on enchant effect components 2024-06-13 11:59:51 -04:00
mworzala
af1f1c0f85 chore: start on enchantments 2024-06-13 11:59:51 -04:00
mworzala
df14b504f0 chore: 1.21-pre2 2024-06-13 11:59:51 -04:00
mworzala
141a251c1b feat: new packets, new registries except stubbed out enchantments, other minor changes 2024-06-13 11:59:51 -04:00
mworzala
e4bec393dc feat: hello, 1.21 2024-06-13 11:59:51 -04:00
Samuel
914ddd8dc6
Add Instance::getPlayerByUuid because for convenience (#2190) 2024-06-12 20:54:24 -04:00
mworzala
176d4bbe62
fix: incorrect region metatable offset when writing 2024-06-12 12:06:52 -04:00
mworzala
aca4c3db5e
fix: correctly account for global biome palette 2024-06-11 12:26:55 -04:00
unjoinable
1c528d8ae2
[RE] Update PlayerChangeHeldSlotEvent.java (#2179)
* Update PlayerChangeHeldSlotEvent.java

Slight changes in the docs since they were mis-leading.. Took me a while to realise what was wrong in my algorithm

* Update src/main/java/net/minestom/server/event/player/PlayerChangeHeldSlotEvent.java

Co-authored-by: Matz Hilven <48355802+MatzHilven@users.noreply.github.com>

---------

Co-authored-by: Matz Hilven <48355802+MatzHilven@users.noreply.github.com>
2024-06-09 22:01:39 +00:00
MelonHell
2fd79d05ee
Call UuidProvider in async (#2181)
Co-authored-by: Spliterash <me@spliterash.ru>
2024-06-09 17:59:18 -04:00
Samuel
b3aa996e1d
Fix the NBT representation of Unit (#2177) 2024-06-08 22:13:46 -04:00
FluxCapacitor
e17689902f
Fix ITEM_NAME component translation in SetSlotPacket (#2176)
* Fix ITEM_NAME component translation in SetSlotPacket

* Add test for item stack translation when automatic component translation is enabled
2024-06-08 17:00:44 +00:00
mworzala
4d61d5b07d
fix: re-add deprecated Audience#sendMessage variant which was actually required 2024-06-08 12:57:47 -04:00
kubbi
99f7667d9e
Include ourself as a viewer when sending SWING_MAIN_ARM animation (#2173)
* Include ourself as a viewer when sending SWING_MAIN_ARM animation

* Added API annotations
2024-06-08 10:29:58 -04:00