Commit Graph

325 Commits

Author SHA1 Message Date
Felix Cravic
45fd0dc22a Comments 2020-08-07 09:14:50 +02:00
Felix Cravic
b7a720ee2d Update Hydrazine 2020-08-07 06:36:03 +02:00
Felix Cravic
424256dcb6 Fixed entities not being removed from viewing list after changing instance 2020-08-06 18:39:56 +02:00
Felix Cravic
920a16300e Fixed PerGroupChunkProvider 2020-08-06 18:32:56 +02:00
Felix Cravic
118ed220e3 Added PlayerTarget + FollowTargetGoal 2020-08-06 13:46:30 +02:00
Felix Cravic
bf95b92c6a Entity wandering 2020-08-06 12:33:45 +02:00
Felix Cravic
3fd1efb120 Basic goal selector API 2020-08-06 11:56:43 +02:00
Felix Cravic
20e78afb40 Remove BossBar from the Player class, BossBar#addViewer should be used instead 2020-08-06 08:17:59 +02:00
Felix Cravic
bf0dd4a750 Advancement API 2020-08-06 07:42:00 +02:00
Felix Cravic
64719a732c Added EntityEyeOfEnder 2020-08-06 05:00:43 +02:00
Felix Cravic
1440aa8403 Added CustomBlock#getDrag 2020-08-06 04:54:02 +02:00
Felix Cravic
4da05b2c3f Use ColoredText when possible 2020-08-05 18:25:11 +02:00
Articdive
2e6b53b2fc
Add Soul fire to PFBlockDescription 2020-08-04 17:39:37 +02:00
Articdive
f5244a6375
Update/Improve Pathfinding 2020-08-04 17:37:28 +02:00
R0bbyYT
4127eea401 Support for all living entities / Added team builder / Comments 2020-08-04 12:44:07 +02:00
Felix Cravic
baccc36ed7 Allow ask_server tab complete for CommandProcessor 2020-08-04 04:21:11 +02:00
razorrider7
a09b217962 Update EntityType To use Namespaced IDs 2020-08-03 18:48:46 -04:00
Felix Cravic
dfa4cb8b37 Cleanup + comments 2020-08-03 06:36:42 +02:00
Felix Cravic
134173d0f1 Cleanup 2020-08-03 00:37:03 +02:00
Felix Cravic
086c9738b1 Very early chunk group based thread 2020-08-02 11:37:39 +02:00
Felix Cravic
43059df920 Added EntityItemFrame 2020-08-02 01:00:22 +02:00
Felix Cravic
6501a43820 Cleanup 2020-08-01 11:00:31 +02:00
jglrxavpok
1772b94114 Start of Permission API 2020-07-31 22:31:58 +02:00
Felix Cravic
79226cf7e7 EntityCreature#setPathTo does reset the previous path everytime 2020-07-31 22:17:24 +02:00
Felix Cravic
7a961eed9f Fix EntityCreature not resetting the pathfinder 2020-07-31 22:09:04 +02:00
Felix Cravic
f6fac5773d Allow to customize the search range of an entity 2020-07-31 21:58:49 +02:00
TheMode
aada943f91
Merge pull request #20 from Minestom/smooth-pathfinding
Smooth pathfinding
2020-07-31 21:13:08 +02:00
jglrxavpok
322194c5e4 Make entities look along their path 2020-07-31 21:02:37 +02:00
Felix Cravic
336d040cd4 Replaced TaskBuilder#buildTask to TaskBuilder#schedule 2020-07-31 20:44:58 +02:00
jglrxavpok
628e87e531 Potential deprecation of EntityCreature#move 2020-07-31 18:57:37 +02:00
jglrxavpok
49b4f0c79d Fixed non-smooth pathfinding by setting the velocity of the creature, therefore allowing the client to predict the position and smooth the path 2020-07-31 18:55:08 +02:00
Felix Cravic
da641fd54b Update item hover + rich message comments 2020-07-29 20:13:17 +02:00
R0bbyYT
4ad4054fce Improve the scheduler's 2020-07-29 04:28:01 +02:00
Felix Cravic
da5f318b09 Rewind EntityCreature#moveTowards 2020-07-29 00:31:45 +02:00
Felix Cravic
98c3419766 Cleanup 2020-07-27 02:28:03 +02:00
Felix Cravic
71b2988583 Added AnimationEvent comments + cleanup 2020-07-26 20:03:39 +02:00
TheMode
48324a71ed
Merge pull request #16 from Minestom/hydrazine-test
Merge branch hydrazine-test to master
2020-07-25 00:17:12 +02:00
Felix Cravic
1345968aac Hologram is now a Viewable 2020-07-24 19:44:30 +02:00
Felix Cravic
1adaa0553e Pathfinding update 2020-07-24 19:31:15 +02:00
Felix Cravic
4f788b9b8d Cleanup 2020-07-24 16:11:48 +02:00
Felix Cravic
e57485367c pathfinding update 2020-07-24 03:06:38 +02:00
Felix Cravic
b54599a1f1 Cleanup 2020-07-24 02:49:55 +02:00
Felix Cravic
7b5107f59d Hydrazine fix + basic pathfinding api 2020-07-24 02:31:10 +02:00
Felix Cravic
2ea4c2d996 Initial hydrazine commit 2020-07-24 01:03:24 +02:00
Felix Cravic
f8453b4906 Added ItemMeta + MapDataPacket 2020-07-23 05:36:15 +02:00
Felix Cravic
df6c9e4953 More comments + cleanup 2020-07-22 17:39:48 +02:00
jglrxavpok
2cff307a20 Merge branch 'new-dimensions' 2020-07-13 14:12:48 +02:00
jglrxavpok
30019ebe9a Customizable dimension list in JoinGamePacket + Dimension->DimensionType 2020-07-13 14:12:21 +02:00
Felix Cravic
87ab850945 Comment + EntityFinder WIP 2020-07-11 14:16:36 +02:00
jglrxavpok
4f4d48df92 Remove old NBT code, use Hephaistos 2020-07-06 23:20:20 +02:00
Felix Cravic
c061e2a71f Fix FakePlayer respawn 2020-07-06 19:35:24 +02:00
Felix Cravic
85aad4f044 Support for tablist in FakePlayerOption 2020-07-06 19:31:02 +02:00
Felix Cravic
9fc8012d9d Fix player display name 2020-07-06 19:15:13 +02:00
Felix Cravic
5673f67db9 Added FakePlayerOption 2020-07-06 19:09:30 +02:00
Felix Cravic
e74c8ac9fd Changed the way to create FakePlayer 2020-07-06 16:06:31 +02:00
Felix Cravic
87921a8788 Added ThreadProvider 2020-07-03 16:44:21 +02:00
Felix Cravic
401fa67243 Fix issue with ghost item 2020-07-02 17:58:18 +02:00
Felix Cravic
d35bb8f434 Updated JNoise + cleanup 2020-07-02 16:04:46 +02:00
Felix Cravic
0d0674ee5d Added support for custom server brand name 2020-07-02 15:56:43 +02:00
Eoghanmc22
ffe5240a8d Merge branches 'experimental' and 'master' of https://github.com/Minestom/Minestom 2020-06-30 20:00:28 -04:00
Felix Cravic
f873f495ea Fix inventory + added our own chat parser 2020-07-01 01:17:58 +02:00
Eoghanmc22
68049b3eab Merge branches 'experimental' and 'master' of https://github.com/Minestom/Minestom 2020-06-30 17:15:32 -04:00
jglrxavpok
450603cac8 Don't send tags packet to viewers 2020-06-30 21:06:06 +02:00
jglrxavpok
2303b98024 Send tags to player on connection 2020-06-30 20:38:42 +02:00
Felix Cravic
2696bead72 Cleanup 2020-06-30 12:59:37 +02:00
Felix Cravic
e1b9f74cf4 Optimize message sending 2020-06-30 01:25:23 +02:00
Eoghanmc22
01d7ed9699 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/net/minestom/server/entity/EntityType.java
	src/main/java/net/minestom/server/instance/block/Block.java
	src/main/java/net/minestom/server/item/Enchantment.java
	src/main/java/net/minestom/server/item/Material.java
	src/main/java/net/minestom/server/particle/Particle.java
	src/main/java/net/minestom/server/registry/RegistryMain.java
	src/main/java/net/minestom/server/registry/ResourceGatherer.java
	src/main/java/net/minestom/server/sound/Sound.java
	src/main/java/net/minestom/server/stat/StatisticType.java
