Package me.desht.pneumaticcraft.common
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
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 StationReturns the enum constant of this class with the specified name.static PNCDamageSource.DamageSourcesImpl[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isPressureDamage
public boolean isPressureDamage(net.minecraft.world.damagesource.DamageSource damageSource) Description copied from interface:DamageSourcesDamage dealt to mobs and players trapped in a Pressure Chamber when > 2 bar- Specified by:
isPressureDamagein interfaceDamageSources- 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:DamageSourcesDamage dealt to players who fail to hack a Security Station- Specified by:
isSecurityStationDamagein interfaceDamageSources- 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:DamageSourcesDamage dealt to mobs and players standing in Etching Acid- Specified by:
isEtchingAcidDamagein interfaceDamageSources- 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:DamageSourcesDamage dealt to mobs (and players without footwear) standing on Plastic Construction Bricks (tm)- Specified by:
isPlasticBlockDamagein interfaceDamageSources- Parameters:
damageSource- damage source to check- Returns:
- true if plastic block damage
-
isMinigunDamage
public boolean isMinigunDamage(net.minecraft.world.damagesource.DamageSource damageSource) Description copied from interface:DamageSourcesDamage dealt by a Minigun (including Drones and Sentry Turrets)- Specified by:
isMinigunDamagein interfaceDamageSources- Parameters:
damageSource- damage source to check- Returns:
- true if minigun damage
-