Enum Class PNCDamageSource.DamageSourcesImpl

java.lang.Object
java.lang.Enum<PNCDamageSource.DamageSourcesImpl>
me.desht.pneumaticcraft.common.PNCDamageSource.DamageSourcesImpl
All Implemented Interfaces:
Serializable, Comparable<PNCDamageSource.DamageSourcesImpl>, Constable, DamageSources
Enclosing class:
PNCDamageSource

public static enum PNCDamageSource.DamageSourcesImpl extends Enum<PNCDamageSource.DamageSourcesImpl> implements DamageSources
  • Enum Constant Details

  • Method Details

    • values

      public static PNCDamageSource.DamageSourcesImpl[] 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 PNCDamageSource.DamageSourcesImpl 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
    • isPressureDamage

      public boolean isPressureDamage(net.minecraft.world.damagesource.DamageSource damageSource)
      Description copied from interface: DamageSources
      Damage dealt to mobs and players trapped in a Pressure Chamber when > 2 bar
      Specified by:
      isPressureDamage in interface DamageSources
      Parameters:
      damageSource - damage source to check
      Returns:
      true if pressure chamber damage
    • isSecurityStationDamage

      public boolean isSecurityStationDamage(net.minecraft.world.damagesource.DamageSource damageSource)
      Description copied from interface: DamageSources
      Damage dealt to players who fail to hack a Security Station
      Specified by:
      isSecurityStationDamage in interface DamageSources
      Parameters:
      damageSource - damage source to check
      Returns:
      true if security station damage
    • isEtchingAcidDamage

      public boolean isEtchingAcidDamage(net.minecraft.world.damagesource.DamageSource damageSource)
      Description copied from interface: DamageSources
      Damage dealt to mobs and players standing in Etching Acid
      Specified by:
      isEtchingAcidDamage in interface DamageSources
      Parameters:
      damageSource - damage source to check
      Returns:
      true if etching acid damage
    • isPlasticBlockDamage

      public boolean isPlasticBlockDamage(net.minecraft.world.damagesource.DamageSource damageSource)
      Description copied from interface: DamageSources
      Damage dealt to mobs (and players without footwear) standing on Plastic Construction Bricks (tm)
      Specified by:
      isPlasticBlockDamage in interface DamageSources
      Parameters:
      damageSource - damage source to check
      Returns:
      true if plastic block damage
    • isDroneOverloadDamage

      public boolean isDroneOverloadDamage(net.minecraft.world.damagesource.DamageSource damageSource)
      Description copied from interface: DamageSources
      Damage dealt to Drones when they are wrenched, execute a Suicide widget, or encounter a fatal run-time program error. This damage is always instantly fatal to the Drone.
      Specified by:
      isDroneOverloadDamage in interface DamageSources
      Parameters:
      damageSource - damage source to check
      Returns:
      true if drone overload damage