public class EntityDamageSource extends DamageSource
修飾子とタイプ | フィールドと説明 |
---|---|
protected Entity |
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
コンストラクタと説明 |
---|
EntityDamageSource(java.lang.String damageTypeIn,
Entity damageSourceEntityIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
Vec3d |
getDamageLocation()
Gets the location from which the damage originates.
|
ITextComponent |
getDeathMessage(LivingEntity entityLivingBaseIn)
Gets the death message that is displayed when the player dies
|
boolean |
getIsThornsDamage() |
Entity |
getTrueSource()
Retrieves the true causer of the damage, e.g. the player who fired an arrow, the shulker who fired the bullet,
etc.
|
boolean |
isDifficultyScaled()
Return whether this damage source will have its damage amount scaled based on the current difficulty.
|
EntityDamageSource |
setIsThornsDamage()
Sets this EntityDamageSource as originating from Thorns armor
|
canHarmInCreative, causeArrowDamage, causeExplosionDamage, causeExplosionDamage, causeFireballDamage, causeIndirectDamage, causeIndirectMagicDamage, causeMobDamage, causePlayerDamage, causeThornsDamage, causeThrownDamage, causeTridentDamage, func_226252_a_, getDamageType, getHungerDamage, getImmediateSource, isCreativePlayer, isDamageAbsolute, isExplosion, isFireDamage, isMagicDamage, isProjectile, isUnblockable, netherBedExplosion, setDamageAllowedInCreativeMode, setDamageBypassesArmor, setDamageIsAbsolute, setDifficultyScaled, setExplosion, setFireDamage, setMagicDamage, setProjectile
@Nullable protected final Entity damageSourceEntity
public EntityDamageSource(java.lang.String damageTypeIn, @Nullable Entity damageSourceEntityIn)
public EntityDamageSource setIsThornsDamage()
public boolean getIsThornsDamage()
@Nullable public Entity getTrueSource()
getTrueSource
クラス内 DamageSource
public ITextComponent getDeathMessage(LivingEntity entityLivingBaseIn)
getDeathMessage
クラス内 DamageSource
public boolean isDifficultyScaled()
isDifficultyScaled
クラス内 DamageSource
@Nullable public Vec3d getDamageLocation()
getDamageLocation
クラス内 DamageSource