public class EntityDamageSourceIndirect extends EntityDamageSource
Modifier and Type | Field and Description |
---|---|
private Entity |
indirectEntity |
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) |
Entity |
getImmediateSource() |
Entity |
getTrueSource() |
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
private final Entity indirectEntity
@Nullable public Entity getImmediateSource()
getImmediateSource
in class DamageSource
@Nullable public Entity getTrueSource()
getTrueSource
in class EntityDamageSource
public ITextComponent getDeathMessage(EntityLivingBase entityLivingBaseIn)
getDeathMessage
in class EntityDamageSource