public interface Inmate extends TimedEntry
Modifier and Type | Method and Description |
---|---|
Optional<Instant> |
getCreationInstant()
Gets the
Instant this inmate was jailed, if this information was recorded. |
Optional<UUID> |
getJailer()
The
UUID of the jailer, or Optional.empty() if it was the console. |
String |
getJailName()
The jail the player is jailed in.
|
Optional<org.spongepowered.api.world.Location<org.spongepowered.api.world.World>> |
getPreviousLocation()
The previous location of the player - which is where they will be sent to upon unjailing.
|
String |
getReason()
The reason a player was jailed.
|
expired, getRemainingTime, isCurrentlyTicking
String getReason()
String getJailName()
Optional<UUID> getJailer()
UUID
of the jailer, or Optional.empty()
if it was the console.UUID
, or Optional.empty()
if it was the console.Optional<org.spongepowered.api.world.Location<org.spongepowered.api.world.World>> getPreviousLocation()