public class EntityDamageSource extends DamageSource
Modifier and Type | Field and Description |
---|---|
protected Entity |
source |
private boolean |
thorns |
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 and Description |
---|
EntityDamageSource(String name,
Entity source) |
Modifier and Type | Method and Description |
---|---|
Entity |
getAttacker() |
Text |
getDeathMessage(LivingEntity entity) |
Vec3d |
getPosition() |
boolean |
isScaledWithDifficulty() |
boolean |
isThorns() |
EntityDamageSource |
setThorns() |
String |
toString() |
arrow, badRespawnPoint, bypassesArmor, explosion, explosion, fireball, firework, getExhaustion, getMagic, getName, getSource, isExplosive, isFire, isOutOfWorld, isProjectile, isSourceCreativePlayer, isUnblockable, magic, mob, mobProjectile, player, setBypassesArmor, setExplosive, setFire, setOutOfWorld, setProjectile, setScaledWithDifficulty, setUnblockable, setUsesMagic, sting, thorns, thrownProjectile, trident, witherSkull
public EntityDamageSource setThorns()
public boolean isThorns()
@Nullable public Entity getAttacker()
getAttacker
in class DamageSource
public Text getDeathMessage(LivingEntity entity)
getDeathMessage
in class DamageSource
public boolean isScaledWithDifficulty()
isScaledWithDifficulty
in class DamageSource
@Nullable public Vec3d getPosition()
getPosition
in class DamageSource
public String toString()
toString
in class DamageSource