Commit Graph

93 Commits

Author SHA1 Message Date
Felix Cravic
486cf989a1 Added primitives & string array data type 2020-05-04 21:53:15 +02:00
jglrxavpok
8b41c7550b Do not crash with a stack overflow when trying to change the block at 'blockPosition' in CustomBlock 2020-05-04 21:06:13 +02:00
Felix Cravic
cad5dfb8eb Added StorageFolder#getAndCloneData 2020-05-04 19:35:52 +02:00
Felix Cravic
7881e3ca76 Some comments and check added for synchronization purpose 2020-05-04 19:09:34 +02:00
Felix Cravic
14ef482f42 Added StorageFolder + fixes 2020-05-04 18:18:50 +02:00
Felix Cravic
57ad3397d1 Merge remote-tracking branch 'origin/master' 2020-05-04 18:15:51 +02:00
Felix Cravic
e866f79f10 Rewrite of the storage system (use of RocksDB by default) 2020-05-04 18:15:29 +02:00
jglrxavpok
edf2def4e4 hashCode and equals for BlockPosition 2020-05-04 00:09:40 +02:00
jglrxavpok
05acfdf59f New event for when an item is used on a block 2020-05-03 22:44:38 +02:00
jglrxavpok
c28b0364ba Hoping this un-breaks falling blocks 2020-05-03 16:19:41 +02:00
jglrxavpok
9779a77212 Non solid blocks should not count as solid 2020-05-03 16:15:35 +02:00
jglrxavpok
c79d4c7874 Rewrote physics once again. This time going through walls should be more difficult 2020-05-03 15:54:12 +02:00
Felix Cravic
df1653b0f6 Allow to have "separate block" serialized properly 2020-05-03 14:46:44 +02:00
Felix Cravic
7fd8362d6c ChunkPopulator fix by clearing data list 2020-05-02 23:48:01 +02:00
Felix Cravic
e7c26ab45e Added ChunkPopulator 2020-05-02 23:45:10 +02: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
TheMode
69e7496fbb
Merge pull request #3 from Articdive/use-jnoise
Use JNoise instead of FastNoise
2020-05-02 23:18:43 +02:00
Lukas Mansour (Articdive)
9682246f4f Use JNoise instead of FastNoise 2020-05-02 23:16:41 +02:00
Felix Cravic
cd181929c6 Fix inventory click, proper separation between Inventory & PlayerInventory for events and conditions (+ InventoryPreClickEvent and InventoryClickEvent) 2020-05-02 18:45:34 +02:00
jglrxavpok
bfc3975750 Fixed y >= 128 serialization in chunks 2020-05-02 16:16:14 +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
e57addcbf7 Differentiate scheduled and general updates 2020-05-01 23:48:52 +02:00
jglrxavpok
4ca4631f8a Revert "Automatically set the new instance of an entity when adding it to an instance"
This reverts commit 2fd7f2b3
2020-05-01 23:38:56 +02:00
jglrxavpok
edbc189b98 Set lastUpdateTime on task creation, otherwise delayed task won't be delayed 2020-05-01 23:35:56 +02:00
jglrxavpok
2fd7f2b310 Automatically set the new instance of an entity when adding it to an instance 2020-05-01 23:32:25 +02:00
jglrxavpok
9b465830e0 Fixed custom block removal when breaking it 2020-05-01 23:18:32 +02:00
jglrxavpok
d96bf48eb2 Remove custom block when breaking it
Use Math.floor() to correct coordinates
2020-05-01 23:05:47 +02:00
jglrxavpok
f38d3718c3 Neighbor updates 2020-05-01 22:08:31 +02:00
jglrxavpok
08a32c4492 User-friendly update scheduling 2020-05-01 21:54:01 +02:00
jglrxavpok
feae9f1cd3 Resource gatherer to extract data from Minecraft's server jar instead of distributing our own 2020-05-01 21:29:34 +02:00
Felix Cravic
7980ee6ebb Fixed inventory held click & slot on InventoryCondition 2020-04-30 02:42:44 +02:00
Felix Cravic
4b3e3e8e65 An inventory can now have multiple InventoryCondition 2020-04-30 01:51:16 +02:00
jglrxavpok
1cb8166edd Actually fix issue direction issue with yaw < 0 2020-04-29 22:07:37 +02:00
jglrxavpok
9e7f05c311 Fix issue when finding direction with MathUtils when yaw < 0 2020-04-29 21:37:20 +02:00
Felix Cravic
7eee0c788f WIP Enchantments (de)serialization 2020-04-29 20:17:04 +02:00
Felix Cravic
0354a60635 Added Enchantment & PotionType enum + PlayerCommandEvent call 2020-04-29 19:23:47 +02:00
Felix Cravic
c2af4be2fa Can now define an inventory to open after closing another + added a bunch of inventory type 2020-04-29 17:27:58 +02:00
Felix Cravic
0782ee7fe5 Added the InventoryCloseEvent event 2020-04-29 12:11:13 +02:00
Felix Cravic
db1e108464 Fixed PlayerInventory craft result slot 2020-04-29 11:40:58 +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
263713ab49 Custom block breaking and data creation now both have an instance and a position accessible 2020-04-29 00:12:59 +02:00
Felix Cravic
d49cfc2215 Deleted an useless register method 2020-04-28 23:56:24 +02:00
Felix Cravic
2473a1bbe6 Instance#refreshBlockId optimization 2020-04-28 23:43:37 +02:00
Felix Cravic
93f1b240da Merge remote-tracking branch 'origin/master' 2020-04-28 23:39:09 +02:00
Felix Cravic
d0c523f0e5 Added a way to change CustomBlock blockId just after placement + more BlockAlternative tools 2020-04-28 23:38:44 +02:00
jglrxavpok
483cf7aa88 Added opposite() convenience method to Direction 2020-04-28 22:45:44 +02:00
Felix Cravic
a06274f877 Cleanup + updated RedstonePlacementRule 2020-04-28 22:08:39 +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
9b25f5d95b Allow server to be stopped cleanly 2020-04-28 19:23:02 +02:00