public class EntityDamageSourceIndirect extends EntityDamageSource
damageSourceEntity
ANVIL, CACTUS, CRAMMING, damageType, DRAGON_BREATH, DROWN, FALL, FALLING_BLOCK, FIREWORKS, FLY_INTO_WALL, GENERIC, HOT_FLOOR, IN_FIRE, IN_WALL, LAVA, LIGHTNING_BOLT, MAGIC, ON_FIRE, OUT_OF_WORLD, STARVE, WITHER
Constructor and Description |
---|
EntityDamageSourceIndirect(java.lang.String damageTypeIn,
Entity source,
Entity indirectEntityIn) |
Modifier and Type | Method and Description |
---|---|
ITextComponent |
getDeathMessage(EntityLivingBase entityLivingBaseIn)
Gets the death message that is displayed when the player dies
|
Entity |
getImmediateSource()
Retrieves the immediate causer of the damage, e.g.
|
Entity |
getTrueSource()
Retrieves the true causer of the damage, e.g.
|
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
public Entity getImmediateSource()
getImmediateSource
in class DamageSource
public Entity getTrueSource()
getTrueSource
in class EntityDamageSource
public ITextComponent getDeathMessage(EntityLivingBase entityLivingBaseIn)
getDeathMessage
in class EntityDamageSource