Commit Graph

189 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
754821f447 Fixed gamemode command (CommandBuilder update) 2020-04-27 23:36:22 +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
Felix Cravic
5d7f538ab7 WIP block entity 2020-04-24 00:17:40 +02:00
Felix Cravic
6da352f192 Optimization + a data data type (huh) 2020-04-23 23:46:36 +02:00
Felix Cravic
f4aa328849 Fixed a random instance crash 2020-04-23 13:43:31 +02:00
Felix Cravic
4570e7a013 Added ItemStack#getAirItem 2020-04-23 12:30:49 +02:00
Felix Cravic
3f15701256 WIP entity/block collision/gravity 2020-04-23 01:26:45 +02:00
Felix Cravic
69e46274da Block collision improvement 2020-04-22 21:45:15 +02:00
Felix Cravic
51308ce920 Added Block#isLiquid 2020-04-22 20:14:27 +02:00
Felix Cravic
0a30554a5a Fixed EntityCreature walking collision 2020-04-22 19:09:57 +02:00
Felix Cravic
26276af29e Added a packet listener 2020-04-22 18:48:27 +02:00
Felix Cravic
bd8ccd427c Fixed move event + added a bunch of data type 2020-04-22 16:48:55 +02:00
Felix Cravic
01c348349b Added Block#isSolid and fixed player collision 2020-04-22 13:49:52 +02:00
Felix Cravic
ab3aabf6b0 Update 2020-04-22 02:42:58 +02:00
Felix Cravic
7cbb964e21 Added dropping functions + fixes 2020-04-21 15:31:41 +02:00
Felix Cravic
f596a8fa84 Update + fixed animations 2020-04-20 23:43:09 +02:00
Felix Cravic
68d8513e1a Fully functional inventory clicks 2020-04-20 20:57:04 +02:00
Felix Cravic
4c25a61720 Optimization + block collision 2020-04-20 18:46:39 +02:00
Felix Cravic
07a0ba2f54 Update 2020-04-19 14:57:27 +02:00
Felix Cravic
d53cb49648 Update 2020-04-18 18:03:26 +02:00
Felix Cravic
3940927b5e Update 2020-04-18 15:35:37 +02:00
Felix Cravic
406dad1385 Some fixes 2020-04-17 21:34:01 +02:00
Felix Cravic
29c940b372 Inventory click update 2020-04-17 19:24:59 +02:00
Felix Cravic
d7372ce853 Optimization + added stats 2020-04-17 15:58:07 +02:00
Felix Cravic
944ac43b3f Optimization + fixed random tcp crash 2020-04-17 03:44:00 +02:00
Felix Cravic
4af1c0388c Switch to netty (network rewrite) 2020-04-17 01:16:02 +02:00
Felix Cravic
f52e0dd6ba Prepare the switch to netty 2020-04-16 16:40:29 +02:00
Felix Cravic
656ccac26d Update 2020-04-16 14:51:21 +02:00
Felix Cravic
cb194db4c0 Update 2020-04-15 16:35:25 +02:00
Felix Cravic
db9549560c Update + added particles 2020-04-15 13:20:28 +02:00
Felix Cravic
c2580789b9 Update + added benchmark tool 2020-04-13 17:17:21 +02:00
Felix Cravic
126d778221 Added redstone placement 2020-04-12 10:24:25 +02:00
Felix Cravic
a8f48aafe9 Lot of new packets 2020-04-11 17:21:53 +02:00
Felix Cravic
c8ebe32116 Sound & header/footer 2020-04-10 13:39:22 +02:00
Felix Cravic
66572db705 Added sound 2020-04-10 13:18:03 +02:00
Felix Cravic
be36486285 Registry update 2020-04-10 12:45:04 +02:00
Felix Cravic
a2b36f56c0 Added block registry 2020-04-10 10:31:49 +02:00
Felix Cravic
2db7474b68 Update 2020-04-09 14:25:42 +02:00
Felix Cravic
289ee48816 Update 2020-04-08 10:10:05 +02:00
Felix Cravic
35b77e4e8c Update 2020-04-05 17:46:29 +02:00
Felix Cravic
3b06c5b9ef Update 2020-04-05 10:15:21 +02:00
Felix Cravic
4dd3bd607d Update 2020-04-01 13:16:18 +02:00
Felix Cravic
7b11a54d29 Inventory update 2020-03-31 12:37:51 +02:00
Felix Cravic
5c2771c059 Update 2020-03-30 19:48:25 +02:00
Felix Cravic
994494c5de Update 2020-03-29 20:58:30 +02:00
Felix Cravic
212fceb142 Update 2020-03-20 19:50:22 +01:00
Felix Cravic
a4ade2a806 Proper separation 2020-02-17 17:33:53 +01:00
Felix Cravic
0cd6eadd7e Better inventory management & typo 2020-02-16 19:11:36 +01:00
Felix Cravic
b8319217ab Optimization & proper ItemStack reader 2020-02-13 15:14:41 +01:00
Felix Cravic
e9809b20ac Cleaned code & added some packets 2020-02-11 16:48:06 +01:00
Felix Cravic
b1b41afebb 1.15.2 update 2020-02-09 15:34:09 +01:00
TheMode
c66020a196 Bugs fixes & scheduled task API 2019-09-23 19:56:08 +02:00
TheMode
5c0056e183 General optimization 2019-09-21 20:42:27 +02:00
TheMode
d833963414 WIP blocks update 2019-09-15 16:30:38 +02:00
TheMode
972ed294d3 WIP per block data 2019-09-15 13:42:36 +02:00
TheMode
be6cdf8e72 Chunk memory/performance improvement 2019-09-14 19:27:25 +02:00
TheMode
e8aa4bfe9e General optimization 2019-09-14 18:00:18 +02:00
TheMode
0fc6234b72 Added json message & scoreboard API 2019-09-10 06:59:15 +02:00
TheMode
879f9e7c42 Fixes & added data serializer 2019-09-07 11:42:33 +02:00
TheMode
b517c1091e Optimization 2019-09-06 16:05:36 +02:00
TheMode
c23b937c4b Some fixes 2019-09-03 07:36:04 +02:00
TheMode
81c0626e57 Switched to SimpleNet 2019-09-02 06:02:12 +02:00
TheMode
dedc17f42e Update 2019-09-01 06:18:41 +02:00
TheMode
f43bf11e66 Fixed teleportation & improved first chunk loading 2019-08-31 12:10:46 +02:00
TheMode
666f433ae7 Updated packets reader/writer 2019-08-31 07:54:53 +02:00
TheMode
d929730a61 Update 2019-08-30 01:17:46 +02:00
TheMode
932fb6ae2b Update 2019-08-29 02:15:52 +02:00
TheMode
8b95e3881d Added gravity 2019-08-27 20:49:11 +02:00
TheMode
0a732034c2 Update 2019-08-27 05:23:25 +02:00
TheMode
4b1fac6cd4 WIP chunk loading fix 2019-08-26 04:39:58 +02:00