me.escapeNT.pail.Util
Class Waypoint

java.lang.Object
  extended by me.escapeNT.pail.Util.Waypoint
All Implemented Interfaces:
Serializable

public class Waypoint
extends Object
implements Serializable

Class for storing location data about a waypoint.

Author:
escapeNT
See Also:
Serialized Form

Constructor Summary
Waypoint(String name, org.bukkit.Location loc)
          Constructs a new Waypoint from the specified Location,
 
Method Summary
 boolean equals(Object o)
           
 org.bukkit.Location getLocation()
          Gets this Waypoint's location.
 String getName()
          Returns the name of this waypoint.
 int hashCode()
           
 void setName(String name)
           
 void setWorld(String world)
           
 void setX(int x)
           
 void setY(int y)
           
 void setZ(int z)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Waypoint

public Waypoint(String name,
                org.bukkit.Location loc)
Constructs a new Waypoint from the specified Location,

Parameters:
loc - The Location of the waypoint.
Method Detail

getLocation

public org.bukkit.Location getLocation()
Gets this Waypoint's location.

Returns:
The Location of the waypoint.

getName

public String getName()
Returns the name of this waypoint.

Returns:
the name

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setX

public void setX(int x)
Parameters:
x - the x to set

setY

public void setY(int y)
Parameters:
y - the y to set

setZ

public void setZ(int z)
Parameters:
z - the z to set

setWorld

public void setWorld(String world)
Parameters:
world - the world to set

setName

public void setName(String name)
Parameters:
name - the name to set


Copyright © 2011. All Rights Reserved.