Commit Graph

357 Commits

Author SHA1 Message Date
jglrxavpok
a8e607626e Autogeneration of Biome enum 2020-06-29 20:37:48 +02:00
jglrxavpok
7c3d3f6f07 Completely removed RegistryMain 2020-06-29 20:29:50 +02:00
jglrxavpok
4902ed4c6e Autogenerated Material ready to use 2020-06-29 19:21:41 +02:00
Felix Cravic
18f9341c55 Add missing break statement 2020-06-29 17:32:35 +02:00
Eoghanmc22
f04e8036fc Add missing break and fix various things with the netty improvements made by WhileInside, add the disconnect during login packet currently only used for preventing multiple people with the same username from logging in when Mojang auth is enabled. 2020-06-29 11:25:10 -04:00
jglrxavpok
c9589ae526 1.16+ support and remove unused imports in generated Block enum 2020-06-29 16:41:29 +02:00
Eoghanmc22
1f56bc10fc Merge branch 'master' of https://github.com/WhileInside/Minestom
 Conflicts:
	src/main/java/net/minestom/server/network/netty/NettyServer.java
	src/main/java/net/minestom/server/network/packet/client/login/LoginStartPacket.java
	src/main/java/net/minestom/server/network/player/FakePlayerConnection.java
	src/main/java/net/minestom/server/network/player/NettyPlayerConnection.java
	src/main/java/net/minestom/server/network/player/PlayerConnection.java
2020-06-28 18:06:36 -04: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
artem
53410c737a getVarIntSize optimization, Compression, LegacyPing 2020-06-29 01:07:48 +05:00
artem
9502511095 Mark classes to delete 2020-06-28 23:36:19 +05:00
artem
f8dceb51b4 TCP_NODELAY 2020-06-28 23:31:45 +05:00
artem
6a6309377f Epoll support (optimization for linux) 2020-06-28 23:29:36 +05:00
Eoghanmc22
7d59347873 Hotfix 2020-06-26 18:55:41 -04:00
Eoghanmc22
37b5484775 Minor optimizations to mojang auth. 2020-06-25 19:40:33 -04:00
Eoghanmc22
b80da2f097 basic 1.16.1 support 2020-06-25 15:05:58 -04:00
Eoghanmc22
8e26447f9a Merge branch 'master' of https://github.com/Minestom/Minestom 2020-06-23 17:02:29 -04:00
Felix Cravic
2db810bafa Added legacy message support 2020-06-23 22:46:22 +02:00
Eoghanmc22
e203d9c45a Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	build.gradle
	src/main/java/net/minestom/server/entity/Player.java
