public class EntityDamageSource extends DamageSource
Modifier and Type | Field and Description |
---|---|
protected Entity |
damageSourceEntity |
anvil, cactus, damageType, drown, fall, fallingBlock, generic, inFire, inWall, lava, lightningBolt, magic, onFire, outOfWorld, starve, wither
Constructor and Description |
---|
EntityDamageSource(java.lang.String p_i1567_1_,
Entity damageSourceEntityIn) |
Modifier and Type | Method and Description |
---|---|
IChatComponent |
getDeathMessage(EntityLivingBase p_151519_1_)
Gets the death message that is displayed when the player dies
|
Entity |
getEntity() |
boolean |
getIsThornsDamage() |
boolean |
isDifficultyScaled()
Return whether this damage source will have its damage amount scaled based on the current difficulty.
|
EntityDamageSource |
setIsThornsDamage()
Sets this EntityDamageSource as originating from Thorns armor
|
canHarmInCreative, causeArrowDamage, causeFireballDamage, causeIndirectMagicDamage, causeMobDamage, causePlayerDamage, causeThornsDamage, causeThrownDamage, getDamageType, getHungerDamage, getSourceOfDamage, isCreativePlayer, isDamageAbsolute, isExplosion, isFireDamage, isMagicDamage, isProjectile, isUnblockable, setDamageAllowedInCreativeMode, setDamageBypassesArmor, setDamageIsAbsolute, setDifficultyScaled, setExplosion, setExplosionSource, setFireDamage, setMagicDamage, setProjectile
protected Entity damageSourceEntity
public EntityDamageSource(java.lang.String p_i1567_1_, Entity damageSourceEntityIn)
public EntityDamageSource setIsThornsDamage()
public boolean getIsThornsDamage()
public Entity getEntity()
getEntity
in class DamageSource
public IChatComponent getDeathMessage(EntityLivingBase p_151519_1_)
getDeathMessage
in class DamageSource
public boolean isDifficultyScaled()
isDifficultyScaled
in class DamageSource