Commit Graph

350 Commits

Author SHA1 Message Date
jglrxavpok
18a9f2485d Explosion and loot table callbacks in CustomBlock + custom blocks can write block entities 2020-05-19 19:31:11 +02:00
jglrxavpok
fe3025fce5 Loot table entry types + Defaults for loot table functions and conditions 2020-05-19 18:34:11 +02:00
Felix Cravic
5cb31171e6 Remove ReflectASM (no more warning message) 2020-05-19 17:47:47 +02:00
jglrxavpok
3c0d351f15 Loot table support 2020-05-18 21:11:59 +02:00
Felix Cravic
c50030cd6b Allow for separate blocks in PlayerBlockBreakEvent 2020-05-17 15:52:49 +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
7512cb8f03 Comments for StorageFolder and some utils method 2020-05-17 04:13:24 +02:00
Felix Cravic
4c889923f1 Added more TimeUnit (HOUR/MINUTE/SECOND) 2020-05-17 03:56:36 +02:00
Felix Cravic
2daccd9d9b Fix crash with empty recipe and made Instance constructors public 2020-05-17 03:22:42 +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
80f9122da1 Storage system improvement 2020-05-16 22:22:34 +02:00
Felix Cravic
fe7e56da8d Added StorageFolder#getOrDefault and some cleanup 2020-05-16 22:07:24 +02:00
Felix Cravic
fa4b083ab8 Added Data#hasKey and Data#getKeys 2020-05-16 21:57:46 +02:00
Felix Cravic
155efc0cff Added Sidebar#setTitle to change the title at any time 2020-05-16 19:55:22 +02:00
Felix Cravic
b97b75f13c Added a lot of comments 2020-05-15 18:03:28 +02:00
Felix Cravic
ee90f82969 Prevent memory leak when unloading chunks 2020-05-15 15:38:06 +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
jglrxavpok
da0df5afe3 Fixed explosion packet 2020-05-14 16:56:44 +02:00
jglrxavpok
583077d556 Send explosion packet 2020-05-14 16:19:04 +02:00
jglrxavpok
1bcc0c9f5b Replace explosion blocks with air 2020-05-14 15:49:14 +02:00
jglrxavpok
6f281eef3b Shortcut to access held items 2020-05-14 15:46:29 +02:00
jglrxavpok
041f9ffb4d Instances can now create explosions 2020-05-14 15:33:36 +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
f5d4cba29d Making the ResponseDataConsumer optional 2020-05-10 19:39:25 +02:00
TheMode
2e548797c3
Merge pull request #6 from Articdive/logging
Added SLF4J and Log4J2 as the logging platform.
2020-05-10 17:02:19 +02:00
Lukas Mansour (Articdive)
df253238fc Added SLF4J and Log4J2 as logging platform. 2020-05-10 16:02:49 +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
Felix Cravic
a0a72cb6c7 WIP chunk biomes 2020-05-08 20:50:05 +02:00
jglrxavpok
5dd08cf19b Send different teleportIds for each packet 2020-05-08 18:42:04 +02:00
Felix Cravic
1d930ec021 Fixed event callbacks multiplication in PlayerSpawnEvent 2020-05-08 18:11:06 +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
1bca86eb5d Direct return for StorageFolder#get and we can now store registered DataType type directly 2020-05-08 16:15:08 +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