Commit Graph

5698 Commits

Author SHA1 Message Date
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
iam4722202468
d1624c290a Add new navigator generator & follower 2024-06-08 02:01:35 -04:00
Samuel
4a6641ef53
Only consider online players for unregisterInstance (#2171) 2024-06-08 05:26:24 +00:00
GreatWyrm
d5a6392126
Fix Attribute Read/Write due to initialization shenanagins (#2174) 2024-06-08 01:23:26 -04:00
mworzala
ae7a80c59f
fix: inventory rebase fixes 2024-06-07 21:32:20 -04:00
mworzala
05546d8806 fix: tag escape 2024-06-07 21:28:21 -04:00
mworzala
83783e4e2c fix: fixes from rug pull 2024-06-07 21:28:21 -04:00
mworzala
75babcb747 chore: javadocs and remove experimental pose update flag 2024-06-07 21:28:21 -04:00
mworzala
b784cfc234 chore: delete a deprecated Audience#sendMessage variant 2024-06-07 21:28:21 -04:00
mworzala
b9616e6035 chore: delete Entity#setUuid and AsyncPlayerPreLoginEvent#setUuid 2024-06-07 21:28:21 -04:00
Samuel
37f466c207 Move static Entity lookup maps to EntityTracker (#2167)
* Move static Entity lookup maps to EntityTracker

* Specific method for changeUuid to keep thread-safety

* Fix bug from not recording position on register

* Exception on duplicate IDs in the EntityTracker

* Oops, expected stateCondition to behave like assert

* Didn't mean to make Entity::remove(boolean) public

* More descriptive EntityView::register error

* Warn when attempting to move untracked entity
2024-06-07 21:28:21 -04:00
mworzala
533f0332f9 fix: default zero use item time 2024-06-07 21:28:21 -04:00
mworzala
5c2a41b79d chore: minor cleanup, block display meta to use Block directly 2024-06-07 21:28:21 -04:00
mworzala
943e763305 chore: make all impls records + inner classes of Particle 2024-06-07 21:28:21 -04:00
mworzala
7fef89253e feat: generate particle data names automatically 2024-06-07 21:28:21 -04:00
DeidaraMC
8b82651f5b feat: improve particle api 2024-06-07 21:28:21 -04:00
mworzala
72ead6643b fix: fixes from merging #2128 2024-06-07 21:28:21 -04:00
TogAr2
1d3feeebd8 Item usage duration (#2128)
Fix build error

Move item usage completed to a different event

Add a way to check if the item usage has completed, or is aborted by the player

Only process animation when the item use time is not instant

Update javadoc

Re-add Player#isEating

Remove deprecated Player#callItemUpdateStateEvent

Allow specifying item usage duration inside PlayerUseItemEvent
2024-06-07 21:28:21 -04:00
mworzala
e3c1c06420 chore: remove some weird internal/experimental annotations 2024-06-07 21:28:21 -04:00
mworzala
5182f19dd7 feat: cya later jitpack 2024-06-07 21:28:21 -04:00
iam
c185337cb4 Pathfinding 1.20.5 (#2153)
* pathfinding

* mutablepoint fix in player
2024-06-07 21:28:21 -04:00
DeidaraMC
20e91c83cf feat: world border overhaul, turned into a record and handled by the instance (#2062)
* feat: world border overhaul, turned into a record and handled by instance

* chore: replace WorldBorder#defaultBorder() with a DEFAULT_BORDER constant
2024-06-07 21:28:21 -04:00
DeidaraMC
da0950329f feat: LivingEntity fire overhaul (#2122)
* feat: LivingEntity fire overhaul

* chore: missed method change
2024-06-07 21:28:21 -04:00
DeidaraMC
1ce17664c0 fix: setTimeUpdate transition from duration to ticks, renamed to avoid ambiguation with setTimeRate (#2067) 2024-06-07 21:28:21 -04:00
mworzala
fd19f12489 chore: one more 2024-06-07 21:28:21 -04:00
mworzala
0fd91b827c chore: more tests for components 2024-06-07 21:28:21 -04:00
mworzala
aa7c03aa12 chore: merge datacomponentmap and datacomponentpatch to simplify api. Preemptively diff with material prototype when constructing itemstack 2024-06-07 21:28:21 -04:00
mworzala
d4f15803c6 fix: correct handling of known packs exchange 2024-06-07 21:28:21 -04:00
mworzala
c7fd6e2f20 chore: missing entity metas & extract shooter to abstractwindchargemeta 2024-06-07 21:28:21 -04:00
mworzala
abf80e597e chore: cleanup networkbuffer additions 2024-06-07 21:28:21 -04:00
mworzala
f2665be443 chore: minor tweaks 2024-06-07 21:28:21 -04:00
mworzala
4674a42964 chore: depend on published version of data, not local 2024-06-07 21:28:21 -04:00
mworzala
a6ab761187 chore: cleanup & some component impl utility methods 2024-06-07 21:28:21 -04:00
mworzala
7f88699836 feat: add DynamicRegistry.Key and reference it instead of the underlying type. add wolf variant meta field 2024-06-07 21:28:21 -04:00
mworzala
aa697a4f94 feat: first pass of standardizing dynamic registries 2024-06-07 21:28:21 -04:00
mworzala
5fb5c82192 chore: allow chunk subclasses to override heightmap generation 2024-06-07 21:28:21 -04:00
mworzala
3d84d94c93 chore: start testing components, fix valueless components 2024-06-07 21:28:21 -04:00
mworzala
57ba1a54db fix: sync position after sending first chunk 2024-06-07 21:28:21 -04:00
mworzala
3073a6d556 chore: add PlayerAnvilInputEvent, other minor tweaks from self review 2024-06-07 21:28:21 -04:00
mworzala
e1a4ea1d74 fix: update from lighting fix 35 rebase 2024-06-07 21:28:21 -04:00
mworzala
bcffaefa1d chore: generalize ItemComponent to DataComponent (item component defs are still in ItemComponent) 2024-06-07 21:28:21 -04:00
mworzala
6f33d667b8 fix: correctly read declared recipes 2024-06-07 21:28:21 -04:00
mworzala
31fb33e8fd feat: initial anvilloader writer implementation 2024-06-07 21:28:21 -04:00