public class LocationCache extends SessionCache
Constructor and Description |
---|
LocationCache()
Class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addLocation(UUID uuid,
org.bukkit.Location loc)
Add a location for a player to the list.
|
void |
addLocations(UUID uuid,
Collection<org.bukkit.Location> locs)
Add multiple locations to the list.
|
void |
clearLocations(UUID uuid)
Used to clear the locations from the locationcache.
|
List<org.bukkit.Location> |
getLocationsForSaving(UUID uuid)
Get the list of locations in the cache for saving the UserData object to
Database.
|
addSession, endSession, getActiveSessions, getSession, startSession
public void addLocation(UUID uuid, org.bukkit.Location loc)
uuid
- UUID of the player.loc
- Location the player moved to.public void addLocations(UUID uuid, Collection<org.bukkit.Location> locs)
uuid
- UUID of the player.locs
- Locations the player moved to.public List<org.bukkit.Location> getLocationsForSaving(UUID uuid)
uuid
- UUID of the player.public void clearLocations(UUID uuid)
uuid
- UUID of the player.Copyright © 2017. All rights reserved.