Package org.bukkit.block.data.type
Enum Bell.Attachment
- java.lang.Object
-
- java.lang.Enum<Bell.Attachment>
-
- org.bukkit.block.data.type.Bell.Attachment
-
- All Implemented Interfaces:
Serializable
,Comparable<Bell.Attachment>
- Enclosing interface:
- Bell
public static enum Bell.Attachment extends Enum<Bell.Attachment>
What the bell is attached to.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CEILING
Placed on ceiling.DOUBLE_WALL
Placed between two walls.FLOOR
Placed on floor.SINGLE_WALL
Placed on one wall.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Bell.Attachment
valueOf(String name)
Returns the enum constant of this type with the specified name.static Bell.Attachment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FLOOR
public static final Bell.Attachment FLOOR
Placed on floor.
-
CEILING
public static final Bell.Attachment CEILING
Placed on ceiling.
-
SINGLE_WALL
public static final Bell.Attachment SINGLE_WALL
Placed on one wall.
-
DOUBLE_WALL
public static final Bell.Attachment DOUBLE_WALL
Placed between two walls.
-
-
Method Detail
-
values
public static Bell.Attachment[] 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 (Bell.Attachment c : Bell.Attachment.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Bell.Attachment 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 nameNullPointerException
- if the argument is null
-
-