public class EntityDamageSource extends DamageSource
Modifier and Type | Field and Description |
---|---|
protected Entity |
damageSourceEntity |
anvil, cactus, damageType, drown, fall, fallingBlock, generic, inFire, inWall, lava, magic, onFire, outOfWorld, starve, wither
Constructor and Description |
---|
EntityDamageSource(java.lang.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, setDamageAllowedInCreativeMode, setDamageBypassesArmor, setDifficultyScaled, setExplosion, setExplosionSource, setFireDamage, setMagicDamage, setProjectile
protected Entity damageSourceEntity
public EntityDamageSource(java.lang.String par1Str, Entity par2Entity)
public Entity getEntity()
getEntity
in class DamageSource
public ChatMessageComponent getDeathMessage(EntityLivingBase par1EntityLivingBase)
getDeathMessage
in class DamageSource
public boolean isDifficultyScaled()
isDifficultyScaled
in class DamageSource