Package net.minestom.server.entity
Class EntityManager
java.lang.Object
net.minestom.server.entity.EntityManager
public final class EntityManager
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description EntityManager()
-
Method Summary
Modifier and Type Method Description void
addWaitingPlayer(Player player)
Calls the player initialization callbacks and the eventPlayerPreLoginEvent
.void
handleKeepAlive(long tickStart)
Updates keep alive by checking the last keep alive packet and send a new one if needed.void
updateWaitingPlayers()
Connects waiting players.
-
Constructor Details
-
EntityManager
public EntityManager()
-
-
Method Details
-
updateWaitingPlayers
public void updateWaitingPlayers()Connects waiting players. -
handleKeepAlive
public void handleKeepAlive(long tickStart)Updates keep alive by checking the last keep alive packet and send a new one if needed.- Parameters:
tickStart
- the time of the update in milliseconds, forwarded to the packet
-
addWaitingPlayer
Calls the player initialization callbacks and the eventPlayerPreLoginEvent
. If thePlayer
hasn't been kicked, add him to the waiting list.Can be considered as a pre-init thing.
- Parameters:
player
- thePlayer
to add
-