Commit Graph

669 Commits

Author SHA1 Message Date
Felix Cravic
d980b3f56c Updated inventory types 2020-08-01 10:33:06 +02:00
Felix Cravic
930c222953 Merge remote-tracking branch 'origin/master' 2020-08-01 09:20:41 +02:00
Felix Cravic
676a7174fa Fixed CrossbowMeta & PotionMeta 2020-08-01 09:20:26 +02:00
TheMode
3b1067c18e
Merge pull request #21 from Minestom/improve-argumentnumber
Improve ArgumentNumber.
2020-08-01 07:47:57 +02:00
Articdive
4b47245c90
Improve ArgumentNumber. 2020-08-01 07:35:16 +02:00
Felix Cravic
4c10418bf8 Added LeatherArmorMeta getter for color 2020-08-01 04:03:17 +02:00
Felix Cravic
6cc315fe78 WIP FireworkMeta & ChatHoverEvent cleanup 2020-08-01 03:57:55 +02:00
Felix Cravic
bf55bf23e7 Completed CrossbowMeta 2020-08-01 03:48:49 +02:00
Felix Cravic
ba965feb8e Added LeatherArmorMeta 2020-08-01 03:33:22 +02:00
Felix Cravic
20e184f042 Added WrittenBookMeta && WritableBookMeta item meta 2020-08-01 03:19:48 +02:00
Felix Cravic
4334733c52 Cleanup ChatHoverEvent 2020-08-01 01:05:11 +02:00
Felix Cravic
f95feeaaf1 Add support for insertion text in RichMessage 2020-08-01 01:00:53 +02:00
Felix Cravic
fe73c43eef Added CompassMeta & WIP CrossbowMeta 2020-08-01 00:43:52 +02:00
Felix Cravic
af14d2d324 Added EnchantedBookMeta 2020-08-01 00:21:03 +02:00
Felix Cravic
3b24be4925 Fixed color serialization 2020-07-31 23:02:01 +02:00
jglrxavpok
5a8f58d9dd oops wrong javadoc 2020-07-31 22:38:03 +02:00
jglrxavpok
4782d6e899 Fixed inconsistency between hasPermission(Permission) and hasPermission(Class) 2020-07-31 22:37:47 +02:00
jglrxavpok
1772b94114 Start of Permission API 2020-07-31 22:31:58 +02:00
Felix Cravic
7f5f8bf2f6 TODO handle entities collision 2020-07-31 22:26:44 +02:00
Felix Cravic
79226cf7e7 EntityCreature#setPathTo does reset the previous path everytime 2020-07-31 22:17:24 +02:00
Felix Cravic
7a961eed9f Fix EntityCreature not resetting the pathfinder 2020-07-31 22:09:04 +02:00
Felix Cravic
f6fac5773d Allow to customize the search range of an entity 2020-07-31 21:58:49 +02:00
TheMode
aada943f91
Merge pull request #20 from Minestom/smooth-pathfinding
Smooth pathfinding
2020-07-31 21:13:08 +02:00
jglrxavpok
322194c5e4 Make entities look along their path 2020-07-31 21:02:37 +02:00
Felix Cravic
336d040cd4 Replaced TaskBuilder#buildTask to TaskBuilder#schedule 2020-07-31 20:44:58 +02:00
Felix Cravic
4c77c99442 Fix ColoredText#toString 2020-07-31 19:19:32 +02:00
Felix Cravic
8499a2ceeb ColoredText compiled string can now be cached 2020-07-31 19:18:10 +02:00
jglrxavpok
628e87e531 Potential deprecation of EntityCreature#move 2020-07-31 18:57:37 +02:00
jglrxavpok
49b4f0c79d Fixed non-smooth pathfinding by setting the velocity of the creature, therefore allowing the client to predict the position and smooth the path 2020-07-31 18:55:08 +02:00
Felix Cravic
7b947ba09b Added EntityFinder#find as concept example 2020-07-29 22:55:25 +02:00
Felix Cravic
647bb39e7c Change packet listener to ConnectionManager#onPacketReceive 2020-07-29 22:38:46 +02:00
Felix Cravic
da641fd54b Update item hover + rich message comments 2020-07-29 20:13:17 +02:00
TheMode
24506ff209
Merge pull request #19 from Articdive/item-hovering
Started work on item hovering.
2020-07-29 19:51:45 +02:00
Articdive
78f4bc0a13
Started work on item hovering. 2020-07-29 11:21:11 +02:00
Felix Cravic
3b01317b1a Remove scheduler debugging 2020-07-29 06:59:38 +02:00
TheMode
2c58253d95
Merge pull request #18 from R0bbyYT/feature/scheduler
Feature/scheduler - Optimization of the scheduler system
2020-07-29 06:55:51 +02:00
Felix Cravic
24af31f38f Instance comments 2020-07-29 06:09:48 +02:00
R0bbyYT
56010e27e6 SchedulerManager console output + Added a simple ShutdownCommand 2020-07-29 05:03:07 +02:00
R0bbyYT
4ad4054fce Improve the scheduler's 2020-07-29 04:28:01 +02:00
Felix Cravic
da5f318b09 Rewind EntityCreature#moveTowards 2020-07-29 00:31:45 +02:00
Felix Cravic
65bd725cb5 ChatColor is converted to the color name instead of the rgb value when possible 2020-07-28 21:59:07 +02:00
Felix Cravic
01052528d0 Comments + inventory can now cache the items packet 2020-07-28 19:00:25 +02:00
Felix Cravic
f99e06957b Fix Inventory#setTitle 2020-07-28 18:40:10 +02:00
ThuverX
825722ac4d Typos 2020-07-28 18:31:29 +02:00
ThuverX
4f606de80f Added setTitle 2020-07-28 18:28:45 +02:00
Felix Cravic
dd74f1cb1e CustomBlock class comment 2020-07-27 05:10:54 +02:00
Felix Cravic
98c3419766 Cleanup 2020-07-27 02:28:03 +02:00
Felix Cravic
71b2988583 Added AnimationEvent comments + cleanup 2020-07-26 20:03:39 +02:00
TheMode
48324a71ed
Merge pull request #16 from Minestom/hydrazine-test
Merge branch hydrazine-test to master
2020-07-25 00:17:12 +02:00
Felix Cravic
d699343366 Fixed not auto viewable entity keeping viewers after being removed 2020-07-24 22:48:38 +02:00
Felix Cravic
1345968aac Hologram is now a Viewable 2020-07-24 19:44:30 +02:00
Felix Cravic
1adaa0553e Pathfinding update 2020-07-24 19:31:15 +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
e57485367c pathfinding update 2020-07-24 03:06:38 +02:00
Felix Cravic
b54599a1f1 Cleanup 2020-07-24 02:49:55 +02:00
Felix Cravic
7b5107f59d Hydrazine fix + basic pathfinding api 2020-07-24 02:31:10 +02:00
Felix Cravic
2ea4c2d996 Initial hydrazine commit 2020-07-24 01:03:24 +02:00
Felix Cravic
5c1e6e7572 Cleanup 2020-07-23 07:36:49 +02:00
Felix Cravic
01cb95c9b2 item meta cleanup 2020-07-23 05:48:47 +02:00
Felix Cravic
f8453b4906 Added ItemMeta + MapDataPacket 2020-07-23 05:36:15 +02:00
Felix Cravic
f75c3870a3 time cleanup 2020-07-22 21:00:57 +02:00
Felix Cravic
9b25f0a25f Fix time update option 2020-07-22 20:57:05 +02:00
Felix Cravic
126c174bb9 Added time api 2020-07-22 20:54:30 +02:00
Felix Cravic
df6c9e4953 More comments + cleanup 2020-07-22 17:39:48 +02:00
Robby
c1dde3bc34 Moved the keepAlive logic under the scheduler updates 2020-07-21 21:22:12 +02:00
Felix Cravic
189376f951 Cleanup + javadoc comments 2020-07-21 18:48:15 +02:00
Felix Cravic
287f7e64a3 Added command javadoc 2020-07-21 18:04:02 +02:00
Felix Cravic
617d855c84 More understandable exception when a chunk is not loaded 2020-07-18 23:32:12 +02:00
jglrxavpok
54c4134006 BlockFace added to PlayerBlockInteractEvent 2020-07-18 17:45:56 +02:00
jglrxavpok
7485919805 Explosion hook after sending the packet to allow world modifications after the explosion (can prevent desyncs) 2020-07-16 21:41:16 +02:00
jglrxavpok
2c74589599 Allow postExplosion to modify the ExplosionPacket 2020-07-16 21:37:27 +02:00
jglrxavpok
fa8b2bc49c Added method at end of explosions to allow custom code after destroying blocks 2020-07-16 21:24:14 +02:00
Felix Cravic
c8f2c9c078 Remove command generic + WIP target selector 2020-07-14 13:35:07 +02:00
jglrxavpok
47c249c293 Don't instabreak custom blocks with -1 block delay 2020-07-13 14:48:56 +02:00
jglrxavpok
b2f4c8654d Added convenience methods to convert ItemStack to/from NBTCompound 2020-07-13 14:36:39 +02:00
jglrxavpok
2cff307a20 Merge branch 'new-dimensions' 2020-07-13 14:12:48 +02:00
jglrxavpok
30019ebe9a Customizable dimension list in JoinGamePacket + Dimension->DimensionType 2020-07-13 14:12:21 +02:00
Felix Cravic
87ab850945 Comment + EntityFinder WIP 2020-07-11 14:16:36 +02:00
Felix Cravic
e8cd68bc3b Fixed command range argument 2020-07-11 00:38:39 +02:00
Felix Cravic
17d638d460 Added ArgumentIntRange & ArgumentFloatRange 2020-07-10 23:51:38 +02:00
Felix Cravic
e4ad66fcde Added a bunch of new command arg types 2020-07-10 22:50:05 +02:00
Felix Cravic
23826a0842 Reworked command packet 2020-07-10 18:12:29 +02:00
Felix Cravic
ccf8038f62 CommandBuilder is now integrated in Minestom directly 2020-07-10 16:37:18 +02:00
Felix Cravic
d1b159d174 Added NBTConsumer for custom item nbt 2020-07-09 15:51:39 +02:00
Felix Cravic
83b6665702 Fix RichMessage 2020-07-08 12:14:05 +02:00
jglrxavpok
f12ab40a6e Beginnings of custom dimension support 2020-07-07 20:31:59 +02:00
jglrxavpok
109afe7a54 Oops didn't compile 2020-07-07 18:44:55 +02:00
jglrxavpok
6b1da01795 Tags are now supported in loottables 2020-07-07 18:33:38 +02:00
jglrxavpok
53d39dbcb8 Experiment3: null check 2020-07-07 14:03:50 +02:00
jglrxavpok
dbc8cc54c1 Experiment2: Move executor service inside method 2020-07-07 14:03:03 +02:00
jglrxavpok
bd5bb2e3d9 Experiment by using MinestomThread for parallel saving 2020-07-07 13:55:43 +02:00
jglrxavpok
dfdf93bfc4 ChunkLoader can now indicate that they support parallel loading or saving 2020-07-07 13:41:55 +02:00
jglrxavpok
69654d05de Add methods for BlockAlternative and reran generators 2020-07-07 13:17:41 +02:00
jglrxavpok
9bc4915d6c Fix EOFException with ClientClickWindow 2020-07-07 00:24:46 +02:00
jglrxavpok
f8c358adcd Use ChatParser.toColoredText when loading name&lore 2020-07-06 23:55:43 +02:00
jglrxavpok
6d892efacf Save additional NBT to correct sub-compound 2020-07-06 23:50:32 +02:00
jglrxavpok
b277d7cb1a Moved NBTUtils from VanillaReimpl to core 2020-07-06 23:43:56 +02:00
jglrxavpok
84b06307c4 Item damage is an Integer 2020-07-06 23:34:22 +02:00
jglrxavpok
4f4d48df92 Remove old NBT code, use Hephaistos 2020-07-06 23:20:20 +02:00
Felix Cravic
c061e2a71f Fix FakePlayer respawn 2020-07-06 19:35:24 +02:00
Felix Cravic
85aad4f044 Support for tablist in FakePlayerOption 2020-07-06 19:31:02 +02:00
Felix Cravic
9fc8012d9d Fix player display name 2020-07-06 19:15:13 +02:00
Felix Cravic
5673f67db9 Added FakePlayerOption 2020-07-06 19:09:30 +02:00
Felix Cravic
e74c8ac9fd Changed the way to create FakePlayer 2020-07-06 16:06:31 +02:00
Felix Cravic
da48ba8fb0 Fix ItemStack#clone 2020-07-06 13:24:01 +02:00
Felix Cravic
4808567ef6 Consider HideFlags as an NBT tag 2020-07-06 12:44:02 +02:00
Felix Cravic
433703c0af Added support for item CustomModelData 2020-07-06 12:39:48 +02:00
Felix Cravic
3e9194b5ec Fix ChunkPopulator 2020-07-04 00:11:52 +02:00
Felix Cravic
2fc29037fb Give access to Chunk to ChunkPopulator 2020-07-04 00:10:08 +02:00
Felix Cravic
5460d8e6c4 Allow special color code to be false 2020-07-03 20:28:07 +02:00
Felix Cravic
2b021e26c1 Added support for special color code (reset/bold/italic/etc...) 2020-07-03 19:53:53 +02:00
Felix Cravic
87921a8788 Added ThreadProvider 2020-07-03 16:44:21 +02:00
Eoghanmc22
aa689d0df0 Merge branch 'master' of https://github.com/Minestom/Minestom 2020-07-02 17:16:46 -04:00
Eoghanmc22
f8d014ab64 fix recipes wiki.vg was wrong. 2020-07-02 17:15:31 -04:00
Felix Cravic
401fa67243 Fix issue with ghost item 2020-07-02 17:58:18 +02:00
Felix Cravic
d35bb8f434 Updated JNoise + cleanup 2020-07-02 16:04:46 +02:00
Felix Cravic
0d0674ee5d Added support for custom server brand name 2020-07-02 15:56:43 +02:00
Felix Cravic
b4f1679e42 Remove count field in WindowItemsPacket 2020-07-01 23:10:45 +02:00
Eoghanmc22
6e6bb35799 Merge branches 'experimental' and 'master' of https://github.com/Minestom/Minestom 2020-07-01 16:51:49 -04:00
Felix Cravic
5d747b3eb2 Fix inventory update 2020-07-01 22:50:05 +02:00
jglrxavpok
b98232eab6 Wait for shutdown tasks to finish before returning from SchedulerManager#shutdown 2020-07-01 22:17:35 +02:00
Eoghanmc22
7cbd13a560 Merge branches 'experimental' and 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/net/minestom/server/inventory/Inventory.java
2020-07-01 15:55:13 -04:00
jglrxavpok
82c2af88a0 Actually shutdown Minestom when MinecraftServer.stopCleanly() is called 2020-07-01 21:03:53 +02:00
jglrxavpok
4fb03a8479 Added normals to Directions 2020-07-01 20:36:19 +02:00
jglrxavpok
0b23692385 Rely on methods to access ItemStack inside of Inventory, instead of a field. Allows for extensions and custom logic in child classes 2020-07-01 18:58:16 +02:00
Felix Cravic
ce06919da1 Fix Player#didCloseInventory 2020-07-01 17:25:25 +02:00
Eoghanmc22
eb9aa8b6b6 Merge branches 'experimental' and 'master' of https://github.com/Minestom/Minestom 2020-07-01 10:55:44 -04:00
Felix Cravic
d96e06dfe2 Added InstanceChunkLoadEvent and InstanceChunkUnloadEvent 2020-07-01 15:51:00 +02:00
Eoghanmc22
ffe5240a8d Merge branches 'experimental' and 'master' of https://github.com/Minestom/Minestom 2020-06-30 20:00:28 -04:00
Eoghanmc22
1f95cd5e23 Fix game crash on join. 2020-06-30 20:00:08 -04:00
Felix Cravic
f873f495ea Fix inventory + added our own chat parser 2020-07-01 01:17:58 +02:00
jglrxavpok
5b7e15c226 Add access to PacketWriter in NbtWriter 2020-07-01 00:48:23 +02:00
Felix Cravic
151dedca99 Fixed SerializableData#clone 2020-07-01 00:40:39 +02:00
jglrxavpok
e60efca907 y is also an int in Chunk#getData 2020-07-01 00:11:15 +02:00
Eoghanmc22
68049b3eab Merge branches 'experimental' and 'master' of https://github.com/Minestom/Minestom 2020-06-30 17:15:32 -04:00
jglrxavpok
450603cac8 Don't send tags packet to viewers 2020-06-30 21:06:06 +02:00
jglrxavpok
2303b98024 Send tags to player on connection 2020-06-30 20:38:42 +02:00
jglrxavpok
ef8c275c4d Moved chunk creation out of chunk loaders 2020-06-30 18:12:09 +02:00
jglrxavpok
1ddef81372 Customizable chunk loader for InstanceContainers 2020-06-30 18:07:47 +02:00
Felix Cravic
2696bead72 Cleanup 2020-06-30 12:59:37 +02:00
jglrxavpok
bf6313659e NamespaceID->Resource in Registries.java 2020-06-30 12:53:15 +02:00
Felix Cravic
e1b9f74cf4 Optimize message sending 2020-06-30 01:25:23 +02:00
Felix Cravic
8c3289d675 Allow for RGB color 2020-06-30 01:11:48 +02:00
Eoghanmc22
3e740cf874 kick for invalid version, use disconnect after kick packet, change logging level back to info, fix problem with compression on and encryption off. 2020-06-29 18:07:40 -04:00
Eoghanmc22
01d7ed9699 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/net/minestom/server/entity/EntityType.java
	src/main/java/net/minestom/server/instance/block/Block.java
	src/main/java/net/minestom/server/item/Enchantment.java
	src/main/java/net/minestom/server/item/Material.java
	src/main/java/net/minestom/server/particle/Particle.java
	src/main/java/net/minestom/server/registry/RegistryMain.java
	src/main/java/net/minestom/server/registry/ResourceGatherer.java
	src/main/java/net/minestom/server/sound/Sound.java
	src/main/java/net/minestom/server/stat/StatisticType.java
2020-06-29 16:27:53 -04:00
Felix Cravic
fad0373cb2 Fix TranslatableText 2020-06-29 22:19:48 +02:00
Felix Cravic
bd3aa9881e Add support for arguments in translatable text 2020-06-29 22:17:28 +02:00
jglrxavpok
7b9c093709 Merge remote-tracking branch 'origin/block-types' 2020-06-29 21:20:22 +02:00
jglrxavpok
e2a01c1a16 Back to 1.15.2 to prepare for merge 2020-06-29 21:19:59 +02:00