Commit Graph

5733 Commits

Author SHA1 Message Date
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
mworzala
cdc036cddd feat: block predicate impl & some more tests 2024-06-07 21:28:21 -04:00
mworzala
9043b6dfef chore: another stack size test 2024-06-07 21:28:21 -04:00
mworzala
97618d70c0 chore: rebase, add stack size 99 test case 2024-06-07 21:28:21 -04:00
mworzala
0650caa155 fix: do not convert optchat metadata to chat 2024-06-07 21:28:21 -04:00
mworzala
580438cde8 fix: correctly handle eating potions, time eating using ticks, default to correct drink/eat time from component, send damage event on living entity damage 2024-06-07 21:28:21 -04:00
mworzala
f14ac378b9 fix: circular init :| 2024-06-07 21:28:21 -04:00
mworzala
67fe007bb3 fix: dont oom reading item component, stub banner pattern component 2024-06-07 21:28:21 -04:00
mworzala
0ed5a2ad16 chore: cleanup anvil test 2024-06-07 21:28:21 -04:00
mworzala
ea59ddbf6e fix: light test and update eye height in view direction test 2024-06-07 21:28:21 -04:00
mworzala
bccd944df8 feat: initial ArgumentItemStack reader, other minor fixes 2024-06-07 21:28:21 -04:00
mworzala
1a4fbef801 fix: do not allow writing air in declare recipes packet (added ItemStack.STRICT_NETWORK_TYPE to represent this) 2024-06-07 21:28:21 -04:00
mworzala
92ce3e6d34 fix: particle packet reorder 2024-06-07 21:28:21 -04:00
mworzala
60d632404f fix: anvil not loading locations properly 2024-06-07 21:28:21 -04:00
mworzala
88ab249b37 chore: update datagenerator 2024-06-07 21:28:21 -04:00
mworzala
1a2e817eed chore: cicd trigger 2024-06-07 21:28:21 -04:00