public class EntityDamageSource extends DamageSource
anvil, cactus, damageType, drown, fall, fallingBlock, generic, inFire, inWall, lava, magic, onFire, outOfWorld, starve, wither| Constructor and Description |
|---|
EntityDamageSource(String par1Str,
Entity par2Entity) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDeathMessage(EntityLiving par1EntityLiving)
Returns the message to be displayed on player death.
|
Entity |
getEntity() |
boolean |
isDifficultyScaled()
Return whether this damage source will have its damage amount scaled based on the current difficulty.
|
canHarmInCreative, causeArrowDamage, causeFireballDamage, causeIndirectMagicDamage, causeMobDamage, causePlayerDamage, causeThrownDamage, func_92087_a, func_94539_a, func_94540_d, func_94541_c, getDamageType, getHungerDamage, getSourceOfDamage, isFireDamage, isMagicDamage, isProjectile, isUnblockable, setDifficultyScaled, setMagicDamage, setProjectilepublic EntityDamageSource(String par1Str, Entity par2Entity)
public Entity getEntity()
getEntity in class DamageSourcepublic String getDeathMessage(EntityLiving par1EntityLiving)
getDeathMessage in class DamageSourcepublic boolean isDifficultyScaled()
isDifficultyScaled in class DamageSource