2020-06-29 16:27:53 -04:00
jglrxavpok
7b9c093709 Merge remote-tracking branch 'origin/block-types' 2020-06-29 21:20:22 +02:00
jglrxavpok
e2a01c1a16 Back to 1.15.2 to prepare for merge 2020-06-29 21:19:59 +02:00
jglrxavpok
8483752046 1.16.1 enums 2020-06-29 21:07:03 +02:00
jglrxavpok
7c3d3f6f07 Completely removed RegistryMain 2020-06-29 20:29:50 +02:00
Felix Cravic
18f9341c55 Add missing break statement 2020-06-29 17:32:35 +02:00
Eoghanmc22
f04e8036fc Add missing break and fix various things with the netty improvements made by WhileInside, add the disconnect during login packet currently only used for preventing multiple people with the same username from logging in when Mojang auth is enabled. 2020-06-29 11:25:10 -04:00
Eoghanmc22
061db7c8de Add some vanilla placement rules, add a scheduleNextTick method for instances and entities, make changes to BlockPlacementRule, make BlockFace its own class. 2020-06-28 17:11:40 -04:00
Eoghanmc22
37b5484775 Minor optimizations to mojang auth. 2020-06-25 19:40:33 -04:00
Eoghanmc22
b80da2f097 basic 1.16.1 support 2020-06-25 15:05:58 -04:00
Eoghanmc22
8e26447f9a Merge branch 'master' of https://github.com/Minestom/Minestom 2020-06-23 17:02:29 -04:00
Felix Cravic
2db810bafa Added legacy message support 2020-06-23 22:46:22 +02:00
Eoghanmc22
e203d9c45a Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	build.gradle
	src/main/java/net/minestom/server/entity/Player.java
