Commit Graph

3479 Commits

Author SHA1 Message Date
Németh Noel
384c556caf Updated LivingEntity.java 2021-06-30 00:51:22 +02:00
Németh Noel
58bae20f10 Updated Main.java 2021-06-30 00:47:57 +02:00
Németh Noel
7f9737d866 Updated UpdateOption.java so it doesn't break with the TimeUnit.java change 2021-06-30 00:46:08 +02:00
Németh Noel
7b126f5d13 Updated BenchmarkManager.java 2021-06-30 00:32:06 +02:00
Németh Noel
e23b65c2df Updated OpenToLANConfig.java 2021-06-30 00:29:44 +02:00
Németh Noel
ff4bb20a04 Repurpose TimeUnit.java 2021-06-30 00:14:26 +02:00
Németh Noel
4b04539086 Included Tick.java from PR#205 with slight modifications 2021-06-29 23:44:19 +02:00
Németh Noel
5e731e5ba9 Updated EntityFireEvent.java 2021-06-29 23:04:25 +02:00
Németh Noel
ab80ffcd0e Updated ArgumentTime.java 2021-06-29 22:38:37 +02:00
Németh Noel
0a4166faf2 Made duration final 2021-06-29 22:25:32 +02:00
Németh Noel
b98abe8dd5 Updated Cooldown.java 2021-06-29 22:24:34 +02:00
Németh Noel
8f906d80d0 Added tick as a TemporalUnit 2021-06-29 22:22:30 +02:00
Németh Noel
7e82edcbd9 Marked classes deprecated for removal 2021-06-29 22:21:30 +02:00
TheMode
95e69c6f53 Remove float cast 2021-06-29 21:14:27 +02:00
TheMode
fda7b8cda1 Add boring math methods 2021-06-29 20:15:37 +02:00
TheMode
f8a9664fd9 Merge branch 'master' into new-position-api 2021-06-29 20:10:52 +02:00
TheMode
dab17f44d5 Add unary operators 2021-06-29 19:59:38 +02:00
TheMode
f8d1f8e067 Add unary operators 2021-06-29 06:40:15 +02:00
TheMode
6cc7ae5b23 Add unary operators 2021-06-29 04:11:02 +02:00
TheMode
43ac1c53e3 Add block position conversion 2021-06-29 00:08:56 +02:00
TheMode
fbb8c1a819
Merge pull request #344 from Kebab11noel/fix/gravity
Fix gravity
2021-06-29 00:08:40 +02:00
TheMode
5dfecce5d5 Cleanup 2021-06-28 23:31:01 +02:00
TheMode
790e99bce3 Simplify synchronization 2021-06-28 23:27:12 +02:00
Németh Noel
f6425d9fb2 Reduce the visibility of Entity#initializeDefaultGravity 2021-06-28 21:58:59 +02:00
Németh Noel
796d296f0d Removed terminal velocity 2021-06-28 19:24:53 +02:00
Németh Noel
13779aabde Fix knockback 2021-06-28 19:23:36 +02:00
Németh Noel
1ea526aa89 Fix gravity acceleration 2021-06-27 23:29:28 +02:00
Németh Noel
1afd4b4328 Use knockback method 2021-06-27 23:09:23 +02:00
Németh Noel
6c60c4d0fc Implement knockback 2021-06-27 23:05:54 +02:00
Németh Noel
17aa606037 Added javadoc to gravity related fields 2021-06-27 22:48:58 +02:00
Németh Noel
811531da70 Remove unit conversion 2021-06-27 22:45:05 +02:00
Németh Noel
adf0e06888 Changed gravity calculation 2021-06-27 22:44:04 +02:00
Németh Noel
e66fc2d200 Removed usages of Entity#setGravity 2021-06-27 22:32:56 +02:00
Németh Noel
b900d0e73d Introduced Entity#initializeDefaultGravity method 2021-06-27 22:29:25 +02:00
TheMode
018a9263ee Remove all direct volatile reads 2021-06-27 17:41:07 +02:00
TheMode
e772aace71 Initial reusable meta builder 2021-06-27 17:36:37 +02:00
TheMode
a29f5f1274 Add static parse for ArgumentBlockState 2021-06-27 17:05:57 +02:00
TheMode
e95cc4d295 Merge branch 'master' into new-block-api 2021-06-27 16:17:26 +02:00
TheMode
edaec0cb6d Fix double click inside player inventory 2021-06-27 05:44:24 +02:00
TheMode
b541ef4a74 Simplify block implementation 2021-06-26 20:23:56 +02:00
TheMode
4f4afbbe6d Merge branch 'master' into new-block-api
# Conflicts:
#	src/main/java/net/minestom/server/instance/Chunk.java
#	src/main/java/net/minestom/server/instance/Instance.java
2021-06-26 20:09:47 +02:00
TheMode
fbf8ddefce Add Tag#SNBT write support 2021-06-26 19:52:35 +02:00
TheMode
5ddfff22f2 Add Tag#NBT write support 2021-06-26 19:44:35 +02:00
BuildTools
efbb2b6338 Marker Armor Stands no longer prevent block placement 2021-06-26 19:47:29 +08:00
BuildTools
eb4d29628e Create MarkerHologram.java, modify Hologram.java to support subclasses overriding metadata easily 2021-06-26 19:39:53 +08:00
TheMode
bf44625730 Add experimental tags 2021-06-26 05:08:33 +02:00
TheMode
60042effba Merge remote-tracking branch 'origin/master' 2021-06-26 00:31:13 +02:00
TheMode
76bec54254 Add more TagHandler implementations 2021-06-26 00:31:04 +02:00
TheMode
3c04da9ae9 Add dummy block handler 2021-06-25 19:10:41 +02:00
TheMode
74073f13b5 Use classes instead of interfaces for BlockHandler type 2021-06-25 19:00:50 +02:00
BuildTools
e69c02f46d Change other usages of PacketUtils#sendGroupedPacket to use new convenience method 2021-06-25 20:41:54 +08:00
BuildTools
07a2b37f35 Add Javadoc 2021-06-25 20:34:19 +08:00
BuildTools
d84964d55b Add sendGroupedPacket convenience method to PacketGroupingAudience 2021-06-25 20:32:13 +08:00
TheMode
6526a2658a Replace netty to jdk thread local random 2021-06-25 06:45:02 +02:00
TheMode
5d8c9cbd23 Fix chunk border freeze by not sending UnloadChunkPacket 2021-06-24 23:40:09 +02:00
TheMode
b155fb6720 Micro-optimization for BlockLoader 2021-06-24 23:13:31 +02:00
TheMode
778dda08d6 Add more information about block tag<->nbt 2021-06-24 23:02:40 +02:00
TheMode
4ef056dfed Fix block comparison in placement rules 2021-06-24 20:59:58 +02:00
TheMode
f2300714eb Temporarily fix block placement 2021-06-24 20:53:33 +02:00
TheMode
b49ccadadc Save blocks nbt without handler 2021-06-24 16:16:41 +02:00
TheMode
8ff7eed45c Ensure that the block entity has nbt 2021-06-24 16:13:00 +02:00
TheMode
faa7c512af Support block nbt without handler 2021-06-24 16:06:11 +02:00
TheMode
ddba34712e Call BlockHandler#onInteract 2021-06-23 22:39:17 +02:00
TheMode
78898bfa9b Simplify pathfinding block 2021-06-23 22:24:40 +02:00
TheMode
48b1aa90db Improve BlockHanlder placement listener 2021-06-23 20:18:34 +02:00
TheMode
af9e102ec1 Add documentation to Block 2021-06-23 18:29:19 +02:00
TheMode
aa2347bf9c Remove BlockProperty.java 2021-06-23 17:54:34 +02:00
TheMode
4bbd89f78d Rename BlockImpl 2021-06-23 17:41:46 +02:00
TheMode
10ca44bfd8 Update BlockConstants 2021-06-23 17:39:21 +02:00
TheMode
33300e978c Reduce lighting issues 2021-06-23 15:52:27 +02:00
TheMode
1ae057428b Remove unused methods 2021-06-23 15:25:05 +02:00
TheMode
408e80799e Fix Block#withProperty 2021-06-23 14:13:28 +02:00
TheMode
804f11c87b Potentially fix explosion packet 2021-06-23 02:20:51 +02:00
TheMode
77ef11ef30 Rename destroySpeed to hardness 2021-06-23 01:53:04 +02:00
TheMode
1ba1a336b1 Fix block destroy listener 2021-06-23 00:37:11 +02:00
TheMode
e3942e68d3 Fix block destruction 2021-06-22 23:55:27 +02:00
TheMode
2b89fa1527 Add Placement/Destroy implementation for player 2021-06-22 23:51:01 +02:00
TheMode
22ba15f390 Add Unmodifiable annotation 2021-06-22 23:31:07 +02:00
TheMode
f17355a972 Cleanup 2021-06-22 23:26:12 +02:00
TheMode
eca380a3a4 use world coord to save block entities 2021-06-22 23:14:26 +02:00
TheMode
9e6b3d5ac9 Add support for block entity loading (from anvil) 2021-06-22 22:59:25 +02:00
TheMode
eeb8f3fd65 Update to latest block file 2021-06-22 22:38:36 +02:00
TheMode
a255abf0dd Move nbt cache into block implementation 2021-06-22 19:07:44 +02:00
TheMode
d365373775 Keep get prefix when a parameter is required 2021-06-22 18:46:16 +02:00
TheMode
58ec228f70 Reuse block properties parsing 2021-06-22 18:43:48 +02:00
TheMode
f0a73f25eb Potentially fix lighting 2021-06-22 18:32:46 +02:00
TheMode
a641c2415a Fix block index computation 2021-06-22 18:28:52 +02:00
TheMode
5f2b3df20e Support for tile entities saving (BlockHandler) 2021-06-22 18:02:50 +02:00
TheMode
fc6e147919 Cache blocks nbt 2021-06-22 17:28:12 +02:00
TheMode
62a7de49dc Merge branch 'master' into new-block-api 2021-06-22 14:14:50 +02:00
TheMode
3b6b1e9859 Improve block indexing 2021-06-22 14:13:51 +02:00
TheMode
f183c76afa Fix npe when reading block tag 2021-06-22 14:06:28 +02:00
TheMode
0f02be4b2b Add tag api to CommandSender 2021-06-22 13:30:47 +02:00
TheMode
2b817e5590 Merge branch 'master' into new-block-api
# Conflicts:
#	src/main/java/net/minestom/server/tag/Tag.java
2021-06-22 03:09:02 +02:00
TheMode
43c2b48b68 Add backward compatible method 2021-06-22 03:05:22 +02:00
TheMode
b5c7106f9b Use the tag api inside Entity, deprecate DataContainer 2021-06-22 02:56:00 +02:00
TheMode
a9086e83f2 Improve tag API 2021-06-22 02:51:04 +02:00
TheMode
3ded16f6e5 Fix negative sections 2021-06-22 00:11:47 +02:00
TheMode
2af150c1f0 Forget anvil chunk after load 2021-06-21 21:33:37 +02:00
TheMode
66145a53c6 Add generic to Tag#NBT 2021-06-21 20:34:34 +02:00
TheMode
36e2c2b78a Remove legacy chunk serialization code 2021-06-21 20:07:22 +02:00
TheMode
735ea152f9 Initial light support 2021-06-21 16:32:46 +02:00
TheMode
d27b1ff1a4 Merge branch 'master' into new-block-api
# Conflicts:
#	src/main/java/net/minestom/server/instance/InstanceContainer.java
#	src/main/java/net/minestom/server/listener/BlockPlacementListener.java
#	src/main/java/net/minestom/server/listener/PlayerDiggingListener.java
2021-06-21 15:27:55 +02:00
TheMode
1f2dc0cd9f Add some inline packet initialization 2021-06-21 15:01:50 +02:00
TheMode
8a2f68812c Cleanup demo servers 2021-06-21 00:14:28 +02:00
TheMode
e79b5ce41d Fix exception when forgetting ] 2021-06-20 23:54:00 +02:00
TheMode
c2270f8922 Merge branch 'master' into new-block-api 2021-06-20 23:52:08 +02:00
TheMode
e635e29a16 Replace guava cache to caffeine 2021-06-20 22:32:06 +02:00
TheMode
c90bae063a Update netty 2021-06-20 22:19:03 +02:00
TheMode
14afa0fbf4 Less google 2021-06-20 22:06:19 +02:00
TheMode
0be2addbd8 Remove most unnecessary uses of google common 2021-06-20 22:03:14 +02:00
TheMode
4db3b9317d Replace google Beta annotation to jetbrains ApiStatus.Experimental 2021-06-20 21:48:07 +02:00
TheMode
887c567c78 Fast exit if no world folder is available 2021-06-20 21:23:18 +02:00
TheMode
3bb5801ec7 Merge branch 'master' into new-block-api 2021-06-20 21:00:39 +02:00
TheMode
1e9046d792 Remove velocity compression library 2021-06-20 20:59:53 +02:00
TheMode
94923c4b3a Nothing 2021-06-20 20:50:54 +02:00
TheMode
8bc9bc7de5 Rename StorageChunkLoader 2021-06-20 20:46:57 +02:00
TheMode
08ce627db7 Remove rocksdb 2021-06-20 20:43:57 +02:00
TheMode
3bdc842393 Default to minecraft namespace 2021-06-20 20:33:39 +02:00
TheMode
94ee21a02a Initial anvil saving support 2021-06-20 20:28:43 +02:00
TheMode
fc14d01e78 Initial anvil support 2021-06-20 20:12:07 +02:00
TheMode
31a7413531
Merge pull request #334 from Project-Cepi/safe-missing-extension
Ensure proper error when extension.json is missing
2021-06-20 18:30:05 +02:00
TheMode
602472fc65 Pos improvements 2021-06-20 18:27:58 +02:00
TheMode
13a64c7315 Merge branch 'master' into new-block-api 2021-06-20 18:16:42 +02:00
TheMode
f4f4a63860 Replace deprecated serializer 2021-06-20 18:05:46 +02:00
TheMode
a2f828986d Add RelativeLocation#fromView 2021-06-20 17:40:37 +02:00
TheMode
ab9e16dfe7 Add Vec#apply 2021-06-20 14:56:00 +02:00
TheMode
5a01c041cf Remove duplicate method, trust escape analysis to prevent unnecessary allocations 2021-06-20 14:42:46 +02:00
TheMode
5f2b06ffe7 Rename to Vec 2021-06-20 03:43:18 +02:00
LeoDog896
4b4c3cda32 Ensure proper error when extension.json is missing 2021-06-19 18:12:56 -04:00
TheMode
62146352a1 Add Coordinate simple impl 2021-06-19 22:43:59 +02:00
TheMode
b9114ef5fe Initial discussion commit 2021-06-19 21:43:43 +02:00
TheMode
f040f882e5 remove redundant allocation 2021-06-19 21:04:02 +02:00
TheMode
0d96ad5483 Use namespace object instead of string inside block registry 2021-06-19 21:02:47 +02:00
TheMode
106125319a Remove get prefixes for protocol objects to be more record-friendly 2021-06-19 21:01:54 +02:00
TheMode
15cfea6f9a Fix ResourcePackSendPacket 2021-06-19 17:44:11 +02:00
TheMode
123f0bec04 Intern property map values 2021-06-19 16:45:09 +02:00
TheMode
61bd28b298 Reduce property map allocation 2021-06-19 16:12:36 +02:00
TheMode
06ebb14991 Merge branch 'master' into new-block-api 2021-06-18 20:36:32 +02:00
TheMode
787162bbe2 Fix Eventlistener#of not ignoring cancelled events 2021-06-18 18:24:35 +02:00
TheMode
d7fd079288 Reuse palette code 2021-06-18 14:50:10 +02:00
TheMode
7032645c63 Cleanup 2021-06-18 14:43:14 +02:00
TheMode
e25f521253 BlockHandler tick support 2021-06-18 14:36:03 +02:00
TheMode
e913170575 Remove unused code 2021-06-18 11:52:10 +02:00
TheMode
2dc4673b4f Properties map should never be null 2021-06-18 11:46:09 +02:00
TheMode
e3fdadb564 Remove wrong hasTag impl 2021-06-18 03:57:23 +02:00
TheMode
41cb35782e Reduce implementation code 2021-06-18 03:44:15 +02:00
TheMode
e002890a91 Deprecate #addPlayerInitialization 2021-06-18 03:21:03 +02:00
TheMode
c0c19a1e44 Fix block change packet 2021-06-17 15:59:48 +02:00
TheMode
26b9ebc3f5 Fix compile 2021-06-17 15:57:10 +02:00
TheMode
6e0598c16a Remove custom break delay code 2021-06-17 15:50:28 +02:00
TheMode
b978eba0fd Palette cleanup 2021-06-17 15:37:38 +02:00
TheMode
ddae239e30 Rename onTouch 2021-06-17 15:11:19 +02:00
TheMode
b612f3c257 Add block entity getter 2021-06-17 15:02:54 +02:00
TheMode
894b1a68a7 Make BlockHandler more flexible and future-proof for incoming amber language features 2021-06-17 14:34:55 +02:00
TheMode
de22a76e9f Merge branch 'master' into new-block-api
# Conflicts:
#	build.gradle
2021-06-17 13:58:01 +02:00
LeoDog896
ad83849f91 Fix entity compile error 2021-06-16 15:55:21 -04:00
TheMode
fd5f45adcd Remove unused method 2021-06-16 21:46:13 +02:00
LeoDog896
b8c1e72e4a Remove deprecated DynamicWords 2021-06-16 15:37:33 -04:00
TheMode
12848a08f2 Cache recurrent values 2021-06-16 18:11:42 +02:00
TheMode
3e4a99a80c Add default impl for hasTag 2021-06-16 16:51:44 +02:00
TheMode
d1babd25dc Fix ItemEntity physics 2021-06-16 15:50:54 +02:00
TheMode
f41733e338
Merge pull request #326 from Project-Cepi/remove-deprecated-entity-classes
Refactor and remove classes from entity package.
2021-06-16 15:46:22 +02:00
LeoDog896
c11662c3ed Remove errored import 2021-06-16 09:45:21 -04:00
TheMode
85d4fd83f4
Merge pull request #327 from Minestom/bossbar-removal
Remove legacy boss bars
2021-06-16 15:40:02 +02:00
LeoDog896
97ebf6923e Fix boat listener 2021-06-16 09:39:55 -04:00
LeoDog896
9e23085c34 Refactor and remove classes 2021-06-16 09:17:13 -04:00
TheMode
2b5b11a483 Cleanup 2021-06-16 15:08:07 +02:00
TheMode
a4b99c60dc Fix property parsing 2021-06-16 14:49:56 +02:00
TheMode
9c97302a06 Add demo SetBlockCommand 2021-06-16 14:39:11 +02:00
TheMode
65e4aad416 Add pure annotations 2021-06-16 14:08:02 +02:00
TheMode
34b7133f17 Reduce subclass impl 2021-06-16 14:04:22 +02:00
TheMode
84f22a6ed4 Replace float to double 2021-06-16 12:26:27 +02:00
Articdive
925c2d6090
NamespaceID should be compatible with other Key Implementations. 2021-06-16 09:53:01 +02:00
TheMode
0bdc84558f Optimize block getter 2021-06-16 01:01:27 +02:00
TheMode
235100e87b Small cleanup 2021-06-16 00:46:39 +02:00
TheMode
2d57235198 Remove legacy methods 2021-06-16 00:33:25 +02:00
TheMode
3324fd1e21 Fix BlockTest immutability 2021-06-16 00:19:36 +02:00
Kieran Wallbanks
5abf71e323 Remove legacy boss bars 2021-06-15 14:26:24 +01:00
Kieran Wallbanks
dd82635c6f Don't lazily initialise pointers 2021-06-15 14:06:56 +01:00
Kieran Wallbanks
58e108bd37 Fix deprecated API usages 2021-06-15 13:19:49 +01:00
Kieran Wallbanks
0ba27939d9 Implement new sound changes 2021-06-15 13:19:48 +01:00
Kieran Wallbanks
e5ca8d992e Create providers for Adventure serializers 2021-06-15 13:19:36 +01:00
Kieran Wallbanks
ee1ca5e03b Deprecate AdventureSerializer 2021-06-15 13:19:36 +01:00
Kieran Wallbanks
e532f16735 Fix default locale 2021-06-15 13:19:36 +01:00
Kieran Wallbanks
b1f72faa67 Implement pointer feature 2021-06-15 13:19:36 +01:00
Kieran Wallbanks
e7e0d4cb0d Implement Sound.Source.Provider 2021-06-15 13:19:36 +01:00
TheMode
a83482efb8 Improve memory usage 2021-06-15 13:45:23 +02:00
TheMode
65f92bf071 No need for block properties file 2021-06-15 11:20:05 +02:00
TheMode
df38061c6b Inline condition 2021-06-15 02:54:03 +02:00
TheMode
0c0b387345 Use a for-each loop, and prevent iterator allocation when empty 2021-06-15 02:29:58 +02:00
TheMode
051fbcb34b Potentially fix map packet 2021-06-14 22:01:12 +02:00
TheMode
27f30fa394 Remove a few magic metadata indexes 2021-06-14 21:49:16 +02:00
TheMode
679030e75b Add BlockEvent 2021-06-14 15:30:05 +02:00
TheMode
a70fe174bf Fix rebase 2021-06-14 15:26:16 +02:00
TheMode
63004cf4ba Merge branch 'master' into new-block-api
# Conflicts:
#	src/main/java/net/minestom/server/event/player/PlayerBlockBreakEvent.java
#	src/main/java/net/minestom/server/event/player/PlayerBlockInteractEvent.java
#	src/main/java/net/minestom/server/event/player/PlayerBlockPlaceEvent.java
#	src/main/java/net/minestom/server/event/player/PlayerStartDiggingEvent.java
#	src/main/java/net/minestom/server/instance/Instance.java
#	src/main/java/net/minestom/server/instance/InstanceContainer.java
#	src/main/java/net/minestom/server/listener/BlockPlacementListener.java
#	src/main/java/net/minestom/server/listener/PlayerDiggingListener.java
#	src/test/java/demo/PlayerInit.java
2021-06-14 15:22:54 +02:00
TheMode
6315bd5c61 Add try-catch for EventNode condition 2021-06-14 14:42:10 +02:00
TheMode
9c77ab267e Rework Block implementation (BlockTest) 2021-06-14 13:31:14 +02:00
TheMode
f2bf27c86e Fix rebase 2021-06-14 00:18:53 +02:00
TheMode
eadb32eba3 Merge branch 'master' into event-api 2021-06-14 00:17:42 +02:00
TheMode
911c983957 Merge branch 'master' into event-api
# Conflicts:
#	src/main/java/net/minestom/server/entity/Player.java
#	src/main/java/net/minestom/server/event/player/UpdateTagListEvent.java
#	src/main/java/net/minestom/server/instance/Chunk.java
2021-06-14 00:11:41 +02:00
TheMode
adba6c3d40 WIP block loading 2021-06-14 00:07:51 +02:00
TheMode
af61c77a26
Merge pull request #319 from Minestom/resource_gatherer_java
Resource gatherer fixes
2021-06-13 14:58:49 +02:00
TheMode
6cd3952fb5
Merge pull request #316 from thiccaxe/server-list-ping-update
Updated Server List Ping
2021-06-13 14:58:05 +02:00
TheMode
b464b637a4 BlockHandler default impl 2021-06-13 13:41:01 +02:00
TheMode
c312bf59fc Revamp tag api 2021-06-13 13:38:26 +02:00
TheMode
d6a2a5b316 Added CampfireHandler demo 2021-06-12 19:17:50 +02:00
TheMode
54b6868b2e Comments 2021-06-12 16:02:35 +02:00
Matt Worzala
a84bc7be46
add stderr print 2021-06-12 09:29:00 -04:00
Matt Worzala
831dd6d610
use java home for resource gatherer. Should cause the same jdk to be used for resource gatherer and work if you dont have java in the path. 2021-06-12 09:17:18 -04:00
Matt Worzala
e5076832b1
Change to have an actual option which can be changed before startup 2021-06-12 09:07:09 -04:00
TheMode
342554cb36 Remove BlockHandler#drag 2021-06-12 15:06:52 +02:00
TheMode
ab51b50072 Use per-block handler 2021-06-12 13:57:59 +02:00
TheMode
a2bd0f7906 end line 2021-06-12 13:52:44 +02:00
TheMode
94e92741c8 Reuse chunk code 2021-06-12 13:37:37 +02:00
TheMode
1b31a81619 Fix single-section chunk packet 2021-06-12 10:46:50 +02:00
TheMode
3b14fe12a3 Proper naming for Section/Palette 2021-06-12 10:39:44 +02:00
thiccaxe
6ff5f7e93c Fix Grammar in ResponseData 2021-06-11 23:08:57 -07:00
Matt Worzala
8529249b85
Add option to start server without terminal enabled 2021-06-11 20:03:16 -04:00
thiccaxe
7641b8a75d Updated Server List Ping
Added playersHidden field to ResponseData; shows "???" in Vanilla.
Added event for ping/pong packet
2021-06-11 13:54:52 -07:00
TheMode
f95b6121fe Cleanup 2021-06-11 21:57:51 +02:00
Articdive
f3f854feaa
Fix TagsPacket 2021-06-11 21:55:30 +02:00
TheMode
9dffc7658c Added registry loader 2021-06-11 20:13:20 +02:00
TheMode
08684d075a Temporarily remove tags packet 2021-06-11 18:53:35 +02:00
TheMode
099b031875 Registry should use a JsonObject 2021-06-11 18:05:21 +02:00
TheMode
4ec59b4bc9 Temporarily fix block count 2021-06-11 17:55:47 +02:00
TheMode
9bf57b8c13 Remove unused fields 2021-06-11 17:52:52 +02:00
Articdive
1a67ab806a
Update BlockGenerator and add the 1.17 blocks. 2021-06-11 17:47:26 +02:00
TheMode
7a76040457 Cleanup 2021-06-11 17:38:45 +02:00
TheMode
7079225045 Remove BlockData.java 2021-06-11 17:33:18 +02:00
TheMode
64907ebb34 Added some properties to BlockEntry 2021-06-11 17:23:38 +02:00
TheMode
a1fac0f5cb Add Block.registry 2021-06-11 17:00:26 +02:00
TheMode
70aad159b9 Add BlockEntry 2021-06-11 16:50:37 +02:00
TheMode
70cd3891cf Added WIP Registry 2021-06-11 16:48:00 +02:00
TheMode
82eec1072c Create ProtocolObject 2021-06-11 16:45:01 +02:00
TheMode
35baf1e772 Remove unsafe prefix from Chunk#setBlock 2021-06-11 16:40:37 +02:00
TheMode
7f8120a334 Rebase 2021-06-11 16:37:07 +02:00
TheMode
457ef9df17 Merge branch 'master' into new-block-api
# Conflicts:
#	src/autogenerated/java/net/minestom/server/instance/block/Block.java
#	src/main/java/net/minestom/server/MinecraftServer.java
#	src/main/java/net/minestom/server/entity/Player.java
#	src/main/java/net/minestom/server/entity/pathfinding/PFBlockDescription.java
#	src/main/java/net/minestom/server/entity/pathfinding/PFBlockObject.java
#	src/main/java/net/minestom/server/instance/Chunk.java
#	src/main/java/net/minestom/server/instance/palette/PaletteStorage.java
#	src/main/java/net/minestom/server/network/packet/server/play/ChunkDataPacket.java
#	src/main/java/net/minestom/server/network/packet/server/play/TagsPacket.java
2021-06-11 16:31:01 +02:00
TheMode
37f8306fb4 Use dedicated component write method 2021-06-11 16:23:07 +02:00
TheMode
0200788b22 Add dedicated method to ignore string/component size 2021-06-11 16:19:17 +02:00
TheMode
9fed96abe2
Merge pull request #307 from Minestom/1.17
1.17 Update
2021-06-11 16:08:08 +02:00
TheMode
265ae83b4d Fix tags packet 2021-06-11 16:00:14 +02:00
TheMode
72bf894162 Fix chunk packet read 2021-06-11 15:41:02 +02:00
TheMode
97d17f9b8b Fix Light & window click test 2021-06-11 15:38:46 +02:00
TheMode
88052576b3 Support for forced resource packs 2021-06-11 12:32:24 +02:00
TheMode
f31639c45c Fix rebase 2021-06-10 16:12:42 +02:00
TheMode
14879636f1 Merge branch 'master' into new-block-api
# Conflicts:
#	.gitignore
#	build.gradle
#	code-generators/build.gradle
#	code-generators/src/main/java/net/minestom/codegen/Generators.java
#	code-generators/src/main/java/net/minestom/codegen/MinestomCodeGenerator.java
#	code-generators/src/main/java/net/minestom/codegen/blocks/BlockGenerator.java
#	gradle.properties
#	src/autogenerated/java/net/minestom/server/instance/block/Block.java
#	src/autogenerated/java/net/minestom/server/registry/Registries.java
#	src/generators/java/net/minestom/codegen/AllGenerators.java
#	src/generators/java/net/minestom/codegen/RegistriesGenerator.java
#	src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java
#	src/main/java/net/minestom/server/entity/Player.java
2021-06-10 16:05:19 +02:00
TheMode
78cc392007 Merge branch 'master' into event-api 2021-06-10 14:42:07 +02:00
TheMode
c0e956bef5 Fix javadoc 2021-06-10 14:41:44 +02:00
TheMode
ea05a6f784 Add trait to ItemDropEvent 2021-06-10 11:58:48 +02:00
TheMode
74d323126f Add traits to EntityEquipEvent 2021-06-10 11:57:13 +02:00
TheMode
3b80335134 Avoid foreach for sensitive code 2021-06-10 11:53:50 +02:00
Articdive
9ae8c96091
Finish TagsPacket read method 2021-06-10 09:45:30 +02:00
Articdive
29bac6fe24
Use enum for AxolotlMeta 2021-06-10 09:18:17 +02:00
TheMode
6ef40e08c7 Link to the packet event 2021-06-10 09:01:49 +02:00
TheMode
13350d0ab8 Fix ignoreCancelled option 2021-06-09 22:01:46 +02:00
Articdive
2976be947b
Fix and improve tags 2021-06-09 21:23:35 +02:00
TheMode
ad7b01fb9a Added NettyServer#getServerChannel 2021-06-09 20:36:27 +02:00
Articdive
9e64935af8
Let's just use the correct number here 2021-06-09 20:02:22 +02:00
Articdive
049592d1c2
Fix game event tags missing. 2021-06-09 19:26:46 +02:00
TheMode
b8bd7f3d02 Fix ResourceGatherer 2021-06-09 17:13:17 +02:00
TheMode
603e3293a6 Catch event exceptions 2021-06-09 14:05:37 +02:00
TheMode
0bd4a68290 Added ignoreCancelled option for EventListener 2021-06-09 08:46:19 +02:00
TheMode
12a215349d Lazily add eventhandler node to root for backward compatibility 2021-06-09 08:31:06 +02:00
TheMode
d800c94dcc Remove EventHandler mention in Event 2021-06-09 08:25:56 +02:00
TheMode
68ba4b232d Remove EventHandler mention in Event 2021-06-09 08:25:32 +02:00
TheMode
16d8597195 Make CancellableEvent a trait 2021-06-09 07:11:01 +02:00
TheMode
dd44b752c3 Remove addListener0 2021-06-09 06:57:08 +02:00
TheMode
fc70d4528e formatting 2021-06-09 06:52:00 +02:00
Matt Worzala
d38c0368fc
add event api javadocs v1 2021-06-08 16:58:48 -04:00
stefvanschie
99855a3ea7
Allow for cancelling at start and end of drag 2021-06-08 21:27:34 +02:00
stefvanschie
ddbd621535
Change dragging events
Now fires a start dragging, then a dragging for each slot and then an end dragging.
2021-06-08 19:55:11 +02:00
stefvanschie
cd319b047c Merge branch 'Minestom:master' into master 2021-06-08 19:52:50 +02:00
TheMode
3b00c2e010 1.17 release 2021-06-08 17:41:37 +02:00
TheMode
3fae5ed35f Fix checks 2021-06-08 17:18:00 +02:00
TheMode
34cde8390a Add more node children manipulation methods 2021-06-08 17:09:24 +02:00
TheMode
eb3cdd1495 Added EventNode#findChildren 2021-06-08 16:55:21 +02:00
TheMode
92ca5f6be6 Simplify PlayerInit 2021-06-08 16:43:22 +02:00
TheMode
8c6d7ad1c3 Provide an event node per extension 2021-06-08 16:25:46 +02:00
TheMode
1e90d67511 Formatting 2021-06-08 14:20:48 +02:00
TheMode
5469190e64 Add annotations 2021-06-08 14:15:30 +02:00
TheMode
9705915e21 Add support for predicate expiration 2021-06-08 14:07:27 +02:00
TheMode
f47159d131 Add EventNode#setPriority 2021-06-08 13:47:10 +02:00
TheMode
cf1e5222ca Fix rebase 2021-06-08 13:05:12 +02:00
TheMode
7c2d07b911 Merge branch 'master' into event-api
# Conflicts:
#	src/main/java/net/minestom/server/listener/UseItemListener.java
2021-06-08 13:03:01 +02:00
Articdive
c86a460ade
Add the missing tags (done manually) 2021-06-07 22:21:02 +02:00
Articdive
a3b10ec18a
Fix ChatPosition and update to 1.17-rc2 2021-06-07 20:46:09 +02:00
Articdive
68f4d74594
Merge remote-tracking branch 'upstream/1.17' into 1.17 2021-06-07 20:27:14 +02:00
Articdive
905ddab484
Merge branch 'master' of github.com:Minestom/Minestom into 1.17 2021-06-07 20:25:36 +02:00
Articdive
b0a991773a
Make sure we stay in the potion ID range. 2021-06-07 17:36:29 +02:00
Articdive
a24c08ead9
Fix potion effect IDs. 2021-06-07 17:23:31 +02:00
TheMode
0da9c20b5a WIP tags update 2021-06-07 13:25:04 +02:00
Matt Worzala
d5987f91b5
update code generators, add axolotl (needs some more detail) 2021-06-07 01:24:39 -04:00
Matt Worzala
8ed49906fa
change generated EntityType to use metas 2021-06-07 00:55:41 -04:00
Matt Worzala
6cd0cf6bcc
add 1.17 entity meta 2021-06-07 00:53:48 -04:00
TheMode
69e1dc7da1 Add missing states 2021-06-07 05:43:59 +02:00
TheMode
5f1db3084d Add review work - update generated code 2021-06-07 05:27:42 +02:00
Matt Worzala
1850efb3fc
update existing metadata to 1.17, using new system 2021-06-06 22:45:22 -04:00
Matt Worzala
1065ad346e
get light section count from dimension type, add some missing getters to DimensionType 2021-06-06 19:33:21 -04:00
Matt Worzala
9de6c5aa8f
Create light packet slightly more dynamically. 2021-06-06 16:46:03 -04:00
TheMode
491ef8b514 Merge branch 'master' into 1.17 2021-06-06 15:31:27 +02:00
TheMode
3e73ec5646 Properly unescape displayname & lore 2021-06-06 14:21:25 +02:00
TheMode
aee429add3
Merge pull request #309 from Minestom/new-data-preperation-1.17
Use minestom-data to generate our enums.
2021-06-06 10:44:59 +02:00
TheMode
c930eed412 propagate listener changes to parents 2021-06-06 07:55:30 +02:00
TheMode
9594d848bc Use for-each loops during event calling 2021-06-06 07:34:33 +02:00
TheMode
180a3fa898 Improve event calling performance, reduce memory footprint 2021-06-06 07:28:07 +02:00
TheMode
459b50863e Update title/actionbar methods 2021-06-06 03:52:40 +02:00
TheMode
6c51631a29 Fix inventory drop 2021-06-06 03:30:33 +02:00
TheMode
56eead948a Fix inventory click 2021-06-06 01:50:28 +02:00
TheMode
a63c16892c Update light packet, fix biome count 2021-06-05 08:51:57 +02:00
TheMode
6b5125bcff WIP support for infinite chunk height 2021-06-05 07:56:16 +02:00
TheMode
3dfd4678d5 Add PlayerPacketEvent 2021-06-05 01:04:51 +02:00
TheMode
31d2f3488b Update protocol version to 1.17-rc1 2021-06-05 00:46:58 +02:00
TheMode
5d8ed5041f Use AtomicReferenceFieldUpdater to update the tick context 2021-06-04 22:30:35 +02:00
TheMode
25f1183a1b Remove EventNode#map 2021-06-04 21:12:27 +02:00
TheMode
2872a25325 Improve redirection performance 2021-06-04 10:07:46 +02:00
TheMode
b979c9b624 Temporary fix for mapped object 2021-06-04 09:50:26 +02:00
Articdive
8445898663
Remove jang lang import. 2021-06-04 08:51:40 +02:00
Articdive
c2fd4ace93
Attempt to reduce diff in states. 2021-06-04 08:49:01 +02:00
Articdive
be649146ed
Remove states that only had 1 state. 2021-06-04 08:36:22 +02:00
TheMode
030e5b6857 Create #addListener0 to ensure proper stacktrace when adding a listener 2021-06-04 07:45:15 +02:00
TheMode
a5a2a71d69 Replace deprecated methods, showcase how to append to the global node 2021-06-04 07:37:13 +02:00
TheMode
d9b26f84d3 Keep using GlobalEventHandler 2021-06-04 04:54:07 +02:00
TheMode
a585e4e45b Improve event calling performance 2021-06-04 04:39:45 +02:00
TheMode
80c6bb3fa5 Deprecate GlobalEventHandler 2021-06-04 04:24:25 +02:00
TheMode
f39fc8c81e Fast exit when a node as no child 2021-06-04 04:14:41 +02:00
TheMode
c4d521cde5 All node should have a name 2021-06-04 04:10:13 +02:00
TheMode
d81df24132 Support old EventHandler API 2021-06-04 04:05:57 +02:00
TheMode
8b255651ab Call events using EventDispatcher 2021-06-04 03:48:51 +02:00
TheMode
5d3bae3d7f Make some events implement ItemEvent 2021-06-04 00:54:36 +02:00
TheMode
f1ddedfb44 Add EventNode#getParent 2021-06-04 00:30:48 +02:00
TheMode
94e315e3b2 Rename predicate to type 2021-06-03 21:59:27 +02:00
TheMode
5aa8d95ed9 Remove debug print 2021-06-03 21:54:42 +02:00
TheMode
734e6f5bcb Remove predicate from the EventNode factory methods 2021-06-03 21:54:07 +02:00
TheMode
a15717ae49 Remove unnecessary generic 2021-06-03 21:41:28 +02:00
TheMode
9177e94d1b Allow node predicate based on tag 2021-06-03 21:39:38 +02:00
TheMode
27bdbe7275 Rename removeMap to unmap 2021-06-03 20:59:05 +02:00
TheMode
81e2072bc5 Add shortcut to add listener 2021-06-03 20:46:11 +02:00
TheMode
03ff75f685
Merge pull request #304 from Bloepiloepi/food-fix
Food animation fix
2021-06-03 19:17:49 +02:00
Articdive
105f2fdc7e
Use minestom-data to generate our enums. 2021-06-03 12:11:42 +02:00
TheMode
e5031ff37e Prevent a node from having its parent as child 2021-06-03 09:47:48 +02:00
TheMode
8d284649f4 Inline node creation 2021-06-03 06:34:01 +02:00
TheMode
e300d3ec57 Simplify EventNode#map 2021-06-03 05:59:13 +02:00
TheMode
8ec33bb6c8 EventNode methods return self 2021-06-03 04:41:08 +02:00
TheMode
d5cce11562 Remove second generic from EventNode 2021-06-03 04:26:47 +02:00
TheMode
5fa750fde3 Remove EventNodeConditional.java 2021-06-03 03:56:05 +02:00
TheMode
493c397efe Remove EventNodeList.java 2021-06-03 03:39:37 +02:00
TheMode
3727f3f954 Use a global lock when modifying tree data 2021-06-03 03:37:41 +02:00
TheMode
65c303766f Make EventNode a class, fast exist when no children can listen to an event 2021-06-03 03:27:30 +02:00
TheMode
f8eb211d0d Add node mapping support, for per-object listeners 2021-06-03 00:48:37 +02:00