Commit Graph

313 Commits

Author SHA1 Message Date
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
Felix Cravic
ae53cca19d Fixed velocity synchronization 2020-05-24 22:24:59 +02:00
Felix Cravic
e26ee1380a Fixed vehicles + added PlayerStartFlyingEvent & PlayerStopFlyingEvent 2020-05-24 22:21:38 +02:00
Felix Cravic
c73ec6f0d6 Fix ExperienceOrb#setExperienceCount with a proper updating client-side 2020-05-24 20:21:17 +02:00
Felix Cravic
b193c5f12a Lot of comments 2020-05-24 19:59:50 +02:00
Felix Cravic
c2d1a4f70a Fix synchronization issue with metadata + some comments 2020-05-24 19:22:58 +02:00
Felix Cravic
883e7eb80f Added Entity#isAutoViewable & making Viewable#addViewer and Viewable#removeViewer return boolean 2020-05-23 17:57:56 +02:00
Felix Cravic
a4b530c1dc WIP vehicle support 2020-05-23 14:04:53 +02:00
Felix Cravic
97bd1ecdb1 Cleanup 2020-05-23 04:20:01 +02:00
jglrxavpok
1ca561215c Send velocity packet when velocity is forced changed with Entity#setVelocity 2020-05-21 00:36:50 +02:00
jglrxavpok
da416866f6 Added entity eye height 2020-05-21 00:33:56 +02:00
Felix Cravic
f588d1103f Fix cursor item dropping when drop event is cancelled 2020-05-17 11:44:34 +02:00
Felix Cravic
dff29a4717 Drop cursor item when closing inventory 2020-05-17 11:40:49 +02:00
Felix Cravic
47ca22c3d1 Fixed player item dropping, it does not consume the item anymore when the event is cancelled 2020-05-17 04:41:32 +02:00
Felix Cravic
a63693b82b It is now possible to extends InstanceContainer/SharedInstance to make your own 2020-05-17 03:15:47 +02:00
Felix Cravic
ab71133b55 Fixed error relating to unloaded chunk in Entity#update 2020-05-17 01:42:07 +02:00
Felix Cravic
b97b75f13c Added a lot of comments 2020-05-15 18:03:28 +02:00
Felix Cravic
4a287f82a6 Fixed ArmorEquipEvent calling 2020-05-14 18:59:01 +02:00
Felix Cravic
aeeb9f08a4 Added EntityVelocityEvent + minor refactoring 2020-05-14 18:57:44 +02:00
Felix Cravic
498384d2f4 Added permission level + option for a reduced debug screen 2020-05-13 18:43:54 +02:00
Felix Cravic
be0311a874 Added PlayerPreEatEvent for more customisation, separate the default eating time and the individual ones. Also a InventoryOpenEvent#setInventory to change the inventory to open 2020-05-12 18:40:04 +02:00
Felix Cravic
a1b427bf83 Added InventoryOpenEvent 2020-05-12 17:12:11 +02:00
Felix Cravic
4fa1d08fa5 End properly eat animation 2020-05-12 14:19:45 +02:00
Felix Cravic
37add239f8 Custom food animation delay + PlayerEatEvent 2020-05-12 14:12:17 +02:00
Felix Cravic
de8ec680fb Added ItemEntity#isMergeable 2020-05-10 00:09:55 +02:00
Felix Cravic
889e9c5e2b ItemEntity can now be merged/stacked together 2020-05-09 21:50:48 +02:00
Felix Cravic
17856c36cf Fixed crash at player disconnection 2020-05-09 20:00:59 +02:00
Felix Cravic
f7badc021b WIP entities in unloaded chunk + PlayerChunkLoadEvent 2020-05-09 18:24:14 +02:00
Felix Cravic
39f0053ded Added PlayerChunkUnloadEvent 2020-05-09 04:05:57 +02:00
jglrxavpok
59c5bbdfe5 Send chunks to player when changing instance 2020-05-08 21:49:04 +02:00
jglrxavpok
5dd08cf19b Send different teleportIds for each packet 2020-05-08 18:42:04 +02:00
jglrxavpok
8281f1c0fd Added isFirstSpawn() to PlayerSpawnEvent 2020-05-08 18:03:39 +02:00
jglrxavpok
9c5c6d9161 Fixed player not changing dimension properly 2020-05-08 17:46:29 +02:00
Felix Cravic
3741b22484 Added EventHandler interface 2020-05-08 06:54:33 +02:00
jglrxavpok
0daae4d831 EntityTickEvent and tick counter in Entity 2020-05-07 16:00:52 +02:00
jglrxavpok
9d9c158af0 Added event callbacks to Instance, and organized events into packages 2020-05-07 15:46:21 +02:00
Felix Cravic
f6803f9c24 Fix ArmorEquipEvent for EntityCreature 2020-05-06 22:42:04 +02:00
Felix Cravic
59214b3b96 All LivingEntity can now have equipments + cleanup 2020-05-06 22:35:32 +02:00
TheMode
ca7e220543
Merge pull request #5 from Draycia/master
Replace minecraft-text with kyori-text
2020-05-05 21:06:44 +02:00
Felix Cravic
5de6888b59 Added EntityFireEvent and EntitySpawnEvent 2020-05-05 21:04:05 +02:00
jglrxavpok
0627d8d368 Reset fire state + remove now useless debug log 2020-05-05 18:40:58 +02:00
jglrxavpok
4f355f2a06 Forgot to apply fire damage and added sounds to damages 2020-05-05 18:30:19 +02:00
jglrxavpok
ca3295cc16 Fire duration for living entities 2020-05-05 17:59:57 +02:00
jglrxavpok
365c3edbdf Custom block contact behaviour + fix breaking of 0 hardness blocks not removing the block in survival, fixed players in survival not taking damage. 2020-05-05 15:55:21 +02:00
Draycia
660cb7584a Add component support to actionbars and titles 2020-05-04 09:32:14 -07:00
Draycia
9308d5701d Add component support to Player#kick 2020-05-04 09:10:19 -07:00
Draycia
1c2620840f Add more component support to Player 2020-05-04 09:00:21 -07:00
Draycia
5b97dde21f Merge remote-tracking branch 'upstream/master' 2020-05-03 23:55:44 -07:00
jglrxavpok
c79d4c7874 Rewrote physics once again. This time going through walls should be more difficult 2020-05-03 15:54:12 +02:00
Draycia
1b5bf59c26 Fix death messages 2020-05-03 06:00:53 -07:00
Draycia
ad4193d934 Fix player sendMessage methods 2020-05-03 05:17:32 -07:00
Draycia
5437fa90cc Remove old Chat methods
Note: I'm 100% certain things will break because of theee changes. I'll fix things as I find them broken. 10/10 strategy.
2020-05-03 05:05:43 -07:00
Draycia
83bb14d5a0 Use kyori/text instead of minecraft-text 2020-05-03 04:59:53 -07:00
jglrxavpok
1aefbca70a Entity Physics are behaving a bit better
Still possible to go through walls though
2020-05-02 23:34:09 +02:00
jglrxavpok
2bd5b1786b Support for translations in text messages, only used by DamageTypes for the moment 2020-05-02 15:26:28 +02:00
jglrxavpok
d96bf48eb2 Remove custom block when breaking it
Use Math.floor() to correct coordinates
2020-05-01 23:05:47 +02:00
Felix Cravic
98875df389 Small tweaks 2020-04-28 19:22:47 +02:00
Felix Cravic
e022881554 Fixed inventory id generation 2020-04-28 18:55:09 +02:00
Felix Cravic
6d9ac0b35d CustomBlock#getBreakDelay is now optional 2020-04-28 17:58:34 +02:00
jglrxavpok
b09db32ddc Send effects to players 2020-04-28 16:08:21 +02:00
Felix Cravic
48c4941813 We can now have multiple listeners 2020-04-28 01:20:11 +02:00
Felix Cravic
22511ca052 Added damage application verification 2020-04-27 23:03:21 +02:00
Felix Cravic
bf795c1442 Added EntityDamageEvent 2020-04-27 22:38:11 +02:00
jglrxavpok
bdab9bf71f Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	src/main/java/net/minestom/server/entity/Player.java
2020-04-27 21:16:24 +02:00
jglrxavpok
7e3bc22bc4 Chat messages when player dies and cleaner damage types 2020-04-27 21:12:42 +02:00
jglrxavpok
6b77627d60 Implemented damage types and void below world 2020-04-27 20:33:08 +02:00
Felix Cravic
51811a5909 Added dimension support 2020-04-27 18:46:39 +02:00
Felix Cravic
1639a4947c Amazingly fast block getter 2020-04-26 16:51:00 +02:00
Felix Cravic
005d95e97b WIP chunk storage rework (use an array instead of a map) hope that this is working 2020-04-26 16:08:04 +02:00
Felix Cravic
18019277e6 Update 2020-04-26 06:34:08 +02:00
Felix Cravic
3614c378f3 Optimization + added Recipe#shouldShow check 2020-04-26 04:50:38 +02:00
Felix Cravic
9d0cec23df Making pathfinder maxCheck configurable 2020-04-25 23:58:17 +02:00
Felix Cravic
cbffd37c8e Added aliases support to CommandProcessor 2020-04-25 23:51:45 +02:00
Felix Cravic
5980943344 Finally a homemade pathfinder 2020-04-25 23:06:16 +02:00
Felix Cravic
6f5ff41c57 Optimization + fix non-solid block entity collision 2020-04-25 20:40:08 +02:00
Felix Cravic
7daac5e610 Package rename to net.minestom.server 2020-04-24 03:25:58 +02:00