Commit Graph

231 Commits

Author SHA1 Message Date
jglrxavpok
f8f649852b Allow PlayerBlockPlaceEvent callbacks to change the block placed.
Can be used to place custom blocks in replacement of normal ones.
2020-04-28 13:47:41 +02:00
jglrxavpok
4c6d31fac1 Allow custom blocks to initialize their data on placement 2020-04-28 13:23:49 +02:00
Felix Cravic
f00bdc66bf Fixed ItemStackData#decode 2020-04-28 03:06:37 +02:00
Felix Cravic
e43325edd8 Added ItemStack data type 2020-04-28 03:02:29 +02:00
Felix Cravic
0946c8ce11 Moved the ResponseDataConsumer definition to MinecraftServer#start 2020-04-28 02:33:15 +02:00
jglrxavpok
7ea87b56c2 Wrong check in StatusRequestPacket, show actual error when running 2020-04-28 01:39:53 +02:00
Felix Cravic
48c4941813 We can now have multiple listeners 2020-04-28 01:20:11 +02:00
Felix Cravic
38abe55161 Added Block object to the CustomBlock constructor 2020-04-28 01:01:54 +02:00
Felix Cravic
f544f090ae Added SerializableData 2020-04-28 00:24:10 +02:00
Felix Cravic
ce40627a36 Added CustomBlock#getCustomBlockId, it is now defined by the developer and not increased automatically by a counter 2020-04-27 23:13:17 +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
26debd0d4b Optimization + fixed custom block placement 2020-04-26 20:41:58 +02:00
Felix Cravic
d4cf29c7a7 Less magic values 2020-04-26 19:17:04 +02:00
Felix Cravic
161e229985 Cleanup 2020-04-26 17:03:42 +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
d7e9a3a23f Remove useless equipments sync 2020-04-24 18:39:35 +02:00
Felix Cravic
2f6205b577 Added ItemUpdateStateEvent + batch file clean 2020-04-24 17:43:35 +02:00
Felix Cravic
90925b4967 Block/chunk batching should be much faster 2020-04-24 11:33:29 +02:00
Felix Cravic
7daac5e610 Package rename to net.minestom.server 2020-04-24 03:25:58 +02:00