Konstantin Shandurenko
3f941d51bb
Fixed initial BoundingBox of Pufferfish
2021-02-23 20:04:30 +03:00
Konstantin Shandurenko
6e950ab170
BaseEntityMeta is now an EntityMeta
2021-02-23 19:18:53 +03:00
Konstantin Shandurenko
692dcfed4c
Setting default entity BoundingBox from EntityType data
2021-02-23 18:41:24 +03:00
Konstantin Shandurenko
bbe143520e
A bit more changes to EntityMeta
2021-02-23 18:37:00 +03:00
Konstantin Shandurenko
0915858df3
Meta wrappers for all the entities
2021-02-23 15:11:10 +03:00
TheMode
71f1e51df3
Merge pull request #146 from RinesThaix/goals
...
Arrows and RangedAttackGoal
2021-02-22 13:58:43 +01:00
Konstantin Shandurenko
dbfebc50ec
Block collisions for arrows
2021-02-22 14:42:46 +03:00
Konstantin Shandurenko
3c8824c7b0
RangedAttackGoal implementation initial commit
2021-02-22 08:46:37 +03:00
themode
77148338b9
Added Entity#clearEffects
2021-02-22 06:00:49 +01:00
jglrxavpok
eadd4a2b39
Automatically unload GlobalEventHandler callbacks
2021-02-03 17:11:06 +01:00
themode
3026e46220
Added new metadata API
2021-01-30 04:44:44 +01:00
themode
e0c8e94bc1
Limit the number of velocity packet used for entities
2021-01-27 19:35:53 +01:00
themode
9775262c6a
Fix velocity for netty clients
2021-01-27 19:20:52 +01:00
themode
0da4f96e7e
Allow gravity values to be doubles
2021-01-25 21:30:56 +01:00
themode
5f75ea7d3a
Remove unnecessary casts
2021-01-25 19:33:53 +01:00
themode
c01736f863
Use doubles instead of floats to represent Position and Vector
2021-01-25 13:47:13 +01:00
Tyan
7d7c65aa70
Set the last location at the end of refreshPosition
2021-01-23 15:51:07 +01:00
themode
bf692d8043
Clone the teleport position to prevent object sharing
2021-01-23 08:42:49 +01:00
themode
36933fe4b3
Ensure synchronization of the location field
2021-01-23 08:23:24 +01:00
LeoDog896
3536bdc856
Microoptimization cleanup
...
Just some small microoptimizations including preferring fastutils, Removing unnecessary checks already dealt with using @NotNull, all since I had extra unplanned free time.
2021-01-15 11:08:11 -05:00
KrystilizeNevaDies
7bc1f37e80
Add a direct way to set the bounding box in Entity
2021-01-13 21:57:55 +10:00
themode
29c8f924fa
Added missing metadata types
2021-01-11 21:21:19 +01:00
themode
c5d56ae820
Small velocity code cleanup
2021-01-11 08:44:38 +01:00
themode
6b39cb1e32
Execute the async login event before sending the login success packet
2021-01-06 19:02:35 +01:00
themode
7019b7da85
Fix onGround field and gravityTickCount
2021-01-04 03:04:45 +01:00
themode
317432460e
Entity cleanup
2021-01-03 00:23:41 +01:00
ThatCreeper
993b936e4e
reorder imports
2021-01-02 17:12:38 -06:00
ThatCreeper
30868df243
Remove unused imports
2021-01-02 17:08:59 -06:00
ThatCreeper
30be7b5b81
Add Potion Add and Remove events
2021-01-02 16:59:17 -06:00
Matt Worzala
46ac38d5b3
Change ColoredText usages to JsonMessage
2020-12-31 13:53:21 -05:00
themode
2141792fcf
Fixed math
2020-12-31 12:07:16 +01:00
themode
fd920ffdfe
Potion cleanup
2020-12-31 12:05:36 +01:00
ThatCreeper
0ce094567b
Fix most checkstyle warnings
2020-12-30 19:27:29 -06:00
ThatCreeper
c3d6af3afe
make removeEffect send a packet
...
Make Potion immutable, and use long instead of Long
2020-12-30 19:07:07 -06:00
ThatCreeper
c01b57ed9b
removed scheduledPotions
2020-12-30 18:55:20 -06:00
ThatCreeper
fa41aabaed
Make Potions use time instead of nanoTime
2020-12-30 18:47:43 -06:00
ThatCreeper
d7883d29ff
Rewrite Potions
2020-12-30 18:29:07 -06:00
themode
d4110632a4
Increase readability when using static fields instead of local ones
2020-12-30 20:30:48 +01:00
themode
23fc19430a
Fix entity uuid map memory leak
2020-12-30 20:29:46 +01:00
themode
835a769080
Implement entity eye height based on boundingbox
2020-12-29 20:42:41 +01:00
themode
78ed12887d
Implement client spectate packet
2020-12-29 19:58:40 +01:00
themode
718d787192
Makes the Pose enum public
2020-12-29 00:43:04 +01:00
themode
cecf6310ca
Added Entity#setPose
2020-12-29 00:04:15 +01:00
themode
feb4783988
Small optimization for entity velocity
2020-12-26 18:52:44 +01:00
themode
6e0ad54d5e
Added EntityEndCrystal
2020-12-22 05:36:15 +01:00
themode
f2c586177f
Cache the unmodifiable viewers set to mitigate object allocation
2020-12-14 06:27:39 +01:00
Felix Cravic
5e85c0117a
Cleanup
2020-12-12 06:13:50 +01:00
Felix Cravic
77b4fe7287
Throw an exception when an entity tries to move in an unloaded chunk
2020-12-12 00:10:42 +01:00
Felix Cravic
44096ff9cf
Prevent first chunks not loading with a high latency
2020-12-12 00:07:41 +01:00
Felix Cravic
76c3ea52ac
Merge branch 'master' into nbt-permission
2020-12-11 21:37:00 +01:00
Felix Cravic
0a9ce664f3
Cleanup
2020-12-11 21:36:35 +01:00
Felix Cravic
38dc50bb1a
Optimise entity velocity (to do not send the packet every tick)
2020-12-11 20:17:33 +01:00
Felix Cravic
1b7f00f1b9
Merge branch 'master' into nbt-permission
2020-12-11 03:15:14 +01:00
Felix Cravic
62ab0a2007
Remove unnecessary shouldUpdate method in Entity
2020-12-10 18:12:05 +01:00
Felix Cravic
00c144b592
Rework of the permission API
2020-12-10 02:56:56 +01:00
Felix Cravic
30d257c847
Remove unnecessary #callEvent override in Entity
2020-12-09 22:18:11 +01:00
Felix Cravic
f7c05a445e
Remove #copy
2020-12-09 21:34:53 +01:00
Felix Cravic
42cedf3fbf
Use Guava to initialize concurrent linked queues
2020-12-08 09:36:19 +01:00
Felix Cravic
07990b26e9
Better comment for Entity#isAutoViewable
2020-12-06 20:11:14 +01:00
Felix Cravic
0f97930f79
Fix player gravity
2020-12-06 16:52:04 +01:00
Felix Cravic
70000e75d5
Added gravity acceleration and terminal velocity (and an utils method to get the gravity tick count)
2020-12-06 01:36:37 +01:00
Felix Cravic
3f487f4f4f
Entity with scheduled removal still execute tick until complete removal, added some comments
2020-12-05 23:57:07 +01:00
Felix Cravic
6bd6d22651
Added EntityCreature#switchEntityType
2020-12-05 01:36:06 +01:00
Felix Cravic
cd44732cbc
Velocity cleanup
2020-12-04 19:19:30 +01:00
Felix Cravic
9b8579eaf4
Small cleanup
2020-12-04 18:25:24 +01:00
Felix Cravic
d61a598c94
Prevent players being disconnected two times during a clean stop, also made shutdown tasks being executed in a single thread
2020-12-02 21:28:36 +01:00
Felix Cravic
bb3d57b1e5
WIP support for flying entities
2020-11-29 16:50:57 +01:00
Felix Cravic
1579bee693
Made Entity#generateId public and prevent writing null data to BinaryWriter
2020-11-27 13:29:38 +01:00
Felix Cravic
8ae82a81a1
Cleanup
2020-11-27 00:08:32 +01:00
Felix Cravic
fe568abe70
Entity gravity fixed 2
2020-11-26 22:29:06 +01:00
Felix Cravic
3bc90fffd9
Prevent EntityCreature from ignoring gravity
2020-11-26 14:14:40 +01:00
Felix Cravic
e813037475
Fixed position fields update for netty connections
2020-11-26 13:38:52 +01:00
Felix Cravic
63196e024b
Fixed EntityTeleportPacket being sent for every position fields modification and use a proper entity movement packet instead of velocity
2020-11-26 12:46:49 +01:00
Felix Cravic
ab73b0fa3e
Player#setInstance can now take an optional Position parameter
2020-11-25 12:12:58 +01:00
Felix Cravic
7bbb095156
Fixed Player#setInstance not refreshing chunks when already in an instance
2020-11-24 22:56:12 +01:00
themode
acc013be6a
Fixed glitched chunks when teleporting a player + divided teleportation count by 2 during first join
2020-11-22 13:56:36 +01:00
themode
553a280993
Per instance thread is now the default, added a configurable cooldown for player position refresh
2020-11-18 05:13:49 +01:00
themode
2285c9622a
If the garbage collector is happy, everyone is - TheMode
2020-11-15 08:03:33 +01:00
themode
47a18fc305
Created PaletteStorage#clean
2020-11-15 05:12:28 +01:00
themode
f67328c7a7
Clarify that entity ids are unique server-wide
2020-11-14 23:24:16 +01:00
themode
0abedd7453
Optimization to prevent permanent map lookup
2020-11-14 09:02:29 +01:00
themode
648cad85c2
Entity implements now PermissionHandler
2020-11-14 07:09:36 +01:00
themode
a1fd711b85
Created DebugUtils
2020-11-13 21:57:45 +01:00
themode
b6bf6a17ba
Merge branch 'master' into test-palette
...
# Conflicts:
# src/main/java/net/minestom/server/instance/DynamicChunk.java
2020-11-11 04:27:03 +01:00
themode
f85b2c4aad
Allow dynamic entity view distance change
2020-11-04 19:14:04 +01:00
themode
e65ab88a3b
WIP palette
2020-11-01 22:53:36 +01:00
themode
b74d85eca8
The chunk view distance can now be dynamically modified both by the client or with the server using MinecraftServer#setChunkViewDistance, also added UpdateViewDistancePacket
2020-10-31 19:44:22 +01:00
themode
0184ada9a0
Renamed #clone to #copy
2020-10-31 18:03:15 +01:00
themode
f328a9cb2b
Added a few constructors to specify the instance directly
2020-10-31 01:38:57 +01:00
themode
f91f7abb26
Unsafe methods should be called unsafe.
2020-10-31 01:02:54 +01:00
themode
872dccd7ce
Small cleanup
2020-10-29 22:52:07 +01:00
themode
1b7613d977
Allow for custom chunk/entity view distance and compression threshold without recompiling the server.
2020-10-25 16:48:14 +01:00
themode
2f21a7c233
More annotations.
2020-10-24 11:19:54 +02:00
themode
3d96b7a4b4
A lot of annotations a bit everywhere.
2020-10-24 10:46:23 +02:00
themode
3665241e94
Added OptionalCallback for convenience
2020-10-22 22:55:40 +02:00
themode
47677766ca
Improvement for the DamageType code
2020-10-22 12:21:50 +02:00
themode
9e2e48f79c
Fix bug when you could send a break a custom block with a finished digging packet
2020-10-16 09:12:31 +02:00
themode
660a67e53e
English fix
2020-10-15 21:16:31 +02:00
themode
81c6f97336
Comments
2020-10-12 06:41:47 +02:00
themode
9184b3054f
Fix the first #setInstance being called in the main update thread
2020-10-12 04:14:06 +02:00