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 event PlayerPreLoginEvent.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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

      public void addWaitingPlayer​(@NotNull Player player)
      Calls the player initialization callbacks and the event PlayerPreLoginEvent. If the Player hasn't been kicked, add him to the waiting list.

      Can be considered as a pre-init thing.

      Parameters:
      player - the Player to add