Package net.minecraft.world.damagesource
Class EntityDamageSource
java.lang.Object
net.minecraft.world.damagesource.DamageSource
net.minecraft.world.damagesource.EntityDamageSource
- Direct Known Subclasses:
IndirectEntityDamageSource
-
Field Summary
Fields inherited from class net.minecraft.world.damagesource.DamageSource
ANVIL, CACTUS, CRAMMING, DRAGON_BREATH, DROWN, DRY_OUT, FALL, FALLING_BLOCK, FALLING_STALACTITE, FLY_INTO_WALL, FREEZE, GENERIC, HOT_FLOOR, IN_FIRE, IN_WALL, LAVA, LIGHTNING_BOLT, MAGIC, msgId, ON_FIRE, OUT_OF_WORLD, STALAGMITE, STARVE, SWEET_BERRY_BUSH, WITHER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedDeathMessage(LivingEntity p_19397_)
boolean
isThorns()
boolean
toString()
Methods inherited from class net.minecraft.world.damagesource.DamageSource
arrow, badRespawnPointExplosion, bypassArmor, bypassInvul, bypassMagic, damageHelmet, explosion, explosion, fireball, fireworks, getDirectEntity, getFoodExhaustion, getMsgId, indirectMagic, indirectMobAttack, isBypassArmor, isBypassInvul, isBypassMagic, isCreativePlayer, isDamageHelmet, isExplosion, isFall, isFire, isMagic, isNoAggro, isProjectile, mobAttack, playerAttack, setExplosion, setIsFall, setIsFire, setMagic, setNoAggro, setProjectile, setScalesWithDifficulty, sting, thorns, thrown, trident, witherSkull
-
Field Details
-
entity
-
isThorns
private boolean isThorns
-
-
Constructor Details
-
EntityDamageSource
-
-
Method Details
-
setThorns
-
isThorns
public boolean isThorns() -
getEntity
- Overrides:
getEntity
in classDamageSource
-
getLocalizedDeathMessage
- Overrides:
getLocalizedDeathMessage
in classDamageSource
-
scalesWithDifficulty
public boolean scalesWithDifficulty()- Overrides:
scalesWithDifficulty
in classDamageSource
-
getSourcePosition
- Overrides:
getSourcePosition
in classDamageSource
-
toString
- Overrides:
toString
in classDamageSource
-