Commit Graph

5706 Commits

Author SHA1 Message Date
themode
7d43da919d Move all flags to ServerFlag 2024-07-12 16:18:30 +02:00
themode
345451f397 Remove Instance/PlayerUtils 2024-07-12 15:42:38 +02:00
themode
591d161821 Add getAndSetTag to TagWritable 2024-07-12 15:35:19 +02:00
themode
a68d13a995 get back jmh/jcstress 2024-07-12 15:23:07 +02:00
GreatWyrm
79716ab749 Fix NullPointer when changing equipment before checking attributes 2024-07-11 15:29:56 -04:00
mworzala
2be6f9c507
fix: geyser keepalive incompatibility 2024-07-10 16:18:30 -04:00
Samuel
40517df02f
Add Block::original so it's easier to compare by block type (#2255)
* Add Block::original so it's easier to compare by block type

* Requested changes
2024-07-10 14:20:44 +00:00
Samuel
c7efa827a5
Add a few useful methods to Direction (#2254) 2024-07-10 10:14:14 -04:00
Am Gone
fda23e4ea1
Fix chunk lighting optimization (#2244)
* Fix chunk lighting optimization

* Apply requested changes
2024-07-09 18:50:32 +00:00
mworzala
1903e8dff2
chore: enforce and document notnull chunk loader, add noop impl 2024-07-08 11:58:15 -04:00
mworzala
afae77a41c
chore: add doc about kicking player during config 2024-07-08 11:57:17 -04:00
DeidaraMC
d5c2f7df28
fix: AttributeInstance#addModifier not refreshing cachedValue for new modifier values (#2234)
* fix blunder

* fix: use equals check for modifier difference when adding

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
2024-07-08 15:50:55 +00:00
DeidaraMC
328b0e7868
chore: add AlphaColor, convert Color to class, fix entity_effect particle (#2240)
* chore: add AlphaColor, convert Color to class, fix entity_effect particle

* chore: add `Particle.EntityEffect#withColor(RGBLike)`, `Color#withAlpha`

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
2024-07-08 15:38:33 +00:00
GreatWyrm
5caa7ce348
Automatically update an entity's attributes when changing equipment (#2228)
* Automatically update an entity's attributes when changing equipment

* fix merge conflict

* Update attributes for players when their items change

* Add attribute tests
2024-07-08 15:34:23 +00:00
Steank
8e1cb18fb6
feat: ShapeImpl#collisionBoundingBoxes, ShapeImpl#occlusionBoundingBoxes + documentation (#2248) 2024-07-08 15:24:43 +00:00
themode
6877277b60 Add material setter in builder 2024-07-07 05:57:06 +02:00
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