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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryConstructors
- 
Method SummaryModifier 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- 
DEFAULTThe default behaviour, the projectile will be destroyed and the hit will be processed.
- 
SKIP_ENTITYThe 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_CURRENTDamage the entity and stop the projectile here, the projectile will not pierce.
- 
STOP_AT_CURRENT_NO_DAMAGECancel the piercing aspect of the projectile, and do not damage the entity.
 
- 
- 
Constructor Details- 
ImpactResultprivate ImpactResult()
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
 
-