public class ProjectileDamageSource extends EntityDamageSource
| Modifier and Type | Field and Description |
|---|---|
private Entity |
attacker |
sourceANVIL, CACTUS, CRAMMING, DRAGON_BREATH, DROWN, DRYOUT, FALL, FALLING_BLOCK, FLY_INTO_WALL, GENERIC, HOT_FLOOR, IN_FIRE, IN_WALL, LAVA, LIGHTNING_BOLT, MAGIC, name, ON_FIRE, OUT_OF_WORLD, STARVE, SWEET_BERRY_BUSH, WITHER| Constructor and Description |
|---|
ProjectileDamageSource(String name,
Entity projectile,
Entity attacker) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getAttacker() |
Text |
getDeathMessage(LivingEntity entity) |
Entity |
getSource() |
getPosition, isScaledWithDifficulty, isThorns, setThorns, toStringarrow, badRespawnPoint, bypassesArmor, explosion, explosion, fireball, firework, getExhaustion, getMagic, getName, isExplosive, isFire, isOutOfWorld, isProjectile, isSourceCreativePlayer, isUnblockable, magic, mob, mobProjectile, player, setBypassesArmor, setExplosive, setFire, setOutOfWorld, setProjectile, setScaledWithDifficulty, setUnblockable, setUsesMagic, sting, thorns, thrownProjectile, trident, witherSkullprivate final Entity attacker
@Nullable public Entity getSource()
getSource in class DamageSource@Nullable public Entity getAttacker()
getAttacker in class EntityDamageSourcepublic Text getDeathMessage(LivingEntity entity)
getDeathMessage in class EntityDamageSource