2020-06-23 16:03:21 -04:00
Eoghanmc22
7ac90cff24 init 2020-06-23 15:58:31 -04:00
Felix Cravic
19fc90e764 Fixed Held packet + replaced the short by a byte 2020-06-23 18:09:01 +02:00
Felix Cravic
9dfb9b657b Added CommandSender#isPlayer and CommandSender#isConsole 2020-06-23 17:25:46 +02:00
Felix Cravic
f892213e8c Added a new Chat API 2020-06-22 23:25:00 +02:00
Eoghanmc22
c31b962ed8 fix imports 2020-06-21 19:25:50 -04:00
Eoghanmc22
77b99e8223 Merge with latest Minestorm 2020-06-21 18:57:53 -04:00
Eoghanmc22
42276efc49 Added optional Mojang auth and UUIDs support (MojangAuth.init()), added support for skin layers, and made everywhere have max lighting. 2020-06-21 18:04:19 -04:00
Felix Cravic
72234ac706 Added PlayerPreLoginEvent 2020-06-21 22:11:56 +02:00
Felix Cravic
eba5c5ae3a Added CommandSender and ConsoleSender 2020-06-21 14:01:03 +02:00
Felix Cravic
f585b3df86 Some comments 2020-06-03 15:17:34 +02:00
Felix Cravic
bd08676525 Added EntityItemMergeEvent#setResult 2020-06-02 14:54:33 +02:00
Felix Cravic
0da78193c5 Code cleanup 2020-06-02 14:43:31 +02:00
Felix Cravic
cb743bc7d5 NbtWriter cleanup 2020-06-01 18:57:16 +02:00
Felix Cravic
45e8ba2f03 Added EventHandler#removeEventCallback 2020-06-01 17:11:43 +02:00
Felix Cravic
b1e86adb23 Allow ItemEntity#getMergeUpdateOption to be null 2020-06-01 02:18:24 +02:00
Felix Cravic
7e20278dd9 Fix deadlock with ItemEntity + added ItemEntity#getMergeUpdateOption to mitigate CPU usage increase 2020-06-01 00:51:31 +02:00
Felix Cravic
7128844563 Resource pack cleanup 2020-05-31 20:09:42 +02:00
Felix Cravic
c17aba4ac7 Added Player#setResourcePack + PlayerResourcePackStatusEvent 2020-05-31 19:53:59 +02:00
Felix Cravic
00143078e3 Added PlayerSkin#fromUuid and PlayerSkin#fromUsername 2020-05-31 18:07:09 +02:00
Felix Cravic
f8758d2933 Added LivingEntity#swingMainHand and LivingEntity#swingOffHand 2020-05-31 16:14:27 +02:00
Felix Cravic
eed946e948 Cleanup 2020-05-31 15:52:56 +02:00
Felix Cravic
30ef05183e Added more synchronization at death + added listener for teleport and window confirmation to remove warning 2020-05-31 00:39:56 +02:00
Felix Cravic
1bcd0c474f Added event comments 2020-05-30 22:32:12 +02:00
Felix Cravic
edb6db428e sync equipments only to the viewer to update instead of all 2020-05-30 21:56:12 +02:00
Felix Cravic
f887f21493 Cleanup with the ADD_PLAYER method 2020-05-30 19:51:45 +02:00
Felix Cravic
7ce6f7ada1 Added Player#setSkin and PlayerSkinInitEvent to modify it at initialization 2020-05-30 19:47:47 +02:00
Felix Cravic
3940eacde8 Attribute optimization + comments 2020-05-30 01:39:52 +02:00
Felix Cravic
1c3099f61a Entity & Player comments 2020-05-29 23:17:14 +02:00
Felix Cravic
18a1e0b29b Added EntityPigZombie metadata + itemstack synchronization 2020-05-29 21:30:42 +02:00
Felix Cravic
b0ccb91c31 More entity + added boundingboxes 2020-05-29 18:56:42 +02:00
Felix Cravic
29aae491d1 Minor optimizations 2020-05-29 17:20:30 +02:00
Felix Cravic
589079f8f6 Updated netty + fix network crash 2020-05-29 15:31:11 +02:00
Felix Cravic
eb5659c235 Optimize bandwidth + fix keep alive 2020-05-29 02:11:41 +02:00
Felix Cravic
619c680f1b Added item attributes 2020-05-28 23:43:12 +02:00
Felix Cravic
7cd2d570bd Comments 2020-05-28 20:09:52 +02:00
Felix Cravic
dfd7ca84a4 Fixed player mining vanilla block 2020-05-28 19:29:29 +02:00
Felix Cravic
5e91b75d78 Comments 2020-05-28 19:15:55 +02:00
Felix Cravic
7147250432 Fixed player digging vanilla blocks + comments 2020-05-27 23:26:45 +02:00
Felix Cravic
966bbfc0cc Synchronize properly the view from Entity#getPosition 2020-05-27 23:13:13 +02:00
Felix Cravic
d91b1e9966 WorldBorder keeps its diameter updated properly 2020-05-27 22:24:58 +02:00
Felix Cravic
af430ebc3f Entity#getPosition is now fully synchronized with the entity position 2020-05-27 22:06:22 +02:00
Felix Cravic
eb4e47df52 Fixed LivingEntity#damage for death entities 2020-05-27 21:25:54 +02:00
Felix Cravic
70be25bd1c Added EntityCreature#setView 2020-05-27 20:55:33 +02:00
Felix Cravic
039e9aca4f Lot of comments 2020-05-27 20:30:13 +02:00
Felix Cravic
f5ddc66c43 Modified digging listener, added more clear exceptions and some comments 2020-05-27 19:43:08 +02:00
Felix Cravic
9bf193988f Added ItemStack potion nbt 2020-05-27 12:33:12 +02:00
Felix Cravic
f5f5a6bb4e Better world border collision check + WorldBorder#getCollisionAxis 2020-05-27 01:15:21 +02:00
Felix Cravic
ef261c1792 Added WorldBorder#isInside + physics now support world border 2020-05-27 01:04:39 +02:00
Felix Cravic
224a8a3b86 Support for additional hearts in Player#damage 2020-05-26 23:15:09 +02:00
Felix Cravic
e6f38e2773 Added a bunch of entities + Player#additionalHearts 2020-05-26 22:53:58 +02:00
Felix Cravic
fc773044e8 Remove chunk unloaded check 2020-05-26 21:30:12 +02:00
Felix Cravic
3be1173ab5 Small optimizations 2020-05-26 20:00:41 +02:00
Felix Cravic
182b6fbe1b Added Player#facePosition and Player#spectate 2020-05-26 18:25:35 +02:00
Felix Cravic
76f9a059b5 Update packets having a Chat component 2020-05-26 17:48:46 +02:00
Felix Cravic
8ef5a0b394 Moved the player init call 2020-05-26 16:14:52 +02:00
Felix Cravic
b797967151 Added Player#getDisplayName + some optimizations/improvements 2020-05-26 15:35:48 +02:00
Felix Cravic
fc751acb75 Added EntityArmorStand & Hologram 2020-05-26 00:07:35 +02:00
Felix Cravic
9df6b19f1d Remove passengers at death 2020-05-25 21:14:28 +02:00
Felix Cravic
14e9dcb811 Added LivingEntity#setArrowCount and fixed metadata during respawn 2020-05-25 20:32:47 +02:00
Felix Cravic
a962b83958 Fixed player death animation 2020-05-25 19:54:36 +02:00
Felix Cravic
c15a795a74 Minor checks + FakePlayerController#finishDigging 2020-05-25 15:42:54 +02:00
Felix Cravic
e8a2c54485 More FakePlayerController features + fix with chunks and player food bar 2020-05-25 13:46:48 +02:00
Felix Cravic
6254ec93e9 Proper List#toArray array initialization 2020-05-25 12:25:39 +02:00
Felix Cravic
2fdebae7e5 Allow FakePlayer to be registered internally 2020-05-25 12:18:50 +02:00
Felix Cravic
88db08001a Hacky fix for the player velocity 2020-05-25 11:01:38 +02:00
Felix Cravic
be31c4e03d Minor tweaks 2020-05-25 03:39:57 +02:00
Felix Cravic
9a7c07af65 Added some FakePlayerController features 2020-05-25 03:17:24 +02:00
Felix Cravic
30053c507b WIP FakePlayer system 2020-05-25 02:37:57 +02:00
Felix Cravic
e092eba4c1 Fix equipments synchronization and error with unloaded chunk 2020-05-25 01:12:12 +02:00
Felix Cravic
83449aecc9 Making PlayerConnection an abstract class 2020-05-25 00:29:37 +02:00
Felix Cravic
f8ff01349b Fixed Player#isFlying it is now properly synchronized with the client 2020-05-24 22:27:58 +02:00