public class SLocation extends Object implements org.bukkit.configuration.serialization.ConfigurationSerializable
ConfigurationSerializable Location with a lazily
initialized world| Constructor and Description |
|---|
SLocation(org.bukkit.Location loc)
Creates a new
SLocation object from the passed Location |
SLocation(Map<String,Object> config)
ConfigurationSerializable constructor. |
| Modifier and Type | Method and Description |
|---|---|
static SLocation |
deserialize(Map<String,Object> config)
Creates a new
SLocation object and returns it. |
org.bukkit.util.Vector |
getVector()
Returns the relevant
Vector object to this instance |
org.bukkit.World |
getWorld()
Retrieves the
World object relevant to this instance. |
Map<String,Object> |
serialize() |
org.bukkit.Location |
toLocation()
Converts this instance into a
Location object. |
static SLocation |
valueOf(Map<String,Object> config)
Creates a new
SLocation object and returns it. |
public SLocation(org.bukkit.Location loc)
SLocation object from the passed Locationloc - The Location to serializepublic Map<String,Object> serialize()
serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializablepublic static SLocation valueOf(Map<String,Object> config)
SLocation object and returns it. Should only be
used by Bukkitpublic static SLocation deserialize(Map<String,Object> config)
SLocation object and returns it. Should only be
used by Bukkitpublic org.bukkit.World getWorld()
World object relevant to this instance. This is
lazily-initialized, so until this method is called the class will not
attempt to retrieve the World valueWorld object, or null if not foundpublic org.bukkit.util.Vector getVector()
Vector object to this instanceVector objectpublic org.bukkit.Location toLocation()
Location object. This method will
fail if called before Bukkit has loaded any worldsLocation objectCopyright © 2015. All rights reserved.