All Implemented Interfaces:
Serializable , Comparable <Target >, Constable
Target
This enum represents targets, that can be specified
for executing actions and conditions. Target is a
list of entities in world.
Since:
5.0
Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
org.bukkit.Material
boolean
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
DEFAULT
public static final Target DEFAULT
SELECTED
public static final Target SELECTED
ALL_PLAYERS
public static final Target ALL_PLAYERS
ALL_ENTITIES
public static final Target ALL_ENTITIES
RANDOM_PLAYER
public static final Target RANDOM_PLAYER
RANDOM_TARGET
public static final Target RANDOM_TARGET
KILLER
public static final Target KILLER
VICTIM
public static final Target VICTIM
LAST_SPAWNED
public static final Target LAST_SPAWNED
Method Details
values
public static Target [] values ()
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (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 class has no constant with the specified name
NullPointerException - if the argument is null
getByMaterial
@NotNull
public static @NotNull Target getByMaterial (org.bukkit.Material material)
getByText
@NotNull
public static @NotNull Target getByText (@NotNull
@NotNull String text)
getBySign
@NotNull
public static @NotNull Target getBySign (org.bukkit.Location location)
getIcon
public org.bukkit.Material getIcon ()
isSupportsEventValue
public boolean isSupportsEventValue ()
getLocaleName
@NotNull
public @NotNull String getLocaleName ()