Package net.minecraft.block
Enum SkullBlock.Types
- java.lang.Object
-
- java.lang.Enum<SkullBlock.Types>
-
- net.minecraft.block.SkullBlock.Types
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SkullBlock.Types>
,SkullBlock.ISkullType
- Enclosing class:
- SkullBlock
public static enum SkullBlock.Types extends java.lang.Enum<SkullBlock.Types> implements SkullBlock.ISkullType
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Types()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SkullBlock.Types
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SkullBlock.Types[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SKELETON
public static final SkullBlock.Types SKELETON
-
WITHER_SKELETON
public static final SkullBlock.Types WITHER_SKELETON
-
PLAYER
public static final SkullBlock.Types PLAYER
-
ZOMBIE
public static final SkullBlock.Types ZOMBIE
-
CREEPER
public static final SkullBlock.Types CREEPER
-
DRAGON
public static final SkullBlock.Types DRAGON
-
-
Method Detail
-
values
public static SkullBlock.Types[] 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 (SkullBlock.Types c : SkullBlock.Types.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SkullBlock.Types 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 namejava.lang.NullPointerException
- if the argument is null
-
-