Package net.minecraft.entity.damage
Class EntityDamageSource
java.lang.Object
net.minecraft.entity.damage.DamageSource
net.minecraft.entity.damage.EntityDamageSource
- Direct Known Subclasses:
ProjectileDamageSource
public class EntityDamageSource extends DamageSource
-
Field Summary
Fields inherited from class net.minecraft.entity.damage.DamageSource
ANVIL, CACTUS, CRAMMING, DRAGON_BREATH, DROWN, DRYOUT, FALL, FALLING_BLOCK, FALLING_STALACTITE, FLY_INTO_WALL, FREEZE, 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 EntityDamageSource(String name, Entity source)
-
Method Summary
Modifier and Type Method Description Entity
getAttacker()
Text
getDeathMessage(LivingEntity entity)
Vec3d
getPosition()
boolean
isScaledWithDifficulty()
boolean
isThorns()
EntityDamageSource
setThorns()
String
toString()
Methods inherited from class net.minecraft.entity.damage.DamageSource
arrow, badRespawnPoint, bypassesArmor, explosion, explosion, fireball, firework, getExhaustion, getName, getSource, isExplosive, isFallingBlock, isFire, isMagic, isOutOfWorld, isProjectile, isSourceCreativePlayer, isUnblockable, magic, mob, mobProjectile, player, setBypassesArmor, setExplosive, setFallingBlock, setFire, setOutOfWorld, setProjectile, setScaledWithDifficulty, setUnblockable, setUsesMagic, sting, thorns, thrownProjectile, trident, witherSkull
-
Field Details
-
source
-
thorns
private boolean thorns
-
-
Constructor Details
-
EntityDamageSource
-
-
Method Details
-
setThorns
-
isThorns
public boolean isThorns() -
getAttacker
- Overrides:
getAttacker
in classDamageSource
-
getDeathMessage
- Overrides:
getDeathMessage
in classDamageSource
-
isScaledWithDifficulty
public boolean isScaledWithDifficulty()- Overrides:
isScaledWithDifficulty
in classDamageSource
-
getPosition
- Overrides:
getPosition
in classDamageSource
-
toString
- Overrides:
toString
in classDamageSource
-