Commit Graph

893 Commits

Author SHA1 Message Date
themode
1dc9a20541 Move some constants out of PlayerInventory 2024-04-11 22:47:47 +02:00
themode
18406cb504 Style change 2024-04-11 22:27:51 +02:00
GoldenStack
1a497115b0 Inventory rework (88 squashed commits) 2024-04-11 22:27:51 +02:00
DeidaraMC
832f0e7f5a
feat: proper passenger position handling for most entities, fix passengers not always being applied to the client, don't sync passengers (#2060)
* feat: proper passenger position handling for most entities, fix passengers not being applied properly on the client sometimes

* chore: ditch the complex passenger solution as 1.20.5 makes this much simpler

* chore: change EntityViewer to check for a vehicle rather than isViewer, add a test case for this bug

* fix: test only worked in isolation

* chore: revert additional pos allocation

* chore: this instead of vehicle
2024-03-29 15:11:16 +00:00
DeidaraMC
59ea880d26
feat: added player#teleportWithFlags for relative teleportation (#2029)
* feat: added player#teleportWithFlags for relative teleportation

* requested changes and improvements

* add the new teleport method override player

* chore: cleanup

* chore: change relative flags from enums to constants

---------

Co-authored-by: DeidaraMC <DeidaraMC>
2024-03-28 01:45:55 +00:00
TheMode
9cfffc6ee4
Static packet ids (#2034) 2024-03-19 17:42:06 +01:00
Zax71
40ebd2b67f
Add getUUID() and getUsername() to MojangUtils (#2024)
* Add MojangUtils#getUUID() and MojangUtils#getUsername()

* Remove invalid UUID test as Java's UUID will not allow an invalid UUID

* Add `@Blocking` and some JavaDoc comments

* Override `MojangUtils#fromUuid(String)` with `MojangUtils#fromUuid(UUID)` and add a test

* Switch to IOException over custom ones
2024-03-18 03:25:35 +00:00
themode
6758737b80 Little nitpicks 2024-03-18 00:02:54 +01:00
Steank
d03466e5a3
Fix for #1883 (#1884)
* fix NPE when stopping server after MinecraftServer#init() but before starting

* add unit test

* fix for #1712

* fix hashCode contract violation between NamespaceID and KeyImpl objects
2024-02-09 15:53:52 -05:00
Spongecade
e9e58e4fce
Update Minecraft Wiki links to new domain
(cherry picked from commit 478eba12fb)
2024-02-09 15:03:05 -05:00
mworzala
8fafe723ae feat: add properties to configure chunk queue
(cherry picked from commit a910ce359d)
2024-02-09 14:27:43 -05:00
mworzala
6f30edb411 feat: implement 1.20.2 client-rate-limited chunk batching
(cherry picked from commit e24cb62583)
2024-02-09 14:27:43 -05:00
mworzala
c9ee2b56b2 chore: revert (mostly) ConnectionManager#getOnlinePlayers change
(cherry picked from commit 8859af87ba)
2024-02-09 14:27:43 -05:00
mworzala
fad5537017 chore: use common function to generate invalid state errors
(cherry picked from commit 7e47136f28)
2024-02-09 14:27:43 -05:00
mworzala
43baf51d8d fix: assume viewable storage is only used for play packets
(cherry picked from commit 9c1781b722)
2024-02-09 14:27:43 -05:00
mworzala
bd58b1b9f6 feat: cleanup, remove ConnectionManager#getOnlinePlayers
(cherry picked from commit 8a75e9e986)
2024-02-09 14:27:43 -05:00
mworzala
89f9b0d513 first join
(cherry picked from commit 47042abf12)
2024-02-09 14:27:43 -05:00
mworzala
2f85ce0231 stable configuration state join
(cherry picked from commit 465af0e051)
2024-02-09 14:27:43 -05:00
mworzala
f4a123192b fix: bad collision shape parsing
(cherry picked from commit 666bb98957)
2024-02-09 14:27:43 -05:00
mworzala
351d2197b1 collect all server options in ServerFlag file, other minor changes 2024-02-09 14:27:43 -05:00
mworzala
5929b811ec return terminal 2024-02-09 14:27:43 -05:00
mworzala
f31b74a386 hollow-cube/chunk-sending-rate-config
(cherry picked from commit a981bd78ff)
2024-02-09 14:27:43 -05:00
mworzala
f019fe69d0 hollow-cube/respectful-chunk-sending
(cherry picked from commit 9f3ee89506)
2024-02-09 14:27:43 -05:00
Matt Worzala
128c525b7c hollow-cube/placement-rule-improvement
* improve placement rule api and remove existing vanilla rules

* readme changes

(cherry picked from commit b0b640ccd7)
2024-02-09 14:27:43 -05:00
emortaldev
8a6a8f0050 hollow-cube/distance-squared-optimization
* Use distance squared where possible

* Update EntityFinder.java

* Update FollowTargetGoal.java

* Consistent methods for squared

(cherry picked from commit 4e0bc47429)
2024-02-09 14:27:43 -05:00
Zak Shearman
067227421f
Fix/mojang utils long name (#1792) 2023-03-18 01:02:18 +01:00
GreatWyrm
9890d71347
Minor Property Tweaks (#1591)
* Add System Property for changing Portal Teleport boundry, remove unnecessary PropertyUtils method

* Remove unneeded imports on changed files

* Restore getString in PropertyUtils, change to use JDK method
2022-12-30 21:52:16 -05:00
Noel Németh
77be05085d Clear chunk history on teleport and instance change, initialize history with less common chunk coordinate; fixes #1536 2022-11-26 11:10:44 +01:00
iam
1a013728fd
Blockiterator fix 4 (#1513) 2022-11-10 06:31:04 +01:00
iam
d496fcfe4a
Misc fix + more tests (#1511) 2022-11-09 23:46:53 +01:00
iam
88dd901438
Rewrite BlockIterator (#1509) 2022-11-09 23:07:31 +01:00
iam
361849c155
Blockiterator fix (#1508) 2022-11-07 23:35:32 +01:00
TheMode
993af51556
Use NetworkBuffer in packets (#1487) 2022-10-29 11:02:22 +02:00
TheMode
ba2816fc74
Buffer API rework (#1485) 2022-10-28 19:27:48 +02:00
TheMode
c95ced9493 Misc intellij suggestions
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 15:25:51 +02:00
TheMode
fc90fe8852 Remove some Collections usage
Signed-off-by: TheMode <themode@outlook.fr>
2022-09-06 15:08:36 +02:00
TheMode
1dd2cc72ee
1.19.2 (#774) 2022-09-05 13:54:58 +02:00
Marfien
eef95ae5d1
Add ComponentHolderServerPacket to some packets (#1275) 2022-09-02 22:23:42 +02:00
Konstantin Shandurenko
0c6599fee6
Checking that payload length is positive on packets reading (#1211) 2022-07-07 04:18:24 +02:00
Kieran Wallbanks
8b789e0f30
Allow changing the extensions folder via a system property 2022-07-06 15:34:40 +01:00
Noel Németh
c4479dabbd Fix BinaryReader#extractBytes 2022-07-05 20:02:27 +02:00
GoldenStack
54a6bcd2af
Command Tests (#1199) 2022-07-02 02:12:07 +02:00
TheMode
9f1fcd89ef Cleanup optionalLoadAll
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-25 11:02:10 +02:00
TheMode
8789a6c1f0 Add arrayCopy
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-09 21:35:18 +02:00
Noel Németh
bcab1b199b
Limit chunk update packets (#1128) 2022-06-04 22:04:57 +02:00
Michael
7b8445d0e2
Add EditBookEvent (#1120) 2022-05-24 14:08:00 +10:00
TheMode
ace42b6f46 Make ObjectArray interface
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-18 08:54:55 +02:00
themode
bfa2dbd3f7 Rename AutoIncrementMap 2022-05-16 08:39:18 +02:00
TheMode
8d7175af73
Replace thread locals to pool (#1079) 2022-05-16 07:34:47 +02:00
TheMode
7d930ee28d Replace PlayerConnection#sendPacket when possible
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 10:07:55 +02:00