Enum Minecart.Type

java.lang.Object
  extended by java.lang.Enum<Minecart.Type>
      extended by Minecart.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Minecart.Type>
Enclosing class:
Minecart

public static enum Minecart.Type
extends java.lang.Enum<Minecart.Type>

Type of minecart


Enum Constant Summary
Enum Constant and Description
Minecart
          Base minecart.
PoweredMinecart
          Powered minecart.
StorageCart
          Storage minecart.
 
Method Summary
Modifier and Type Method and Description
static Minecart.Type fromId(int type)
           
 int getType()
           
static Minecart.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Minecart.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Minecart

public static final Minecart.Type Minecart
Base minecart.


StorageCart

public static final Minecart.Type StorageCart
Storage minecart. Has storage for items.


PoweredMinecart

public static final Minecart.Type PoweredMinecart
Powered minecart. Has storage for fuel.

Method Detail

values

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

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

valueOf

public static Minecart.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getType

public int getType()

fromId

public static Minecart.Type fromId(int type)