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 |
---|---|
ChatMessageComponent |
getDeathMessage(EntityLivingBase par1EntityLivingBase)
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, causeThornsDamage, causeThrownDamage, getDamageType, getHungerDamage, getSourceOfDamage, isExplosion, isFireDamage, isMagicDamage, isProjectile, isUnblockable, setDifficultyScaled, setExplosion, setExplosionSource, setMagicDamage, setProjectile
public Entity getEntity()
getEntity
in class DamageSource
public ChatMessageComponent getDeathMessage(EntityLivingBase par1EntityLivingBase)
getDeathMessage
in class DamageSource
public boolean isDifficultyScaled()
isDifficultyScaled
in class DamageSource