Commit Graph

33 Commits

Author SHA1 Message Date
themode
ee36853f41 Fix PlayerUseItemOnBlockEvent being called with the wrong block position 2021-03-12 04:23:27 +01:00
themode
5ffd44449d fix custom block state id being ignored in PlayerBlockPlaceEvent 2021-03-02 23:37:46 +01:00
Németh Noel
10ece83d75 Cleaned up imports and removed unnecessary .toString() calls 2021-02-28 20:35:10 +01:00
Németh Noel
7abf6ba9e7 Added CanPlaceOn and CanDestroy properties for ItemStacks and implemented checks for them 2021-02-28 19:37:31 +01:00
themode
8e1ffdff7d Prevent double intersect check 2021-01-13 06:34:09 +01:00
themode
7d8ce32ba9 Fix block placement collision on chunk border 2021-01-13 06:32:42 +01:00
themode
7c5bb7126a Added PlayerBlockPlaceEvent#setBlockData 2021-01-07 16:12:56 +01:00
themode
3a7afa63d5 Security update preventing modified client from crashing the server by placing a block in an unloaded chunk 2020-12-20 03:38:36 +01:00
themode
ffbde089f8 BlockPlacementRule cleanup 2020-12-20 03:24:29 +01:00
themode
3e532b24a8 Prevent placing block in adventure mode 2020-12-18 00:28:06 +01:00
themode
fb26ec0f0b Added Chunk#setReadOnly and Chunk#isReadOnly 2020-10-24 00:17:23 +02:00
Felix Cravic
caa89dd2f8 Chunk update 2020-08-16 00:53:42 +02:00
Felix Cravic
f3414224fe Added ItemStack callbacks for interactions 2020-08-13 19:00:19 +02:00
Felix Cravic
67db1d6568 Replaced blockId by blockStateId 2020-08-09 09:55:30 +02:00
Felix Cravic
4fb7d61a7c Cleanup 2020-07-24 18:23:15 +02:00
Felix Cravic
4f788b9b8d Cleanup 2020-07-24 16:11:48 +02:00
Felix Cravic
f8453b4906 Added ItemMeta + MapDataPacket 2020-07-23 05:36:15 +02:00
Felix Cravic
189376f951 Cleanup + javadoc comments 2020-07-21 18:48:15 +02:00
jglrxavpok
54c4134006 BlockFace added to PlayerBlockInteractEvent 2020-07-18 17:45:56 +02: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
Felix Cravic
1bcd0c474f Added event comments 2020-05-30 22:32:12 +02:00
Felix Cravic
e8a2c54485 More FakePlayerController features + fix with chunks and player food bar 2020-05-25 13:46:48 +02:00
jglrxavpok
9d9c158af0 Added event callbacks to Instance, and organized events into packages 2020-05-07 15:46:21 +02:00
jglrxavpok
05acfdf59f New event for when an item is used on a block 2020-05-03 22:44:38 +02:00
jglrxavpok
2292261de7 Allow for a different visual block to be placed along a custom block 2020-04-29 00:42:18 +02:00
jglrxavpok
365cdf7818 Correct visual ID when overriding in PlayerBlockPlaceEvent 2020-04-29 00:20:20 +02:00
jglrxavpok
54111ece6a Convenience method to find horizontal Direction based on yaw, easier block properties usage and PlayerBlockPlaceEvent now references the player placing the block 2020-04-28 21:52:06 +02:00
jglrxavpok
85da9203b1 Custom blocks can block item interaction, prevents blocks being placed when opening containers 2020-04-28 18:12:06 +02:00
Felix Cravic
8050708ecf Changed BlockPosition arg to CustomBlock#createData 2020-04-28 15:25:56 +02:00
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
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
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