org.bukkit.map
Enum MapCursor.Type

java.lang.Object
  extended by java.lang.Enum<MapCursor.Type>
      extended by org.bukkit.map.MapCursor.Type
All Implemented Interfaces:
Serializable, Comparable<MapCursor.Type>
Enclosing class:
MapCursor

public static enum MapCursor.Type
extends Enum<MapCursor.Type>

Represents the standard types of map cursors. More may be made available by texture packs - the value is used by the client as an index in the file './misc/mapicons.png' from minecraft.jar or from a texture pack.


Enum Constant Summary
BLUE_POINTER
           
GREEN_POINTER
           
RED_POINTER
           
WHITE_CROSS
           
WHITE_POINTER
           
 
Method Summary
static MapCursor.Type byValue(byte value)
           
 byte getValue()
           
static MapCursor.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MapCursor.Type[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WHITE_POINTER

public static final MapCursor.Type WHITE_POINTER

GREEN_POINTER

public static final MapCursor.Type GREEN_POINTER

RED_POINTER

public static final MapCursor.Type RED_POINTER

BLUE_POINTER

public static final MapCursor.Type BLUE_POINTER

WHITE_CROSS

public static final MapCursor.Type WHITE_CROSS
Method Detail

values

public static final MapCursor.Type[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MapCursor.Type c : MapCursor.Type.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MapCursor.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

getValue

public byte getValue()

byValue

public static MapCursor.Type byValue(byte value)


Copyright © 2013. All Rights Reserved.