Class ActiveSession
java.lang.Object
com.djrapitops.plan.gathering.domain.ActiveSession
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionActiveSession(UUID playerUUID, ServerUUID serverUUID, long start, String world, String gameMode)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAfkTime(long time)
void
addDeath()
void
void
addPlayerKill(PlayerKill kill)
void
changeState(String world, String gameMode, long time)
boolean
static ActiveSession
fromPlayerJoin(PlayerJoin join)
<T> Optional<T>
getExtraData(Class<T> ofType)
long
long
getStart()
int
hashCode()
void
setAsFirstSessionIfMatches(Long registerDate)
void
setLastMovementForAfkCalculation(long lastMovementForAfkCalculation)
toFinishedSession(long end)
toString()
void
void
updateState(long time)
-
Constructor Details
-
ActiveSession
public ActiveSession(UUID playerUUID, ServerUUID serverUUID, long start, String world, String gameMode)
-
-
Method Details
-
fromPlayerJoin
-
toFinishedSessionFromStillActive
-
toFinishedSession
-
getPlayerUUID
-
getServerUUID
-
getStart
public long getStart() -
addAfkTime
public void addAfkTime(long time) -
addDeath
public void addDeath() -
addMobKill
public void addMobKill() -
addPlayerKill
-
setAsFirstSessionIfMatches
-
getExtraData
-
updateState
public void updateState() -
updateState
public void updateState(long time) -
changeState
-
getExtraData
-
equals
-
hashCode
public int hashCode() -
toString
-
getLastMovementForAfkCalculation
public long getLastMovementForAfkCalculation() -
setLastMovementForAfkCalculation
public void setLastMovementForAfkCalculation(long lastMovementForAfkCalculation)
-