Package net.minecraft.world.damagesource
Class DamageSource
java.lang.Object
net.minecraft.world.damagesource.DamageSource
- Direct Known Subclasses:
EntityDamageSource
,PointDamageSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private boolean
private boolean
static final DamageSource
static final DamageSource
private boolean
static final DamageSource
static final DamageSource
static final DamageSource
private float
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
private boolean
private boolean
private boolean
private boolean
private boolean
static final DamageSource
static final DamageSource
static final DamageSource
final String
private boolean
static final DamageSource
static final DamageSource
private boolean
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DamageSource
static DamageSource
arrow
(AbstractArrow p_19347_, Entity p_19348_) static DamageSource
badRespawnPointExplosion
(Vec3 p_253714_) static DamageSource
static DamageSource
static DamageSource
fallingBlock
(Entity p_254272_) static DamageSource
fallingStalactite
(Entity p_253863_) 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
boolean
isFall()
boolean
isFire()
boolean
isMagic()
boolean
boolean
static DamageSource
mobAttack
(LivingEntity p_19371_) static DamageSource
playerAttack
(Player p_19345_) boolean
setMagic()
static DamageSource
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
-
DRAGON_BREATH
-
DRY_OUT
-
SWEET_BERRY_BUSH
-
FREEZE
-
STALAGMITE
-
damageHelmet
private boolean damageHelmet -
bypassArmor
private boolean bypassArmor -
bypassInvul
private boolean bypassInvul -
bypassMagic
private boolean bypassMagic -
bypassEnchantments
private boolean bypassEnchantments -
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
-
fallingBlock
-
anvil
-
fallingStalactite
-
sting
-
mobAttack
-
indirectMobAttack
-
playerAttack
-
arrow
-
trident
-
fireworks
-
fireball
-
witherSkull
-
thrown
-
indirectMagic
-
thorns
-
explosion
-
explosion
-
sonicBoom
-
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() -
isBypassEnchantments
public boolean isBypassEnchantments() -
getDirectEntity
-
getEntity
-
bypassArmor
-
damageHelmet
-
bypassInvul
-
bypassMagic
-
bypassEnchantments
-
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
-