Class ActiveSession


  • public class ActiveSession
    extends java.lang.Object
    • Constructor Detail

      • ActiveSession

        public ActiveSession​(java.util.UUID playerUUID,
                             ServerUUID serverUUID,
                             long start,
                             java.lang.String world,
                             java.lang.String gameMode)
    • Method Detail

      • toFinishedSessionFromStillActive

        public FinishedSession toFinishedSessionFromStillActive()
      • toFinishedSession

        public FinishedSession toFinishedSession​(long end)
      • getPlayerUUID

        public java.util.UUID getPlayerUUID()
      • getServerUUID

        public ServerUUID getServerUUID()
      • getStart

        public long getStart()
      • addAfkTime

        public void addAfkTime​(long time)
      • addDeath

        public void addDeath()
      • addMobKill

        public void addMobKill()
      • addPlayerKill

        public void addPlayerKill​(PlayerKill kill)
      • setAsFirstSessionIfMatches

        public void setAsFirstSessionIfMatches​(java.lang.Long registerDate)
      • getExtraData

        public DataMap getExtraData()
      • updateState

        public void updateState()
      • updateState

        public void updateState​(long time)
      • changeState

        public void changeState​(java.lang.String world,
                                java.lang.String gameMode,
                                long time)
      • getExtraData

        public <T> java.util.Optional<T> getExtraData​(java.lang.Class<T> ofType)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object