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>
  • Enum Constant Details

    • DEFAULT

      public static final ProjectileImpactEvent.ImpactResult DEFAULT
      The default behaviour, the projectile will be destroyed and the hit will be processed.
    • SKIP_ENTITY

      public static final ProjectileImpactEvent.ImpactResult 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

      public static final ProjectileImpactEvent.ImpactResult STOP_AT_CURRENT
      Damage the entity and stop the projectile here, the projectile will not pierce.
    • STOP_AT_CURRENT_NO_DAMAGE

      public static final ProjectileImpactEvent.ImpactResult 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

      public static ProjectileImpactEvent.ImpactResult[] 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

      public static ProjectileImpactEvent.ImpactResult valueOf(String name)
      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