Package net.risingworld.api.events.world
Enum Class ProjectileHitEvent.Target
java.lang.Object
java.lang.Enum<ProjectileHitEvent.Target>
net.risingworld.api.events.world.ProjectileHitEvent.Target
- All Implemented Interfaces:
Serializable
,Comparable<ProjectileHitEvent.Target>
,Constable
- Enclosing class:
ProjectileHitEvent
Determines the hit target type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConstruction element was hitCorpse was hitItem in the world was hitNpc was hitObject element was hitPlant was hitA player was hitTerrain was hitUndefined targetVehicle was hitA water surface was hitStatic world was hit (does not include terrain) -
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectileHitEvent.Target
Returns the enum constant of this class with the specified name.static ProjectileHitEvent.Target[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Undefined
Undefined target -
Player
A player was hit -
Npc
Npc was hit -
Corpse
Corpse was hit -
Plant
Plant was hit -
Object
Object element was hit -
Construction
Construction element was hit -
Item
Item in the world was hit -
Vehicle
Vehicle was hit -
Water
A water surface was hit -
World
Static world was hit (does not include terrain) -
Terrain
Terrain was hit
-
-
Method Details
-
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 nameNullPointerException
- if the argument is null
-