Class ActiveSession

java.lang.Object
com.djrapitops.plan.gathering.domain.ActiveSession

public class ActiveSession extends Object
  • Constructor Details

  • Method Details

    • fromPlayerJoin

      public static ActiveSession fromPlayerJoin(PlayerJoin join)
    • toFinishedSessionFromStillActive

      public FinishedSession toFinishedSessionFromStillActive()
    • toFinishedSession

      public FinishedSession toFinishedSession(long end)
    • getPlayerUUID

      public 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(Long registerDate)
    • getExtraData

      public DataMap getExtraData()
    • updateState

      public void updateState()
    • updateState

      public void updateState(long time)
    • changeState

      public void changeState(String world, String gameMode, long time)
    • getExtraData

      public <T> Optional<T> getExtraData(Class<T> ofType)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object