Package me.desht.pneumaticcraft.api.misc
Interface DamageSources
- All Known Implementing Classes:
PNCDamageSource.DamageSourcesImpl
public interface DamageSources
Get an instance of this via
PneumaticRegistry.IPneumaticCraftInterface.getDamageSources()-
Method Summary
Modifier and TypeMethodDescriptionbooleanisDroneOverloadDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt to Drones when they are wrenched, execute a Suicide widget, or encounter a fatal run-time program error.booleanisEtchingAcidDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt to mobs and players standing in Etching AcidbooleanisPlasticBlockDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt to mobs (and players without footwear) standing on Plastic Construction Bricks (tm)booleanisPressureDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt to mobs and players trapped in a Pressure Chamber when > 2 barbooleanisSecurityStationDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt to players who fail to hack a Security Station
-
Method Details
-
isPressureDamage
boolean isPressureDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt to mobs and players trapped in a Pressure Chamber when > 2 bar- Parameters:
damageSource- damage source to check- Returns:
- true if pressure chamber damage
-
isSecurityStationDamage
boolean isSecurityStationDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt to players who fail to hack a Security Station- Parameters:
damageSource- damage source to check- Returns:
- true if security station damage
-
isEtchingAcidDamage
boolean isEtchingAcidDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt to mobs and players standing in Etching Acid- Parameters:
damageSource- damage source to check- Returns:
- true if etching acid damage
-
isPlasticBlockDamage
boolean isPlasticBlockDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt to mobs (and players without footwear) standing on Plastic Construction Bricks (tm)- Parameters:
damageSource- damage source to check- Returns:
- true if plastic block damage
-
isDroneOverloadDamage
boolean isDroneOverloadDamage(net.minecraft.world.damagesource.DamageSource damageSource) 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.- Parameters:
damageSource- damage source to check- Returns:
- true if drone overload damage
-