2020-06-23 16:03:21 -04:00
Eoghanmc22
7ac90cff24 init 2020-06-23 15:58:31 -04:00
jglrxavpok
290d922e3a Replacing old Block enum with autogenerated Block enum 2020-06-23 18:35:23 +02:00
jglrxavpok
60e1b856c7 Merge remote-tracking branch 'origin/master' into block-types 2020-06-23 18:18:12 +02:00
jglrxavpok
f79cfa8d87 Merge branch 'tags' 2020-06-23 18:17:35 +02:00
jglrxavpok
4111c728df Basic implementation of tags 2020-06-23 18:17:02 +02:00
Felix Cravic
19fc90e764 Fixed Held packet + replaced the short by a byte 2020-06-23 18:09:01 +02:00
Felix Cravic
b47efa35ca Added PlayerChangeHeldSlotEvent 2020-06-23 17:50:43 +02:00
Felix Cravic
9dfb9b657b Added CommandSender#isPlayer and CommandSender#isConsole 2020-06-23 17:25:46 +02:00
Felix Cravic
6ccd31e7fe Fix Chat.COLOR_CHAR 2020-06-23 00:34:49 +02:00
Felix Cravic
f892213e8c Added a new Chat API 2020-06-22 23:25:00 +02:00
Eoghanmc22
c31b962ed8 fix imports 2020-06-21 19:25:50 -04:00
Eoghanmc22
0335f04135 Merge branch 'master' of https://github.com/Minestom/Minestom 2020-06-21 18:59:40 -04:00
Eoghanmc22
77b99e8223 Merge with latest Minestorm 2020-06-21 18:57:53 -04:00
Felix Cravic
37440c51cf Added CommandSender#isPlayer and CommandSender#isConsole 2020-06-22 00:48:12 +02:00
Eoghanmc22
42276efc49 Added optional Mojang auth and UUIDs support (MojangAuth.init()), added support for skin layers, and made everywhere have max lighting. 2020-06-21 18:04:19 -04:00
Felix Cravic
889b1fe095 Renamed PlayerInteractEvent to PlayerEntityInteractEvent 2020-06-21 23:44:20 +02:00
jglrxavpok
62db9d9c26 Added alternatives (block states) and block entity information to generated Block enum 2020-06-21 23:03:40 +02:00
Felix Cravic
72234ac706 Added PlayerPreLoginEvent 2020-06-21 22:11:56 +02:00
Felix Cravic
eba5c5ae3a Added CommandSender and ConsoleSender 2020-06-21 14:01:03 +02:00
Felix Cravic
5837b59a41 Give the player username to the UUID provider 2020-06-20 19:07:34 +02:00
Felix Cravic
f585b3df86 Some comments 2020-06-03 15:17:34 +02:00
Felix Cravic
2ee93bd7cb Fixed EntityItemMergeEvent constructor 2020-06-02 14:55:18 +02:00
Felix Cravic
bd08676525 Added EntityItemMergeEvent#setResult 2020-06-02 14:54:33 +02:00
Felix Cravic
0da78193c5 Code cleanup 2020-06-02 14:43:31 +02:00
Felix Cravic
50373505b3 Remove entities other than players when unloading a chunk 2020-06-02 00:03:03 +02:00
Felix Cravic
895a4fd4bd Fixed instance switch while unloading chunk 2020-06-01 23:55:11 +02:00
Felix Cravic
b7b334645f Added InstanceContainer#saveInstance to save its SerializableData + its uniqueId 2020-06-01 22:11:47 +02:00
Felix Cravic
cb743bc7d5 NbtWriter cleanup 2020-06-01 18:57:16 +02:00
Felix Cravic
45e8ba2f03 Added EventHandler#removeEventCallback 2020-06-01 17:11:43 +02:00
Felix Cravic
b1e86adb23 Allow ItemEntity#getMergeUpdateOption to be null 2020-06-01 02:18:24 +02:00
Felix Cravic
7e20278dd9 Fix deadlock with ItemEntity + added ItemEntity#getMergeUpdateOption to mitigate CPU usage increase 2020-06-01 00:51:31 +02:00
Felix Cravic
ea034701f8 Added PlayerSetItemStackEvent#setSlot + some checks 2020-05-31 21:37:40 +02:00
Felix Cravic
633d02222a Added PlayerAddItemStackEvent and PlayerSetItemStackEvent 2020-05-31 21:30:46 +02:00
Felix Cravic
7128844563 Resource pack cleanup 2020-05-31 20:09:42 +02:00
Felix Cravic
c17aba4ac7 Added Player#setResourcePack + PlayerResourcePackStatusEvent 2020-05-31 19:53:59 +02:00
TheMode
ce89963240
Merge pull request #8 from programmerpony/home-linux
Check home directory for Minecraft files on Linux
2020-05-31 19:14:24 +02:00
programmerpony
ab3578b84d Check home directory for Minecraft files on Linux 2020-05-31 12:50:35 -04:00
Felix Cravic
00143078e3 Added PlayerSkin#fromUuid and PlayerSkin#fromUsername 2020-05-31 18:07:09 +02:00
Felix Cravic
f8758d2933 Added LivingEntity#swingMainHand and LivingEntity#swingOffHand 2020-05-31 16:14:27 +02:00
Felix Cravic
eed946e948 Cleanup 2020-05-31 15:52:56 +02:00
Felix Cravic
30ef05183e Added more synchronization at death + added listener for teleport and window confirmation to remove warning 2020-05-31 00:39:56 +02:00
Felix Cravic
1bcd0c474f Added event comments 2020-05-30 22:32:12 +02:00
Felix Cravic
edb6db428e sync equipments only to the viewer to update instead of all 2020-05-30 21:56:12 +02:00
Felix Cravic
f887f21493 Cleanup with the ADD_PLAYER method 2020-05-30 19:51:45 +02:00
Felix Cravic
7ce6f7ada1 Added Player#setSkin and PlayerSkinInitEvent to modify it at initialization 2020-05-30 19:47:47 +02:00
Felix Cravic
1343a66681 Added player in inventory events + comments 2020-05-30 14:58:00 +02:00
Felix Cravic
3940eacde8 Attribute optimization + comments 2020-05-30 01:39:52 +02:00
Felix Cravic
407bdd8ea7 Remove the previous NBT library 2020-05-30 00:25:07 +02:00
Felix Cravic
639629ccf6 Added a small nbt utils package 2020-05-30 00:01:38 +02:00
Felix Cravic
1c3099f61a Entity & Player comments 2020-05-29 23:17:14 +02:00
Felix Cravic
18a1e0b29b Added EntityPigZombie metadata + itemstack synchronization 2020-05-29 21:30:42 +02:00
Felix Cravic
27b0238705 Fixed ResourceGatherer on Mac OS 2020-05-29 20:44:03 +02:00
Felix Cravic
49723fbe7d Fixed ItemStack#isSimilar 2020-05-29 20:24:39 +02:00
Felix Cravic
6543f17d4c Remove useless synchronization blocks and fix Inventory#addItemStack 2020-05-29 19:41:08 +02:00
Felix Cravic
b0ccb91c31 More entity + added boundingboxes 2020-05-29 18:56:42 +02:00
Felix Cravic
29aae491d1 Minor optimizations 2020-05-29 17:20:30 +02:00
Felix Cravic
589079f8f6 Updated netty + fix network crash 2020-05-29 15:31:11 +02:00
Felix Cravic
eb5659c235 Optimize bandwidth + fix keep alive 2020-05-29 02:11:41 +02:00
Felix Cravic
b00627f778 Forgot to write StoredEnchantments 2020-05-29 01:05:08 +02:00
Felix Cravic
14408e9d15 Fixed HideFlags 2020-05-29 00:30:19 +02:00
Felix Cravic
d416efad5b Fixed enchantments (StoredEnchantments+Enchantments support) 2020-05-28 23:54:26 +02:00
Felix Cravic
619c680f1b Added item attributes 2020-05-28 23:43:12 +02:00
Felix Cravic
068a0889c8 More PlayerBlockPlaceEvent methods + comments 2020-05-28 21:51:14 +02:00
Felix Cravic
7cd2d570bd Comments 2020-05-28 20:09:52 +02:00
Felix Cravic
dfd7ca84a4 Fixed player mining vanilla block 2020-05-28 19:29:29 +02:00
Felix Cravic
5e91b75d78 Comments 2020-05-28 19:15:55 +02:00
Felix Cravic
dbf58f2234 Comments + more PlayerBlockBreakEvent information 2020-05-28 15:08:18 +02:00
Felix Cravic
32ebd4a53e Digging cleanup 2020-05-28 00:21:14 +02:00
Felix Cravic
7147250432 Fixed player digging vanilla blocks + comments 2020-05-27 23:26:45 +02:00
Felix Cravic
966bbfc0cc Synchronize properly the view from Entity#getPosition 2020-05-27 23:13:13 +02:00
Felix Cravic
d91b1e9966 WorldBorder keeps its diameter updated properly 2020-05-27 22:24:58 +02:00
Felix Cravic
af430ebc3f Entity#getPosition is now fully synchronized with the entity position 2020-05-27 22:06:22 +02:00
Felix Cravic
eb4e47df52 Fixed LivingEntity#damage for death entities 2020-05-27 21:25:54 +02:00
Felix Cravic
70be25bd1c Added EntityCreature#setView 2020-05-27 20:55:33 +02:00
Felix Cravic
039e9aca4f Lot of comments 2020-05-27 20:30:13 +02:00
Felix Cravic
f5ddc66c43 Modified digging listener, added more clear exceptions and some comments 2020-05-27 19:43:08 +02:00
Felix Cravic
f97328a3bd Temporary fix with inventory held click 2020-05-27 17:56:29 +02:00
Felix Cravic
c363b715ca Optimize ChunkDataPacket, and having an universal block index method 2020-05-27 16:25:05 +02:00
Felix Cravic
9bf193988f Added ItemStack potion nbt 2020-05-27 12:33:12 +02:00
Felix Cravic
f5f5a6bb4e Better world border collision check + WorldBorder#getCollisionAxis 2020-05-27 01:15:21 +02:00
Felix Cravic
ef261c1792 Added WorldBorder#isInside + physics now support world border 2020-05-27 01:04:39 +02:00
Felix Cravic
224a8a3b86 Support for additional hearts in Player#damage 2020-05-26 23:15:09 +02:00