public class EntityDamageSource extends DamageSource
| Modifier and Type | Field and Description | 
|---|---|
protected Entity | 
damageSourceEntity  | 
anvil, cactus, damageType, dragonBreath, drown, fall, fallingBlock, flyIntoWall, generic, hotFloor, inFire, inWall, lava, lightningBolt, magic, onFire, outOfWorld, starve, wither| Constructor and Description | 
|---|
EntityDamageSource(java.lang.String damageTypeIn,
                  Entity damageSourceEntityIn)  | 
| Modifier and Type | Method and Description | 
|---|---|
Vec3d | 
getDamageLocation()  | 
ITextComponent | 
getDeathMessage(EntityLivingBase entityLivingBaseIn)  | 
Entity | 
getEntity()  | 
boolean | 
getIsThornsDamage()  | 
boolean | 
isDifficultyScaled()  | 
EntityDamageSource | 
setIsThornsDamage()  | 
canHarmInCreative, causeArrowDamage, causeExplosionDamage, causeExplosionDamage, causeFireballDamage, causeIndirectDamage, causeIndirectMagicDamage, causeMobDamage, causePlayerDamage, causeThornsDamage, causeThrownDamage, getDamageType, getHungerDamage, getSourceOfDamage, isCreativePlayer, isDamageAbsolute, isExplosion, isFireDamage, isMagicDamage, isProjectile, isUnblockable, setDamageAllowedInCreativeMode, setDamageBypassesArmor, setDamageIsAbsolute, setDifficultyScaled, setExplosion, setFireDamage, setMagicDamage, setProjectileprotected Entity damageSourceEntity
public EntityDamageSource(java.lang.String damageTypeIn,
                          Entity damageSourceEntityIn)
public EntityDamageSource setIsThornsDamage()
public boolean getIsThornsDamage()
@Nullable public Entity getEntity()
getEntity in class DamageSourcepublic ITextComponent getDeathMessage(EntityLivingBase entityLivingBaseIn)
getDeathMessage in class DamageSourcepublic boolean isDifficultyScaled()
isDifficultyScaled in class DamageSource@Nullable public Vec3d getDamageLocation()
getDamageLocation in class DamageSource