public class EntityDamageSource extends DamageSource
anvil, cactus, damageType, drown, explosion, explosion2, 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(EntityPlayer par1EntityPlayer)
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, getDamageType, getHungerDamage, getSourceOfDamage, isFireDamage, isMagicDamage, isProjectile, isUnblockable, setDifficultyScaled, setMagicDamage, setProjectile
public EntityDamageSource(String par1Str, Entity par2Entity)
public Entity getEntity()
getEntity
in class DamageSource
public String getDeathMessage(EntityPlayer par1EntityPlayer)
getDeathMessage
in class DamageSource
public boolean isDifficultyScaled()
isDifficultyScaled
in class DamageSource