Package net.minecraft.util
Class IndirectEntityDamageSource
- java.lang.Object
-
- net.minecraft.util.DamageSource
-
- net.minecraft.util.EntityDamageSource
-
- net.minecraft.util.IndirectEntityDamageSource
-
public class IndirectEntityDamageSource extends EntityDamageSource
-
-
Field Summary
Fields Modifier and Type Field Description private Entity
owner
-
Fields inherited from class net.minecraft.util.EntityDamageSource
entity
-
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 IndirectEntityDamageSource(java.lang.String p_i1568_1_, Entity p_i1568_2_, Entity p_i1568_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entity
getDirectEntity()
Entity
getEntity()
ITextComponent
getLocalizedDeathMessage(LivingEntity p_151519_1_)
-
Methods inherited from class net.minecraft.util.EntityDamageSource
getSourcePosition, isThorns, scalesWithDifficulty, setThorns, toString
-
Methods inherited from class net.minecraft.util.DamageSource
arrow, badRespawnPointExplosion, bypassArmor, bypassInvul, bypassMagic, explosion, explosion, fireball, fireworks, 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
-
owner
private final Entity owner
-
-
Method Detail
-
getDirectEntity
@Nullable public Entity getDirectEntity()
- Overrides:
getDirectEntity
in classDamageSource
-
getEntity
@Nullable public Entity getEntity()
- Overrides:
getEntity
in classEntityDamageSource
-
getLocalizedDeathMessage
public ITextComponent getLocalizedDeathMessage(LivingEntity p_151519_1_)
- Overrides:
getLocalizedDeathMessage
in classEntityDamageSource
-
-