Package net.minecraft.util
Class EntityDamageSource
java.lang.Object
net.minecraft.util.DamageSource
net.minecraft.util.EntityDamageSource
- Direct Known Subclasses:
IndirectEntityDamageSource
-
Field Summary
Fields inherited from class net.minecraft.util.DamageSource
ANVIL, CACTUS, CRAMMING, DRAGON_BREATH, DROWN, DRY_OUT, FALL, FALLING_BLOCK, FLY_INTO_WALL, GENERIC, HOT_FLOOR, IN_FIRE, IN_WALL, LAVA, LIGHTNING_BOLT, MAGIC, msgId, ON_FIRE, OUT_OF_WORLD, STARVE, SWEET_BERRY_BUSH, WITHER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedDeathMessage
(LivingEntity p_151519_1_) boolean
isThorns()
boolean
toString()
Methods inherited from class net.minecraft.util.DamageSource
arrow, badRespawnPointExplosion, bypassArmor, bypassInvul, bypassMagic, explosion, explosion, fireball, fireworks, getDirectEntity, getFoodExhaustion, getMsgId, indirectMagic, indirectMobAttack, isBypassArmor, isBypassInvul, isBypassMagic, isCreativePlayer, isExplosion, isFire, isMagic, isProjectile, mobAttack, playerAttack, setExplosion, setIsFire, setMagic, 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
-