public class WorldCursor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
global |
protected org.bukkit.Location |
location |
protected java.lang.String |
name |
protected org.bukkit.map.MapCursor.Type |
type |
| Constructor and Description |
|---|
WorldCursor(org.bukkit.Location location)
Construct a WorldCursor with the arguments provided.
|
WorldCursor(org.bukkit.Location location,
org.bukkit.map.MapCursor.Type type)
Construct a WorldCursor with the arguments provided.
|
WorldCursor(java.lang.String name,
org.bukkit.Location location,
org.bukkit.map.MapCursor.Type type)
Construct a WorldCursor with the arguments provided.
|
WorldCursor(java.lang.String name,
org.bukkit.Location l,
org.bukkit.map.MapCursor.Type type,
boolean global)
Constructor for a RealWorldCursor.
|
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.Location |
getLocation()
Get the location.
|
java.lang.String |
getName()
Get the name.
|
org.bukkit.map.MapCursor.Type |
getType()
Get the MapCursor type of the cursor.
|
boolean |
isGlobal()
Get if the cursor is global.
|
void |
setGlobal(boolean hide)
Set if the cursor is global.
|
void |
setName(java.lang.String name)
Set the name.
|
void |
setType(org.bukkit.map.MapCursor.Type type)
Set the MapCursor type of the cursor.
|
protected java.lang.String name
protected final org.bukkit.Location location
protected org.bukkit.map.MapCursor.Type type
protected boolean global
public WorldCursor(java.lang.String name,
org.bukkit.Location l,
org.bukkit.map.MapCursor.Type type,
boolean global)
l - The current location of whatever the cursor is tracking. Cannot be null.type - The MapCursor type that will represent this RealWorldCursor. Cannot be null.global - Whether or not to show this cursor if it is off-map.public WorldCursor(org.bukkit.Location location)
location - The current location of whatever the cursor is tracking. Cannot be null.public WorldCursor(org.bukkit.Location location,
org.bukkit.map.MapCursor.Type type)
location - The current location of whatever the cursor is tracking. Cannot be null.type - The MapCursor type that will represent this RealWorldCursor. Cannot be null.public WorldCursor(java.lang.String name,
org.bukkit.Location location,
org.bukkit.map.MapCursor.Type type)
name - Name of the cursor, can be null for none.location - The current location of whatever the cursor is tracking. Cannot be null.type - The MapCursor type that will represent this RealWorldCursor. Cannot be null.public org.bukkit.Location getLocation()
public org.bukkit.map.MapCursor.Type getType()
public void setType(org.bukkit.map.MapCursor.Type type)
type - The type that will be displayed on the map. Cannot be null.public boolean isGlobal()
public void setGlobal(boolean hide)
public java.lang.String getName()
public void setName(java.lang.String name)
name - Can be null for none.