Package net.minecraft.entity.damage
Class ProjectileDamageSource
java.lang.Object
net.minecraft.entity.damage.DamageSource
net.minecraft.entity.damage.EntityDamageSource
net.minecraft.entity.damage.ProjectileDamageSource
public class ProjectileDamageSource extends EntityDamageSource
-
Field Summary
Fields inherited from class net.minecraft.entity.damage.EntityDamageSource
source
Fields inherited from class net.minecraft.entity.damage.DamageSource
ANVIL, 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 Summary
Constructors Constructor Description ProjectileDamageSource(String name, Entity projectile, Entity attacker)
-
Method Summary
Modifier and Type Method Description Entity
getAttacker()
Text
getDeathMessage(LivingEntity entity)
Entity
getSource()
Methods inherited from class net.minecraft.entity.damage.EntityDamageSource
getPosition, isScaledWithDifficulty, isThorns, setThorns, toString
Methods inherited from class net.minecraft.entity.damage.DamageSource
arrow, 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, witherSkull
-
Field Details
-
attacker
-
-
Constructor Details
-
ProjectileDamageSource
-
-
Method Details
-
getSource
- Overrides:
getSource
in classDamageSource
-
getAttacker
- Overrides:
getAttacker
in classEntityDamageSource
-
getDeathMessage
- Overrides:
getDeathMessage
in classEntityDamageSource
-