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, field_28099, 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 EntitygetAttacker()TextgetDeathMessage(LivingEntity entity)Vec3dgetPosition()booleanisScaledWithDifficulty()booleanisThorns()EntityDamageSourcesetThorns()StringtoString()Methods inherited from class net.minecraft.entity.damage.DamageSource
arrow, badRespawnPoint, bypassesArmor, explosion, explosion, fireball, firework, getExhaustion, getMagic, getName, getSource, isExplosive, isFire, isOutOfWorld, isProjectile, isSourceCreativePlayer, isUnblockable, magic, method_32872, method_32873, mob, mobProjectile, player, setBypassesArmor, setExplosive, 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:
getAttackerin classDamageSource
-
getDeathMessage
- Overrides:
getDeathMessagein classDamageSource
-
isScaledWithDifficulty
public boolean isScaledWithDifficulty()- Overrides:
isScaledWithDifficultyin classDamageSource
-
getPosition
- Overrides:
getPositionin classDamageSource
-
toString
- Overrides:
toStringin classDamageSource
-