Package net.minecraft.util
Class EntityDamageSource
- java.lang.Object
-
- net.minecraft.util.DamageSource
-
- net.minecraft.util.EntityDamageSource
-
- Direct Known Subclasses:
IndirectEntityDamageSource
public class EntityDamageSource extends DamageSource
-
-
Field Summary
Fields Modifier and Type Field Description protected Entity
entity
private boolean
isThorns
-
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
Constructors Constructor Description EntityDamageSource(java.lang.String p_i1567_1_, Entity p_i1567_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entity
getEntity()
ITextComponent
getLocalizedDeathMessage(LivingEntity p_151519_1_)
Vector3d
getSourcePosition()
boolean
isThorns()
boolean
scalesWithDifficulty()
EntityDamageSource
setThorns()
java.lang.String
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 Detail
-
entity
@Nullable protected final Entity entity
-
isThorns
private boolean isThorns
-
-
Constructor Detail
-
EntityDamageSource
public EntityDamageSource(java.lang.String p_i1567_1_, @Nullable Entity p_i1567_2_)
-
-
Method Detail
-
setThorns
public EntityDamageSource setThorns()
-
isThorns
public boolean isThorns()
-
getEntity
@Nullable public Entity getEntity()
- Overrides:
getEntity
in classDamageSource
-
getLocalizedDeathMessage
public ITextComponent getLocalizedDeathMessage(LivingEntity p_151519_1_)
- Overrides:
getLocalizedDeathMessage
in classDamageSource
-
scalesWithDifficulty
public boolean scalesWithDifficulty()
- Overrides:
scalesWithDifficulty
in classDamageSource
-
getSourcePosition
@Nullable public Vector3d getSourcePosition()
- Overrides:
getSourcePosition
in classDamageSource
-
toString
public java.lang.String toString()
- Overrides:
toString
in classDamageSource
-
-