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.ConfigurationSerializableJust like a regularLocation, howeverworldis usuallynullor 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 SpawnLocationdeserialize(java.util.Map<java.lang.String,java.lang.Object> args)Let Bukkit be able to deserialize this.org.bukkit.block.BlockgetBlock()org.bukkit.ChunkgetChunk()org.bukkit.WorldgetWorld()java.util.Map<java.lang.String,java.lang.Object>serialize()voidsetWorld(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:
getWorldin classorg.bukkit.Location
-
setWorld
public void setWorld(org.bukkit.World world)
- Overrides:
setWorldin classorg.bukkit.Location
-
getChunk
public org.bukkit.Chunk getChunk()
- Overrides:
getChunkin classorg.bukkit.Location
-
getBlock
public org.bukkit.block.Block getBlock()
- Overrides:
getBlockin classorg.bukkit.Location
-
serialize
public java.util.Map<java.lang.String,java.lang.Object> serialize()
- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable- Overrides:
serializein 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.
-
-