Package net.minecraft.src
Class EntityDamageSource
java.lang.Object
net.minecraft.src.DamageSource
net.minecraft.src.EntityDamageSource
- Direct Known Subclasses:
EntityDamageSourceIndirect
-
Field Summary
FieldsFields inherited from class net.minecraft.src.DamageSource
anvil, cactus, damageType, drown, fall, fallingBlock, generic, inFire, inWall, lava, magic, onFire, outOfWorld, starve, wither -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDeathMessage(EntityLivingBase par1EntityLivingBase) Returns the message to be displayed on player death.booleanReturn whether this damage source will have its damage amount scaled based on the current difficulty.Methods inherited from class net.minecraft.src.DamageSource
canHarmInCreative, causeArrowDamage, causeFireballDamage, causeIndirectMagicDamage, causeMobDamage, causePlayerDamage, causeThornsDamage, causeThrownDamage, getDamageType, getHungerDamage, getSourceOfDamage, isExplosion, isFireDamage, isMagicDamage, isProjectile, isUnblockable, setDamageAllowedInCreativeMode, setDamageBypassesArmor, setDifficultyScaled, setExplosion, setExplosionSource, setFireDamage, setMagicDamage, setProjectile
-
Field Details
-
damageSourceEntity
-
-
Constructor Details
-
EntityDamageSource
-
-
Method Details
-
getEntity
- Overrides:
getEntityin classDamageSource
-
getDeathMessage
Returns the message to be displayed on player death.- Overrides:
getDeathMessagein classDamageSource
-
isDifficultyScaled
public boolean isDifficultyScaled()Return whether this damage source will have its damage amount scaled based on the current difficulty.- Overrides:
isDifficultyScaledin classDamageSource
-