Commit Graph

4786 Commits

Author SHA1 Message Date
emortaldev
8eb089bf3e
Add playSound with position to Player (#1676) 2023-01-08 19:38:30 -05:00
emortaldev
84846f663b
Add nullability for LivingEntity methods (#1668) 2023-01-07 22:10:53 -05:00
NitrinCloud
aa621021e2
Support dynamic selection of a port using '0' (#1661) 2023-01-07 08:39:32 +01:00
HEROOSTECH
f291437ada
Hand in PlayerItemAnimationEvent (#1650)
* Hand in PlayerItemAnimationEvent

* Hand in PlayerItemAnimationEvent
2023-01-03 19:11:17 -05:00
Kezz
24cc458659
Implement some Adventure methods into ConsoleSender (#336)
* Implement some Adventure methods into ConsoleSender

* Remove getUuid from CommandSender/ConsoleSender

* rebase and review fixes

Co-authored-by: mworzala <mattheworzala@gmail.com>
2022-12-30 22:24:01 -05:00
off-by-0point5
6870c37b94
Add commit info from JitPack into Minestom's jar (#1272)
* Compile git info into Git.java

* Move blossom task into tasks block

* Fix javadoc task

* Improve readability

* Remove version field

* Hopefully preventing inline by javac

* Make Git class final

* Remove prefixes for getters

* Make getters static
2022-12-30 22:09:07 -05: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
TheMode
c04028336d
Entity viewable tracking (#1494) 2022-12-31 02:47:18 +01:00
George Linkovsky
91a344aa92
Fix player dimension packages (#1630) 2022-12-28 15:29:02 +01:00
Freddi
eb06ba8664
Update FakePlayer.java (#1603) 2022-12-21 07:12:31 +01:00
Jesse
809d9516b2
Fix incorrect arrow no clip mask bit (#1574) 2022-12-14 10:51:51 +01:00
GoldenStack
8585e0ceb0
Fix incorrect lectern inventory size (#1566) 2022-12-12 19:09:27 +01:00
iam
7361bf0825
Improve consistency of team packets (#1556) 2022-12-07 11:13:12 +01:00
Obyvante
ee7ac62b75
Prevent unsafe velocity packet (#1550) 2022-12-05 13:06:18 +01:00
tahmid-23
e5d0a43ba4
add BungeeGuard authentication (#1502) 2022-11-28 06:13:09 +01:00
Zak Shearman
84f4ae040e
Re-word docs for Entity#lookAt(Entity) (#1543) 2022-11-27 23:01:50 +01:00
Zak Shearman
a81fca948e
Fix coordinate_scale type (int -> double) (#1542) 2022-11-27 20:20:36 +01:00
Noel Németh
d37f40a1bb Fix missing chunk history update 2022-11-26 22:08:08 +01:00
GreatWyrm
27f3b5d4ee
Fix entities vanishing upon respawn (#1497) 2022-11-26 21:23:39 +01: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
42195c536b Fix broken buffer resize
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-31 10:06:05 +01:00
Huynh Tien
93718276c5
Strong Ref for child EventNode (#1491) 2022-10-29 12:33:24 +02:00
Huynh Tien
01e2c43b5d
try fixing EOF on ClientClick (#1490) 2022-10-29 12:06:18 +02: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
c3df2af306 Unused EventCallback
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-28 11:03:24 +02:00
TheMode
e11d15af0d Fix event node child/map leak
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 22:32:22 +02:00
TheMode
b4af87b8a4 Fix event node leak
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 21:02:27 +02:00
TheMode
caa150d923 Use constant default anvil loader
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 15:52:59 +02:00
TheMode
c95ced9493 Misc intellij suggestions
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 15:25:51 +02:00
TheMode
3e2ac14048
Dedicated GameProfile record (#1482) 2022-10-27 14:33:48 +02:00
Huynh Tien
d7e958fa07
ComponentLogger & Colored Terminal (#1460) 2022-10-26 19:52:01 +02:00
Huynh Tien
632922bce5
move reflect fields in Extension to ExtensionClassLoader (#1478) 2022-10-25 17:11:59 +02:00
GreatWyrm
6316eeb90e
Fix respawning players falling into the void (#1454) 2022-10-25 03:04:41 +02:00
GreatWyrm
60751d546e
Update the list of entity poses to 1.19 (#1439) 2022-10-10 23:40:10 +02:00
Omny
5537faabac
add new 1.19.2 effects (#1437) 2022-10-10 20:41:43 +02:00
Zak Shearman
7eb9d3fdd7
Fix yaw/pitch order in SpawnEntityPacket (#1436) 2022-10-09 22:50:18 +02:00
Arektor
17ef1c2f57
Reduce velocity update rate (#1426) 2022-10-07 17:19:29 +02:00
GreatWyrm
87c3dc3f76
Replace char literal with unicode literal (#1430) 2022-10-07 12:40:58 +02:00
Arektor
95fa6607ed
Small improvements to entity movement (#1421) 2022-10-02 04:12:54 +02:00
Vendo
caaad1693e
Skip loading empty sections (#1409) 2022-09-30 11:28:47 +02:00
Koding
18c46481f4
Fix incorrect functionality of ClientSpectatePacket (#1402) 2022-09-14 13:44:43 +02:00
TheMode
fc90fe8852 Remove some Collections usage
Signed-off-by: TheMode <themode@outlook.fr>
2022-09-06 15:08:36 +02:00
Koding
4a5736cc7c
Fix unnecessary allocations with block properties function (#1387) 2022-09-06 14:55:21 +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
TomJuri
c270712798
Make the start log use BrandName instead of hardcoded "Minestom" (#1380) 2022-09-02 22:21:47 +02:00
Obyvante
c694c4074e
Fixed metadata issue. (#1378) 2022-08-30 21:37:25 +02:00
Ilya @ Gloryx
978a398f64
Fix a harmful javadoc typo (#1372)
Original: kill if health is **> (more)** or equal to 0 and is not yet dead
2022-08-29 12:43:36 +02:00
KrystilizeNevaDies
83011eb903
fix written book meta to allow modern components (#1359) 2022-08-23 09:35:37 +10:00
iam
f5f323fef9
Physics improvement (#1320) 2022-08-10 01:49:42 +02:00
iam
4a79a3af26
Refactor physics to simplify code (#1315) 2022-08-08 00:25:08 +02:00
Xavier Niochaut
f62d4e47fc
Heavily reduce memory consumption of AnvilLoader (#1005)
* (Heavily) Reduce memory consumption of AnvilLoader
/!\ requires building and publishing Hephaistos master to local Maven for now

* Cache biome mapping per chunk instead of per section

* Starting work on integration tests

* [AnvilLoader] Address issue #423

* [AnvilLoader] Use new Hephaistos saving API

* Use MavenCentral version of Hephaistos
2022-08-05 21:05:23 +02:00
GreatWyrm
af9dcf258a Move convenience method to PackeetGroupingAudience 2022-08-02 06:23:20 -04:00
GreatWyrm
5aa8b97c60 Add convinence playSound method in instance 2022-08-02 06:23:20 -04:00
Konstantin Shandurenko
89a09f326e
Fix for inventory window id generation (#1292) 2022-07-30 18:54:10 +02:00
TheMode
92b11eabbd Move traversePathWrite call
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-29 19:30:09 +02:00
TheMode
0e082634d5 Fix conversion during tag update
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-29 16:51:45 +02:00
TheMode
614559bcdb Unnecessary TagHandlerImpl getters
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-28 13:57:13 +02:00
TheMode
0db5993bfb Use array for metadata lookup instead of map
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-26 16:40:31 +02:00
Noel Németh
9e5de35fa7
New command parser (#1235) 2022-07-25 19:34:40 +02:00
tahmid-23
3690ad1623
fix component flattening (#1266) 2022-07-25 05:58:03 +02:00
TheMode
d596992c0e
Include command aliases in graph (#1244) 2022-07-17 23:13:25 +02:00
TheMode
07a0fb129c Rename node executor
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-17 22:41:28 +02:00
Noel Németh
c885ca1d7c
Fix index out of bounds when creating a command packet (#1243) 2022-07-17 20:28:14 +02:00
Konstantin Shandurenko
284da06578
Fix for breaking blocks of mismatching properties in adventure mode (#1242) 2022-07-17 20:08:04 +02:00
TheMode
366f08f7f9
Graph api (#1233) 2022-07-13 22:45:38 +02:00
TheMode
1cdee4a8e1
Revert "Initial graph api (#1230)" (#1231)
This reverts commit 3999c30961.
2022-07-13 01:16:18 +02:00
TheMode
3999c30961
Initial graph api (#1230) 2022-07-13 01:14:23 +02:00
Steank
0989c220f6
Fix NullPointerException, deadlock when stopping the server (#1220) 2022-07-08 21:31:54 +02:00
Konstantin Shandurenko
de5a396c15
Do not send CloseWindowPacket if inventory was reopened during closing (#1218) 2022-07-08 17:37:56 +02:00
Konstantin Shandurenko
4feac211c7
Item pickup fix (#1216) 2022-07-08 17:37:24 +02:00
TheMode
1bf750a603 Make PlayerPacketOutEvent cancellable
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-07 18:12:54 +02:00
Konstantin Shandurenko
0c6599fee6
Checking that payload length is positive on packets reading (#1211) 2022-07-07 04:18:24 +02:00
Konstantin Shandurenko
4884051c6a
BlockCollision#canPlaceBlockAt player check fix (#1213) 2022-07-07 04:16:56 +02:00
Noel Németh
ba73c742f4 Fix syntax condition isn't checked when building the graph 2022-07-06 17:01:11 +02:00
Kieran Wallbanks
8b789e0f30
Allow changing the extensions folder via a system property 2022-07-06 15:34:40 +01:00
TheMode
0309d12540 Test loop/group arguments
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-06 11:12:08 +02:00
Konstantin Shandurenko
23f03258b9
Item and experience orbs pickup fix (#1208) 2022-07-06 01:28:15 +02:00
Konstantin Shandurenko
90fa4e46ea
Catching everything in Worker's selector (#1207) 2022-07-06 01:27:24 +02:00
Noel Németh
10a2967f33 Fix wrapper arguments not forwarding node properties 2022-07-05 20:25:09 +02:00
Noel Németh
c4479dabbd Fix BinaryReader#extractBytes 2022-07-05 20:02:27 +02:00
Noel Németh
3e7719b6d1 Add missing parsers 2022-07-05 20:01:51 +02:00
Noel Németh
81c978ee9b Fix parser namespaces 2022-07-05 19:24:41 +02:00
Noel Németh
2a1abdbaf4 Fix subcommands not being added to the graph and (maybe) better separate responsibilities of the relevant classes 2022-07-05 01:36:42 +02:00
Noel Németh
793561e0cb
Simplify command graph generation (#1200) 2022-07-02 05:39:39 +02:00
GoldenStack
54a6bcd2af
Command Tests (#1199) 2022-07-02 02:12:07 +02:00
Steank
18ab44706b
Fix floating point precision issue with RayUtils method (#1196) 2022-07-01 19:00:40 +02:00
TheMode
4a40805ca0 Fix attribute nbt
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-30 23:21:32 +02:00
TheMode
9a28e6ba87 Fix chunk invalidation during generation forking
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-30 23:12:42 +02:00
TheMode
a04012d9bf Fix npe
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-25 13:01:16 +02:00
TheMode
cda46d184e Move item impl code to the impl class
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-25 11:34:09 +02:00
TheMode
19bb23fe3d callCancellable style
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-25 11:24:36 +02:00
TheMode
9f1fcd89ef Cleanup optionalLoadAll
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-25 11:02:10 +02:00
TheMode
6ecede145e
Improve tag performance + concurrency tests (#1165) 2022-06-25 10:36:50 +02:00
SuperKael
1d469ca6a6
Add missing enum values to Biome.Category. (#1168) 2022-06-18 02:26:52 +02:00
Johnnywoof
bab2c22a51
Use predicate for entity targeting (#1099)
* Use predicate for entity targeting

* Change range variable in deprecated constructor from double to float

* Use distance squared
2022-06-15 03:07:42 +10:00
Cody
3821d204cf
Allow for 'F' to be pressed in inventories (Fixes #585) (#1164) 2022-06-14 07:38:44 +02:00
Ativendus
bb3c232256
Added annotations (#1161) 2022-06-12 20:41:50 +02:00
themode
7be96b7679 Allow tag write without allocation if compatible with the previous entry 2022-06-11 17:38:37 +02:00
TheMode
ef20430e54 Use ofEntries for EntityType meta
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-09 21:41:28 +02:00
TheMode
8789a6c1f0 Add arrayCopy
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-09 21:35:18 +02:00
TheMode
20dcf91f4a Do not write packet after disconnection
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-09 16:40:51 +02:00
Noel Németh
b112248ae8
Fix by checking if the connection uses inet socket (#1152) 2022-06-05 14:53:28 +02:00
TheMode
2289cf32e1 Fix unnecessary allocation on ping
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-04 22:43:02 +02:00
Noel Németh
bcab1b199b
Limit chunk update packets (#1128) 2022-06-04 22:04:57 +02:00
TheMode
ff712575ad Fix velocity packets being sent for flying players
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-04 20:38:31 +02:00
Dominik Strebinger
58b6e90142
Add PlayerInstanceEvent (#1135) 2022-05-29 20:42:45 +02:00
Zak Shearman
a01ff09563
Return null, don't throw NullPointerException (#1131) 2022-05-28 11:39:50 +02:00
Huynh Tien
a4f392d116
BungeeCordProxy: skip if the name is not textures or the value & signature does not exist (#1127) 2022-05-26 16:41:50 +02:00
Michael
7b8445d0e2
Add EditBookEvent (#1120) 2022-05-24 14:08:00 +10:00
TheMode
f5dc048185 Fix block nbt update
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-23 23:40:57 +02:00
Huynh Tien
025cdab7e6
A simple Completer for MinestomTerminal & Fix LineReader visual issue (#1091) 2022-05-23 21:59:34 +02:00
TogAr2
3cd73310cd
Account for flying in velocity calculation (#1111) 2022-05-22 16:46:54 +02:00
TheMode
f80f653ee0 Fast exit for retrieveAll
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-19 12:39:27 +02:00
TheMode
d4875b2838 Slightly improve updateAll
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-18 16:37:25 +02:00
TheMode
ace42b6f46 Make ObjectArray interface
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-18 08:54:55 +02:00
TheMode
367c389bc6 Additional collision style
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-17 18:35:38 +02:00
TheMode
83ff0daff7
Collision cleanup (#1085) 2022-05-17 17:09:16 +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
MrGazdag
5f9d44433d
Fix Entity#lookAt(Pos) not correctly looking at the position (#1058) 2022-05-12 23:35:46 +02:00
Steank
f774cc3b0f
Fix entities falling through tall blocks (#1047) 2022-05-11 21:30:48 +02:00
Articdive
e4de03ab1a
Automatically generate dye colors. (#1051) 2022-05-10 20:03:23 +02:00
TheMode
e4c1c9fe8d Cleanup Messenger, fix uuid
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 10:17:06 +02:00
TheMode
7d930ee28d Replace PlayerConnection#sendPacket when possible
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 10:07:55 +02:00
TheMode
abeda20646 Misc inventory style
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 07:42:18 +02:00
Moulberry
ad0440711f
Some tweaks to AbstractInventory/PlayerInventory, as well as various Tests (#1049) 2022-05-10 07:33:05 +02:00
TheMode
dfd8c94f5f More style
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 06:42:53 +02:00
TheMode
27c4c99949 Misc style
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 04:10:57 +02:00
TheMode
37ba3c7893 Simplify tag list
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-09 20:56:06 +02:00
TheMode
64de8f87c0 Add EquipmentSlot.armors
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-07 17:19:51 +02:00
TheMode
cb01b08b04 Add experimental tag update methods
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-07 16:26:39 +02:00
TheMode
2720d9ada2 Use checkIndex
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-07 10:58:19 +02:00
Kiip
35ae8bc07a
Only predict projectile higher if there is gravity (#1016) 2022-05-06 20:55:31 +02:00
iam
cef824bc16
Fix expanded bounding box (#1020) 2022-05-05 13:42:07 +02:00
themode
c009ef0505 Avoid slow synchronized path during reference building 2022-05-04 18:24:15 +02:00
TheMode
fdd3e2c53c Seal snapshot interfaces
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-04 13:25:24 +02:00
TogAr2
23d7df7cbb
Entity pose fixes (#487) 2022-05-03 22:29:38 +02:00
TheMode
0dc7f52a50 Use an identity map to store Snapshotable
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-03 18:55:41 +02:00
TheMode
1384bc0c18 ItemStack.Builder should only be TagWritable
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-02 21:51:33 +02:00
TheMode
d8a1003368 Allow path on view tags
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-02 21:30:22 +02:00
TheMode
68fc705cd3 More doc to TagHandler
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-02 13:34:05 +02:00
Cody
ef53559349
Fix #1009: Make canPlaceOn and canDestroy use Material instead of Block (#1010) 2022-05-01 10:44:33 +02:00
TheMode
8a876a4a59 Entry must use NBTType
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-29 18:24:55 +02:00
Weiiswurst
afddb6f549
hasVelocity is now false if the entity just has gravity (#975) 2022-04-28 16:06:53 +02:00
CryptForge
4b0f10d448
Prevent invisible item when consumeBlock is false (#1001) 2022-04-28 14:50:39 +02:00
emortal
a78309a2b2
Fix block break packet using resultant block (#996) 2022-04-27 16:14:54 +02:00
TheMode
12543acf5e Simplify path recursive removal
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-27 04:46:30 +02:00
Weiiswurst
9ce5a79cc8
Ignore arrows and spectators (#986) 2022-04-26 13:01:47 +02:00
TheMode
42c6e75906 Fix handler invalidation
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-26 06:37:26 +02:00
TheMode
a74b6ce220 Temporary tag fix
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-25 07:26:26 +02:00
TheMode
49a69d353e More preparation for CAS tag write
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-25 05:45:22 +02:00
GreatWyrm
d17c95b826
Rename outdated LivingEntityMeta methods (#960) 2022-04-24 23:42:34 +02:00
TheMode
765d6057da Avoid entity field lookup
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-24 05:37:47 +02:00
TheMode
0f2be00291 Make Metadata.Entry sealed
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-24 05:09:39 +02:00
TheMode
4b7f8213aa Entity metadata cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-24 05:00:28 +02:00
Bloepiloepi
d87a8f72c7
Fix Entity#takeKnockback and gravity (#943) 2022-04-23 21:37:27 +02:00
DasLixou
e2dac1c46e
Made EatEvents ItemEvents (#965) 2022-04-23 19:26:22 +02:00
Weiiswurst
c32153d221
Fix #942 (#962) 2022-04-22 19:03:28 +02:00
TheMode
057109c94e Add experimental TagSerializer.COMPOUND
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-22 04:32:44 +02:00
TheMode
3f98bde82e No need to return a new meta
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-21 18:43:42 +02:00
TheMode
3c0abb0409 Make ItemStack.Builder extends Taggable
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-20 23:14:37 +02:00
TheMode
917302cbbb Avoid potential stacktrace generation
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-20 17:19:45 +02:00
TheMode
a4adbb49fe Add a new Pos#sameView
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-19 21:09:02 +02:00
Zak Shearman
64f617c81c
Add Pos#withLookAt (#945) 2022-04-19 20:31:05 +02:00
Weiiswurst
21e6ed4918
Check for adventure mode when finishing to break a block (#948) (#949) 2022-04-19 16:52:56 +02:00
Bloepiloepi
f0fa81b712
Use smaller position offset when placing blocks (#940) 2022-04-18 01:15:38 +02:00
iam
bb236b34b6
Stop update from being sent to the player when the player places a block on themselves (#939) 2022-04-17 22:02:24 +02:00
Bloepiloepi
e57e3ff305
Fix enchantment reading (#938) 2022-04-17 21:51:16 +02:00
Bloepiloepi
ff7098a083
Item metadata fixes (#935) 2022-04-17 20:52:29 +02:00
iam
0d93faf0db
Fix worldborder size on resize + test (#937) 2022-04-17 19:54:41 +02:00
iam
6aa999aa77
Don't reload chunk when player places block on entity (#936) 2022-04-17 19:21:01 +02:00
TheMode
8b187894f7 Make Instance implements EventHandler
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-17 06:19:14 +02:00
TheMode
0f767da5f0 Use NBT#getValue
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-17 00:16:59 +02:00
TheMode
c5bef0958d Prepare potential CAS tag impl
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-16 19:15:48 +02:00
TheMode
49488c4893 Remove nbt tag list/map restriction
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-16 14:37:41 +02:00
TheMode
198618ba98 Add rate limiter for incoming packets
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 12:25:58 +02:00
TheMode
164cf9fe2b Fix FireworkEffectMeta
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 04:44:34 +02:00
TheMode
1ad6caaf8b Add TagSerializer.fromCompound
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 03:50:57 +02:00
TheMode
5839ec71cc Make ItemMetaView.Builder extends ItemMeta.Builder
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 02:31:58 +02:00
Bloepiloepi
0c6da422c7
Add onGround to PlayerMoveEvent (#921) 2022-04-14 18:47:17 +02:00
TheMode
98a6e73e99 Improve memory usage of tags
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-14 16:26:57 +02:00
TheMode
821063addf Fix empty fork
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-14 01:32:54 +02:00
TheMode
e026a841ab Improve creation of item builder
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-14 00:50:19 +02:00
TheMode
83baabcbba Do not loop through parents if nothing has been removed
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 22:37:54 +02:00
TheMode
57832351ea Add pathInvalidClear
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 22:26:56 +02:00
TheMode
6c250de41c Fix OOB when clearing path-able tag entries
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 22:22:39 +02:00
Konstantin Shandurenko
d8cda624c8
PlayerDiggingListener fix (#918) 2022-04-13 22:03:25 +02:00
TheMode
b3030a3eb2 Fix PlayerHeadMeta
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 21:57:59 +02:00
TheMode
c9c2cc9ec8 Fix standalone view meta building
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 21:22:13 +02:00
Konstantin Shandurenko
f1606362b7
Stacking rule can be changed now (#916) 2022-04-13 20:42:09 +02:00
Konstantin Shandurenko
19eae7ef93
EntityTracker fix (#915) 2022-04-13 20:29:05 +02:00
TheMode
63b40deb34
Item API refactoring (#904) 2022-04-13 17:57:15 +02:00
TheMode
50a7d7ca81 ShapeImpl should not depend on the block material
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 12:07:43 +02:00
TheMode
59d5bfe6d1 Invalidate ChunkCache on unload
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 23:55:17 +02:00
TheMode
384126e3b4 Optimize block retrieval from Instance
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 23:50:45 +02:00
TheMode
c56cd1054a DiggingResult can become a record
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 23:38:15 +02:00
Konstantin Shandurenko
c4a4ebd51a
Check whether chunk is loaded on ClientPlayerDiggingPacket input (#910) 2022-04-12 23:37:29 +02:00
TheMode
f073cc46c8 Add Tag.UUID
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 19:16:11 +02:00
TheMode
3f172a8d2c Support Tag.Component and for record auto-structure
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 16:20:17 +02:00
TheMode
86526ab219 Simplify flow
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 14:14:36 +02:00
TheMode
6a79de2406 Final entry
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 12:18:00 +02:00
TheMode
0c9542486f Dedicated traversePath method
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 12:16:40 +02:00
TheMode
afbc6d6a47 Fix potential NPE
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-11 22:38:37 +02:00
TheMode
5812482922 Document GenerationUnit size guarantee
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-11 21:12:58 +02:00
Konstantin Shandurenko
2cea7ca5af
Async tasks cancellation fix (#907) 2022-04-11 20:26:59 +02:00
TheMode
1bb0af7f77 Add TagHandler#copy
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-10 15:49:33 +02:00
TheMode
1cdc0aeddb Add Boolean tag
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-10 15:38:13 +02:00
Lorenzo Lapucci
97abccce0c
Use eye height difference when setting direction using Entity#lookAt(Entity) (#900) 2022-04-10 14:13:13 +02:00
TheMode
73fed47040 Misc
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-10 12:26:33 +02:00
TheMode
d25f791d59 Use isView()
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-10 11:44:08 +02:00
TheMode
af43c977bd
Tag nbt conversion (#901) 2022-04-10 10:01:39 +02:00
TheMode
23e1c8a0bc Prepare better nbt conversion
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-09 16:17:24 +02:00
TheMode
b294cb3f1c Style
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-09 15:20:11 +02:00
TheMode
30aa3ac8f3 Fix fillHeight
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-08 15:08:40 +02:00
TheMode
b8b850fca1 Print problematic future
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-08 12:20:17 +02:00
TheMode
a70bb15146
Low level generation API (#574) 2022-04-08 07:19:52 +02:00
TheMode
60d22929a1 Move assert
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-07 11:35:09 +02:00
TheMode
031d9253a3 Fix view tag access
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-07 11:34:18 +02:00
TheMode
bbd9e58d35
Generate Tag from record type (#883) 2022-04-07 11:05:11 +02:00
iam
50c1083a48
Fix relative max. Currently finds the minimum of all individual bounding box maximums. Updated to find maximum of all bounding box maximums (#869) 2022-04-05 04:20:46 +02:00
Alexander Mandera
740ffc8846
Fix bad conversion of block index using negative Y (#861) 2022-04-04 23:19:48 +02:00
TheMode
467decbb20 Remove explicit fences
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-03 04:09:11 +02:00
TheMode
7a371fe616 Do not fallback to waiting list
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-02 23:35:11 +02:00
TheMode
ff8dd0cdaa Misc networking improvements
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-02 22:05:29 +02:00
TheMode
446e4a64b7 Catch exceptions during skin request
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-01 22:53:46 +02:00
themode
3674fcc97d Fix nearbyEntities 2022-04-01 20:41:32 +02:00
TheMode
43734a9c58 Slight nearbyEntities improvement
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-01 16:04:23 +02:00
TheMode
4e6c92e2c5
Unique stacking rule (#844) 2022-04-01 01:00:18 +02:00
Konstantin Shandurenko
8df0d37107
Entity's line of sight methods improvements (#842) 2022-03-31 20:28:02 +02:00
Konstantin Shandurenko
eebdb4a7a3
Reducing allocations count when working with bounding boxes (#843) 2022-03-31 19:48:43 +02:00
Konstantin Shandurenko
4c8b4c1abc
Fixed players visibility and relevancy within tablist (#840) 2022-03-31 18:57:56 +02:00
themode
bc0cb57c61 Cache optimization 2022-03-30 16:50:08 +02:00
themode
c81b0c0125 Palette misc 2022-03-29 16:50:16 +02:00
Konstantin Shandurenko
244f8785ff
Another fix for EntityProjectile (#826) 2022-03-29 00:00:43 +02:00
TheMode
29a06487ce Better flow control
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-28 23:53:53 +02:00
Konstantin Shandurenko
b3ee3e2345
EntityProjectile fixes and optimizations (#807) 2022-03-28 22:06:25 +02:00
themode
cf1373396b Counted loop 2022-03-28 15:59:36 +02:00
TheMode
1c9b6f3529 Do not call Chunk#removeViewer
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-27 15:31:34 +02:00
iam
fb5d6b88e3
Reduce allocations from physics check (#813) 2022-03-27 00:27:47 +01:00
MrGazdag
5469fef417
send teams on join (#803) 2022-03-26 16:16:35 +01:00
EpicPlayerA10
40024da5c9
Fix compression packet order (#811) 2022-03-26 15:40:14 +01:00
TheMode
835b8ca89d Add TagReadPathBenchmark
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 15:26:46 +01:00
TheMode
ac4d78acf1 Synchronize cache access
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 13:05:21 +01:00
TheMode
85559abb28 TagHandlerImpl cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 13:03:28 +01:00
TheMode
131116013d Event nodes need total order
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 12:02:36 +01:00
themode
a689691873 Unnecessary fences 2022-03-26 11:44:40 +01:00
TheMode
daf83a25d1 Add some event node query tests
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 10:13:43 +01:00
themode
8dcb3191f6 Improve tag value sharing 2022-03-25 17:48:18 +01:00
themode
edabb19891 Explicit fences 2022-03-25 10:12:04 +01:00
themode
0fc9cab6ab Unnecessary array lookup 2022-03-25 08:23:33 +01:00
themode
9ee74845e1 Avoid list copy when unnecessary 2022-03-25 08:18:30 +01:00
themode
2d6368f6bd copy-on-write index map 2022-03-24 12:51:24 +01:00
themode
043c139b91 Improve read performance with different tag 2022-03-24 11:23:16 +01:00
TheMode
2301ad9976
Tag list (#801) 2022-03-24 09:03:30 +01:00
TheMode
b5367ee96a
Tag path API (#800) 2022-03-24 05:42:01 +01:00
themode
54b65f49a6 Prevent unlikely race condition 2022-03-23 10:52:39 +01:00
themode
dc9580b990 Add IndexMap 2022-03-23 08:49:40 +01:00
themode
d20cf85982 Unnecessary class parameter 2022-03-23 07:04:05 +01:00
themode
355beac466 Unnecessary methods 2022-03-23 06:51:36 +01:00
themode
ee5ca9050c Improve tag index retrieval 2022-03-23 06:22:48 +01:00
iam
3fbdf4f22a
Fix Entity Touch Block Check (#795) 2022-03-21 00:04:54 +01:00
Bloepiloepi
81b4c3158d
Guardian target fix (#791) 2022-03-20 22:07:30 +01:00
themode
71b6e8df90 Misc network improvement 2022-03-20 03:22:38 +01:00
themode
54fd65eded Remove writeAndFlush 2022-03-20 02:35:45 +01:00
themode
b304e1328a Fix packet parsing for disconnected clients 2022-03-20 02:29:00 +01:00
TheMode
f2fec73202
Tag internal rework (#782) 2022-03-20 01:47:57 +01:00
Moulberry
84871ea93e
Fix typo in EntityMeta 2022-03-18 23:10:10 +08:00
themode
055cc409ed Ensure proper chunk synchronization 2022-03-17 00:14:12 +01:00
themode
8cf598d290 Use the main scheduler 2022-03-16 06:58:01 +01:00
themode
1e58318a3a Fix potential deadlock on instance join 2022-03-16 06:54:39 +01:00
GreatWyrm
2f5661b313
Have projectiles spawn at the creature's eye position (#598) 2022-03-16 00:59:15 +01:00
themode
db2d00819c Avoid stream for placement collision 2022-03-14 22:30:08 +01:00
themode
baca58daa6 BlockCollision must stay internal 2022-03-14 19:13:30 +01:00
iam
bcfb4c6ea4
Fix block placement below players (#767) 2022-03-14 19:07:29 +01:00
themode
acee29c20a Fix player position being wrong inside tests 2022-03-14 19:01:48 +01:00
iam
9215e33e80
Remove faces and cartesian product (#762) 2022-03-14 00:32:18 +01:00
themode
df64ce9653 Remove dependency from instance/entity for collisions 2022-03-13 23:28:31 +01:00
themode
60f583b179 Cache shapes size 2022-03-13 21:27:56 +01:00
themode
11708a1c1a Remove dedicated Faces class 2022-03-13 21:20:11 +01:00
iam
37a18eced5
Physics Test + revert (#742) 2022-03-13 18:53:20 +01:00
themode
c890a1ae9a Reduce field lookup for block touch 2022-03-13 17:55:00 +01:00
themode
27b046b52c Simplify toSectionRelativeCoordinate 2022-03-11 17:55:56 +01:00
themode
024ba736ce Improve tasks performance 2022-03-10 16:57:36 +01:00
themode
b906bd89ce Oops 2022-03-10 16:07:56 +01:00
themode
c1d65071d3 Change getTag annotation 2022-03-10 15:54:12 +01:00
themode
a29a51ee0a Greatly reduce the number of checks 2022-03-09 20:14:42 +01:00
themode
e7545e470f Cache compiled pattern 2022-03-09 19:47:42 +01:00
themode
d3432011d9 Avoid boxing and streams 2022-03-09 19:45:05 +01:00
iam
6891a530f5
Block Collision Physics (#730) 2022-03-09 19:08:42 +01:00
themode
9bca6ee0e3 Fix override registry 2022-03-09 17:51:03 +01:00
themode
d1b654e843 Fix rare viewer NPE 2022-03-09 17:28:37 +01:00
themode
03cf585121 Unnecessary null check 2022-03-07 22:18:03 +01:00
themode
4ab2f43eed Simplify ObjectArray 2022-03-07 20:45:51 +01:00
themode
3764e83a4f Dead code 2022-03-07 13:55:13 +01:00