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 TypeMethodDescriptionbooleanisEtchingAcidDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt to mobs and players standing in Etching AcidbooleanisMinigunDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt by a Minigun (including Drones and Sentry Turrets)booleanisPlasticBlockDamage(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
-
isMinigunDamage
boolean isMinigunDamage(net.minecraft.world.damagesource.DamageSource damageSource) Damage dealt by a Minigun (including Drones and Sentry Turrets)- Parameters:
damageSource- damage source to check- Returns:
- true if minigun damage
-