Package net.minecraftforge.event.entity
Enum Class ProjectileImpactEvent.ImpactResult
java.lang.Object
java.lang.Enum<ProjectileImpactEvent.ImpactResult>
net.minecraftforge.event.entity.ProjectileImpactEvent.ImpactResult
- All Implemented Interfaces:
Serializable
,Comparable<ProjectileImpactEvent.ImpactResult>
,Constable
- Enclosing class:
ProjectileImpactEvent
public static enum ProjectileImpactEvent.ImpactResult
extends Enum<ProjectileImpactEvent.ImpactResult>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe default behaviour, the projectile will be destroyed and the hit will be processed.The projectile will pass through the current entity as if it wasn't there.Damage the entity and stop the projectile here, the projectile will not pierce.Cancel the piercing aspect of the projectile, and do not damage the entity. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ProjectileImpactEvent.ImpactResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
The default behaviour, the projectile will be destroyed and the hit will be processed. -
SKIP_ENTITY
The projectile will pass through the current entity as if it wasn't there. This will return default behaviour if there is no entity. -
STOP_AT_CURRENT
Damage the entity and stop the projectile here, the projectile will not pierce. -
STOP_AT_CURRENT_NO_DAMAGE
Cancel the piercing aspect of the projectile, and do not damage the entity.
-
-
Constructor Details
-
ImpactResult
private ImpactResult()
-
-
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
-