Class SpawnLocation
- java.lang.Object
-
- org.bukkit.Location
-
- com.onarandombox.MultiverseCore.configuration.SpawnLocation
-
- All Implemented Interfaces:
java.lang.Cloneable
,org.bukkit.configuration.serialization.ConfigurationSerializable
- Direct Known Subclasses:
MVWorld.NullLocation
public class SpawnLocation extends org.bukkit.Location implements org.bukkit.configuration.serialization.ConfigurationSerializable
Just like a regularLocation
, howeverworld
is usuallynull
or just a weak reference and it implementsConfigurationSerializable
.
-
-
Constructor Summary
Constructors Constructor Description SpawnLocation(double x, double y, double z)
SpawnLocation(double x, double y, double z, float yaw, float pitch)
SpawnLocation(org.bukkit.Location loc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpawnLocation
deserialize(java.util.Map<java.lang.String,java.lang.Object> args)
Let Bukkit be able to deserialize this.org.bukkit.block.Block
getBlock()
org.bukkit.Chunk
getChunk()
org.bukkit.World
getWorld()
java.util.Map<java.lang.String,java.lang.Object>
serialize()
void
setWorld(org.bukkit.World world)
-
Methods inherited from class org.bukkit.Location
add, add, add, checkFinite, clone, distance, distanceSquared, equals, getBlockX, getBlockY, getBlockZ, getDirection, getPitch, getX, getY, getYaw, getZ, hashCode, length, lengthSquared, locToBlock, multiply, normalizePitch, normalizeYaw, setDirection, setPitch, setX, setY, setYaw, setZ, subtract, subtract, subtract, toString, toVector, zero
-
-
-
-
Method Detail
-
getWorld
public org.bukkit.World getWorld()
- Overrides:
getWorld
in classorg.bukkit.Location
-
setWorld
public void setWorld(org.bukkit.World world)
- Overrides:
setWorld
in classorg.bukkit.Location
-
getChunk
public org.bukkit.Chunk getChunk()
- Overrides:
getChunk
in classorg.bukkit.Location
-
getBlock
public org.bukkit.block.Block getBlock()
- Overrides:
getBlock
in classorg.bukkit.Location
-
serialize
public java.util.Map<java.lang.String,java.lang.Object> serialize()
- Specified by:
serialize
in interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
- Overrides:
serialize
in classorg.bukkit.Location
-
deserialize
public static SpawnLocation deserialize(java.util.Map<java.lang.String,java.lang.Object> args)
Let Bukkit be able to deserialize this.- Parameters:
args
- The map.- Returns:
- The deserialized object.
-
-