Commit Graph

5721 Commits

Author SHA1 Message Date
mworzala
35e395e9b7
chore: bump data gen to fix light[level=0] emission value 2024-07-25 23:26:00 -04:00
TheMode
f53625f35b
fix attribute packet (#2305) 2024-07-25 16:46:56 -04:00
themode
7c121eee21 Remove static biome registry, simplify unit generation 2024-07-25 13:42:18 +02:00
TogAr2
247db8c0c6
Make loyalty level a byte (#2300) 2024-07-24 17:56:47 +00:00
Steank
1ef0e26da8
feat: add ability to clear modifiers from an AttributeInstance (#2296)
* feat: add ability to clear modifiers from an AttributeInstance, as well as get all AttributeInstances from LivingEntity

* chore: getAttributeInstances -> getAttributes, protect certain modifiers from being cleared by AttributeInstance#clearModifiers

* fix: call refreshCachedValue properly
2024-07-24 17:54:25 +00:00
GoldenStack
6406b369f5
Remove cursor items from individual inventories (#2294)
* Remove cursor items from individual inventories

* Remove unused method and re-add but deprecate old cursor methods

* Fix links and remove unused import
2024-07-24 13:51:16 -04:00
Steank
99ca16e263
feat: thread safety for AttributeInstance (#2297)
* feat: thread safety for AttributeInstance

* fix: refreshCachedValue now takes the new baseValue rather than reading from the field internally
2024-07-24 14:09:18 +00:00
AmGone_
9c8593d79c fix: node followers using the speed attribute base value instead of value + modifiers 2024-07-23 22:59:54 -04:00
mworzala
1f34e60ea6
chore: add cursor position to PlayerBlockPlaceEvent 2024-07-17 21:02:49 -04:00
mworzala
e5372fd779
fix: optional world pos in lodestone tracker item component (fixes #2270) 2024-07-16 20:07:21 -04:00
Steank
60a83fd39b
feat: allow changing the number of threads used by the server process ThreadDispatcher (#2268) 2024-07-16 08:23:14 -04:00
TogAr2
6fc64e3a5d
Call ItemUpdateStateEvent before clearing item use (#2258) 2024-07-15 13:52:11 -04:00
iam
7dd1792096
Fix biome sounds + particles (#2265)
* fix biome sounds + particles

* Fix tests
2024-07-13 12:23:32 -04:00
themode
6932647e24 Move entity meta map to MetadataHolder 2024-07-13 10:04:44 +02:00
TheMode
e4267c796d
MetadataHolder (#2263) 2024-07-13 05:34:29 +02:00
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