Commit Graph

1250 Commits

Author SHA1 Message Date
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
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
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
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
Konstantin Shandurenko 23f03258b9
Item and experience orbs pickup fix (#1208) 2022-07-06 01:28:15 +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
TheMode ef20430e54 Use ofEntries for EntityType meta
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-09 21:41:28 +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
TogAr2 3cd73310cd
Account for flying in velocity calculation (#1111) 2022-05-22 16:46:54 +02:00
TheMode ace42b6f46 Make ObjectArray interface
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-18 08:54:55 +02:00
MrGazdag 5f9d44433d
Fix Entity#lookAt(Pos) not correctly looking at the position (#1058) 2022-05-12 23:35:46 +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 64de8f87c0 Add EquipmentSlot.armors
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-07 17:19:51 +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 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
Weiiswurst afddb6f549
hasVelocity is now false if the entity just has gravity (#975) 2022-04-28 16:06:53 +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
Weiiswurst c32153d221
Fix #942 (#962) 2022-04-22 19:03:28 +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
TheMode 8b187894f7 Make Instance implements EventHandler
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-17 06:19:14 +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
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
Lorenzo Lapucci 97abccce0c
Use eye height difference when setting direction using Entity#lookAt(Entity) (#900) 2022-04-10 14:13:13 +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 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 4c8b4c1abc
Fixed players visibility and relevancy within tablist (#840) 2022-03-31 18:57:56 +02:00
Konstantin Shandurenko 244f8785ff
Another fix for EntityProjectile (#826) 2022-03-29 00:00:43 +02:00
Konstantin Shandurenko b3ee3e2345
EntityProjectile fixes and optimizations (#807) 2022-03-28 22:06:25 +02:00
MrGazdag 5469fef417
send teams on join (#803) 2022-03-26 16:16:35 +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 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 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