public class EntityDamageSource extends DamageSource
Modifier and Type | Field and Description |
---|---|
protected Entity |
damageSourceEntity |
private boolean |
isThornsDamage |
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
Constructor and Description |
---|
EntityDamageSource(java.lang.String damageTypeIn,
Entity damageSourceEntityIn) |
Modifier and Type | Method and Description |
---|---|
Vec3d |
getDamageLocation() |
ITextComponent |
getDeathMessage(LivingEntity entityLivingBaseIn) |
boolean |
getIsThornsDamage() |
Entity |
getTrueSource() |
boolean |
isDifficultyScaled() |
EntityDamageSource |
setIsThornsDamage() |
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
private boolean isThornsDamage
public EntityDamageSource(java.lang.String damageTypeIn, @Nullable Entity damageSourceEntityIn)
public EntityDamageSource setIsThornsDamage()
public boolean getIsThornsDamage()
@Nullable public Entity getTrueSource()
getTrueSource
in class DamageSource
public ITextComponent getDeathMessage(LivingEntity entityLivingBaseIn)
getDeathMessage
in class DamageSource
public boolean isDifficultyScaled()
isDifficultyScaled
in class DamageSource
@Nullable public Vec3d getDamageLocation()
getDamageLocation
in class DamageSource