public class SLocation extends Object implements ConfigurationSerializable
ConfigurationSerializable
Location
with a lazily
initialized worldConstructor and Description |
---|
SLocation(Location loc)
|
SLocation(Map<String,Object> config)
ConfigurationSerializable constructor. |
SLocation(Vector loc,
UUID worldUUID,
float pitch,
float yaw)
Allows constructing an
SLocation from serialized parts |
Modifier and Type | Method and Description |
---|---|
static SLocation |
deserialize(Map<String,Object> config)
Creates a new
SLocation object and returns it. |
Vector |
getVector()
Returns the relevant
Vector object to this instance |
World |
getWorld()
Retrieves the
World object relevant to this instance. |
Map<String,Object> |
serialize() |
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(Vector loc, UUID worldUUID, float pitch, float yaw)
SLocation
from serialized partspublic SLocation(Map<String,Object> config)
ConfigurationSerializable
constructor. Should not be used by
anything other than Bukkit.config
- A serialized Map
of this objectpublic Map<String,Object> serialize()
serialize
in interface ConfigurationSerializable
public 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 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 Vector getVector()
Vector
object to this instanceVector
objectCopyright © 2017. All rights reserved.