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_) |
Entity |
getEntity() |
boolean |
getIsThornsDamage() |
boolean |
isDifficultyScaled() |
EntityDamageSource |
setIsThornsDamage() |
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, setProjectileprotected Entity damageSourceEntity
public EntityDamageSource(java.lang.String p_i1567_1_,
Entity damageSourceEntityIn)
public EntityDamageSource setIsThornsDamage()
public boolean getIsThornsDamage()
public Entity getEntity()
getEntity in class DamageSourcepublic IChatComponent getDeathMessage(EntityLivingBase p_151519_1_)
getDeathMessage in class DamageSourcepublic boolean isDifficultyScaled()
isDifficultyScaled in class DamageSource