Package net.minecraft.world.damagesource
Class DamageSource
java.lang.Object
net.minecraft.world.damagesource.DamageSource
- Direct Known Subclasses:
BadRespawnPointDamage
,EntityDamageSource
-
Field Summary
Modifier and TypeFieldDescriptionstatic DamageSource
private boolean
private boolean
private boolean
static DamageSource
static DamageSource
private boolean
static DamageSource
static DamageSource
static DamageSource
private float
static DamageSource
static DamageSource
static DamageSource
static DamageSource
static DamageSource
static DamageSource
static DamageSource
static DamageSource
static DamageSource
private boolean
private boolean
private boolean
private boolean
private boolean
static DamageSource
static DamageSource
static DamageSource
private boolean
static DamageSource
static DamageSource
private boolean
static DamageSource
static DamageSource
static DamageSource
static DamageSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DamageSource
arrow(AbstractArrow p_19347_, Entity p_19348_)
static DamageSource
static DamageSource
explosion(LivingEntity p_19374_)
static DamageSource
static DamageSource
static DamageSource
fireworks(FireworkRocketEntity p_19353_, Entity p_19354_)
float
getLocalizedDeathMessage(LivingEntity p_19343_)
getMsgId()
static DamageSource
indirectMagic(Entity p_19368_, Entity p_19369_)
static DamageSource
indirectMobAttack(Entity p_19341_, LivingEntity p_19342_)
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isFall()
boolean
isFire()
boolean
isMagic()
boolean
boolean
static DamageSource
mobAttack(LivingEntity p_19371_)
static DamageSource
playerAttack(Player p_19345_)
boolean
setMagic()
static DamageSource
sting(LivingEntity p_19365_)
static DamageSource
static DamageSource
toString()
static DamageSource
static DamageSource
witherSkull(WitherSkull p_19356_, Entity p_19357_)
-
Field Details
-
IN_FIRE
-
LIGHTNING_BOLT
-
ON_FIRE
-
LAVA
-
HOT_FLOOR
-
IN_WALL
-
CRAMMING
-
DROWN
-
STARVE
-
CACTUS
-
FALL
-
FLY_INTO_WALL
-
OUT_OF_WORLD
-
GENERIC
-
MAGIC
-
WITHER
-
ANVIL
-
FALLING_BLOCK
-
DRAGON_BREATH
-
DRY_OUT
-
SWEET_BERRY_BUSH
-
FREEZE
-
FALLING_STALACTITE
-
STALAGMITE
-
damageHelmet
private boolean damageHelmet -
bypassArmor
private boolean bypassArmor -
bypassInvul
private boolean bypassInvul -
bypassMagic
private boolean bypassMagic -
exhaustion
private float exhaustion -
isFireSource
private boolean isFireSource -
isProjectile
private boolean isProjectile -
scalesWithDifficulty
private boolean scalesWithDifficulty -
isMagic
private boolean isMagic -
isExplosion
private boolean isExplosion -
isFall
private boolean isFall -
noAggro
private boolean noAggro -
msgId
-
-
Constructor Details
-
DamageSource
-
-
Method Details
-
sting
-
mobAttack
-
indirectMobAttack
-
playerAttack
-
arrow
-
trident
-
fireworks
-
fireball
-
witherSkull
-
thrown
-
indirectMagic
-
thorns
-
explosion
-
explosion
-
badRespawnPointExplosion
-
toString
-
isProjectile
public boolean isProjectile() -
setProjectile
-
isExplosion
public boolean isExplosion() -
setExplosion
-
isBypassArmor
public boolean isBypassArmor() -
isDamageHelmet
public boolean isDamageHelmet() -
getFoodExhaustion
public float getFoodExhaustion() -
isBypassInvul
public boolean isBypassInvul() -
isBypassMagic
public boolean isBypassMagic() -
getDirectEntity
-
getEntity
-
bypassArmor
-
damageHelmet
-
bypassInvul
-
bypassMagic
-
setIsFire
-
setNoAggro
-
getLocalizedDeathMessage
-
isFire
public boolean isFire() -
isNoAggro
public boolean isNoAggro() -
getMsgId
-
setScalesWithDifficulty
-
scalesWithDifficulty
public boolean scalesWithDifficulty() -
isMagic
public boolean isMagic() -
setMagic
-
isFall
public boolean isFall() -
setIsFall
-
isCreativePlayer
public boolean isCreativePlayer() -
getSourcePosition
-