Package org.bukkit.entity
Enum AbstractArrow.PickupStatus
- java.lang.Object
-
- java.lang.Enum<AbstractArrow.PickupStatus>
-
- org.bukkit.entity.AbstractArrow.PickupStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractArrow.PickupStatus>
- Enclosing interface:
- AbstractArrow
public static enum AbstractArrow.PickupStatus extends Enum<AbstractArrow.PickupStatus>
Represents the pickup status of this arrow.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOWED
The arrow can be picked up.CREATIVE_ONLY
The arrow can only be picked up by players in creative mode.DISALLOWED
The arrow cannot be picked up.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractArrow.PickupStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractArrow.PickupStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISALLOWED
public static final AbstractArrow.PickupStatus DISALLOWED
The arrow cannot be picked up.
-
ALLOWED
public static final AbstractArrow.PickupStatus ALLOWED
The arrow can be picked up.
-
CREATIVE_ONLY
public static final AbstractArrow.PickupStatus CREATIVE_ONLY
The arrow can only be picked up by players in creative mode.
-
-
Method Detail
-
values
public static AbstractArrow.PickupStatus[] 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 (AbstractArrow.PickupStatus c : AbstractArrow.PickupStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractArrow.PickupStatus 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
-
-