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