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
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedDeathMessage(LivingEntity p_19397_)booleanisThorns()booleantoString()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:
getEntityin classDamageSource
-
getLocalizedDeathMessage
- Overrides:
getLocalizedDeathMessagein classDamageSource
-
scalesWithDifficulty
public boolean scalesWithDifficulty()- Overrides:
scalesWithDifficultyin classDamageSource
-
getSourcePosition
- Overrides:
getSourcePositionin classDamageSource
-
toString
- Overrides:
toStringin classDamageSource
-