public class IndirectEntityDamageSource extends EntityDamageSource
damageSourceEntity
ANVIL, CACTUS, CRAMMING, damageType, DRAGON_BREATH, DROWN, DRYOUT, FALL, FALLING_BLOCK, FIREWORKS, FLY_INTO_WALL, GENERIC, HOT_FLOOR, IN_FIRE, IN_WALL, LAVA, LIGHTNING_BOLT, MAGIC, ON_FIRE, OUT_OF_WORLD, STARVE, SWEET_BERRY_BUSH, WITHER
コンストラクタと説明 |
---|
IndirectEntityDamageSource(java.lang.String damageTypeIn,
Entity source,
Entity indirectEntityIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
ITextComponent |
getDeathMessage(LivingEntity entityLivingBaseIn)
Gets the death message that is displayed when the player dies
|
Entity |
getImmediateSource()
Retrieves the immediate causer of the damage, e.g. the arrow entity, not its shooter
|
Entity |
getTrueSource()
Retrieves the true causer of the damage, e.g. the player who fired an arrow, the shulker who fired the bullet,
etc.
|
getDamageLocation, getIsThornsDamage, isDifficultyScaled, setIsThornsDamage
canHarmInCreative, causeArrowDamage, causeExplosionDamage, causeExplosionDamage, causeFireballDamage, causeIndirectDamage, causeIndirectMagicDamage, causeMobDamage, causePlayerDamage, causeThornsDamage, causeThrownDamage, causeTridentDamage, func_226252_a_, getDamageType, getHungerDamage, isCreativePlayer, isDamageAbsolute, isExplosion, isFireDamage, isMagicDamage, isProjectile, isUnblockable, netherBedExplosion, setDamageAllowedInCreativeMode, setDamageBypassesArmor, setDamageIsAbsolute, setDifficultyScaled, setExplosion, setFireDamage, setMagicDamage, setProjectile
@Nullable public Entity getImmediateSource()
getImmediateSource
クラス内 DamageSource
@Nullable public Entity getTrueSource()
getTrueSource
クラス内 EntityDamageSource
public ITextComponent getDeathMessage(LivingEntity entityLivingBaseIn)
getDeathMessage
クラス内 EntityDamageSource