public class IndirectEntityDamageSource extends EntityDamageSource
Modifier and Type | Field and Description |
---|---|
private Entity |
indirectEntity |
damageSourceEntity
ANVIL, CACTUS, CRAMMING, damageType, DRAGON_BREATH, DROWN, DRYOUT, FALL, FALLING_BLOCK, FIREWORKS, FLY_INTO_WALL, GENERIC, HOT_FLOOR, IN_FIRE, IN_WALL, LAVA, LIGHTNING_BOLT, MAGIC, ON_FIRE, OUT_OF_WORLD, STARVE, SWEET_BERRY_BUSH, WITHER
Constructor and Description |
---|
IndirectEntityDamageSource(java.lang.String damageTypeIn,
Entity source,
Entity indirectEntityIn) |
Modifier and Type | Method and Description |
---|---|
ITextComponent |
getDeathMessage(LivingEntity entityLivingBaseIn) |
Entity |
getImmediateSource() |
Entity |
getTrueSource() |
getDamageLocation, getIsThornsDamage, isDifficultyScaled, setIsThornsDamage
canHarmInCreative, causeArrowDamage, causeExplosionDamage, causeExplosionDamage, causeFireballDamage, causeIndirectDamage, causeIndirectMagicDamage, causeMobDamage, causePlayerDamage, causeThornsDamage, causeThrownDamage, causeTridentDamage, func_226252_a_, getDamageType, getHungerDamage, isCreativePlayer, isDamageAbsolute, isExplosion, isFireDamage, isMagicDamage, isProjectile, isUnblockable, netherBedExplosion, 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(LivingEntity entityLivingBaseIn)
getDeathMessage
in class EntityDamageSource