net.minecraft.world.damagesource

public class DamageSource

asp
net.minecraft.world.damagesource.DamageSource
net.minecraft.class_1282
net.minecraft.entity.damage.DamageSource
net.minecraft.src.C_489_
net.minecraft.world.damagesource.DamageSource

Field summary

Modifier and TypeField
public static final DamageSource
a
IN_FIRE
field_5867
IN_FIRE
f_19305_
public static final DamageSource
b
LIGHTNING_BOLT
field_5861
LIGHTNING_BOLT
f_19306_
public static final DamageSource
c
ON_FIRE
field_5854
ON_FIRE
f_19307_
public static final DamageSource
d
LAVA
field_5863
LAVA
f_19308_
public static final DamageSource
e
HOT_FLOOR
field_5858
HOT_FLOOR
f_19309_
public static final DamageSource
f
IN_WALL
field_5855
IN_WALL
f_19310_
public static final DamageSource
g
CRAMMING
field_5844
CRAMMING
f_19311_
public static final DamageSource
h
DROWN
field_5859
DROWN
f_19312_
public static final DamageSource
i
STARVE
field_5852
STARVE
f_19313_
public static final DamageSource
j
CACTUS
field_5848
CACTUS
f_19314_
public static final DamageSource
k
FALL
field_5868
FALL
f_19315_
public static final DamageSource
l
FLY_INTO_WALL
field_5843
FLY_INTO_WALL
f_19316_
public static final DamageSource
m
OUT_OF_WORLD
field_5849
OUT_OF_WORLD
f_19317_
public static final DamageSource
n
GENERIC
field_5869
GENERIC
f_19318_
public static final DamageSource
o
MAGIC
field_5846
MAGIC
f_19319_
public static final DamageSource
p
WITHER
field_5850
WITHER
f_19320_
public static final DamageSource
q
ANVIL
field_5865
ANVIL
f_19321_
public static final DamageSource
r
FALLING_BLOCK
field_5847
FALLING_BLOCK
f_19322_
public static final DamageSource
s
DRAGON_BREATH
field_5856
DRAGON_BREATH
f_19323_
public static final DamageSource
t
DRY_OUT
field_5842
DRYOUT
f_19324_
public static final DamageSource
u
SWEET_BERRY_BUSH
field_16992
SWEET_BERRY_BUSH
f_19325_
public static final DamageSource
v
FREEZE
field_27856
FREEZE
f_146701_
public static final DamageSource
w
FALLING_STALACTITE
field_28099
FALLING_STALACTITE
f_146702_
public static final DamageSource
x
STALAGMITE
field_28400
STALAGMITE
f_146703_
private boolean
z
damageHelmet
field_28100
fallingBlock
f_146704_
private boolean
A
bypassArmor
field_5840
bypassesArmor
f_19327_
private boolean
B
bypassInvul
field_5857
outOfWorld
f_19328_
private boolean
C
bypassMagic
field_5839
unblockable
f_19329_
private float
D
exhaustion
field_5845
exhaustion
f_19330_
private boolean
E
isFireSource
field_5866
fire
f_19300_
private boolean
F
isProjectile
field_5853
projectile
f_19301_
private boolean
G
scalesWithDifficulty
field_5864
scaleWithDifficulty
f_19302_
private boolean
H
isMagic
field_5851
magic
f_19303_
private boolean
I
isExplosion
field_5862
explosive
f_19304_
private boolean
J
isFall
field_28399
fromFalling
f_146700_
private boolean
K
noAggro
field_34004
neutral
f_181119_
public final String
y
msgId
field_5841
name
f_19326_

Constructor summary

ModifierConstructor
protected (String name)

Method summary

Modifier and TypeMethod
public static DamageSource
b(att arg0)
sting(LivingEntity arg0)
method_21748(class_1309 arg0)
sting(LivingEntity attacker)
m_19364_(C_524_ p_19365_)
public static DamageSource
c(att arg0)
mobAttack(LivingEntity arg0)
method_5511(class_1309 arg0)
mob(LivingEntity attacker)
m_19370_(C_524_ p_19371_)
mobAttack(EntityLiving arg0)
public static DamageSource
a(atf arg0, att arg1)
indirectMobAttack(Entity arg0, LivingEntity arg1)
method_5519(class_1297 arg0, class_1309 arg1)
mobProjectile(Entity projectile, LivingEntity attacker)
m_19340_(C_507_ p_19341_, C_524_ p_19342_)
public static DamageSource
a(bkd arg0)
playerAttack(Player arg0)
method_5532(class_1657 arg0)
player(PlayerEntity attacker)
m_19344_(C_1141_ p_19345_)
playerAttack(EntityHuman arg0)
public static DamageSource
a(bkh arg0, atf arg1)
arrow(AbstractArrow arg0, Entity arg1)
method_5522(class_1665 arg0, class_1297 arg1)
arrow(PersistentProjectileEntity projectile, Entity attacker)
m_19346_(C_1151_ p_19347_, C_507_ p_19348_)
arrow(EntityArrow arg0, Entity arg1)
public static DamageSource
a(atf arg0, atf arg1)
trident(Entity arg0, Entity arg1)
method_5520(class_1297 arg0, class_1297 arg1)
trident(Entity trident, Entity attacker)
m_19337_(C_507_ p_19338_, C_507_ p_19339_)
public static DamageSource
a(bko arg0, atf arg1)
fireworks(FireworkRocketEntity arg0, Entity arg1)
method_24907(class_1671 arg0, class_1297 arg1)
firework(FireworkRocketEntity firework, Entity attacker)
m_19352_(C_1159_ p_19353_, C_507_ p_19354_)
public static DamageSource
a(bkn arg0, atf arg1)
fireball(Fireball arg0, Entity arg1)
method_5521(class_3855 arg0, class_1297 arg1)
fireball(AbstractFireballEntity fireball, Entity attacker)
m_19349_(C_1158_ p_19350_, C_507_ p_19351_)
fireball(EntityFireballFireball arg0, Entity arg1)
public static DamageSource
a(blg arg0, atf arg1)
witherSkull(WitherSkull arg0, Entity arg1)
method_29238(class_1687 arg0, class_1297 arg1)
witherSkull(WitherSkullEntity witherSkull, Entity attacker)
m_19355_(C_1180_ p_19356_, C_507_ p_19357_)
public static DamageSource
b(atf arg0, atf arg1)
thrown(Entity arg0, Entity arg1)
method_5524(class_1297 arg0, class_1297 arg1)
thrownProjectile(Entity projectile, Entity attacker)
m_19361_(C_507_ p_19362_, C_507_ p_19363_)
projectile(Entity arg0, Entity arg1)
public static DamageSource
c(atf arg0, atf arg1)
indirectMagic(Entity arg0, Entity arg1)
method_5536(class_1297 arg0, class_1297 arg1)
magic(Entity magic, Entity attacker)
m_19367_(C_507_ p_19368_, C_507_ p_19369_)
public static DamageSource
a(atf arg0)
thorns(Entity arg0)
method_5513(class_1297 arg0)
thorns(Entity attacker)
m_19335_(C_507_ p_19336_)
public static DamageSource
a(bwh arg0)
explosion(Explosion arg0)
method_5531(class_1927 arg0)
explosion(Explosion explosion)
m_19358_(C_1578_ p_19359_)
explosion(Explosion arg0)
public static DamageSource
d(att arg0)
explosion(LivingEntity arg0)
method_5512(class_1309 arg0)
explosion(LivingEntity attacker)
m_19373_(C_524_ p_19374_)
public static DamageSource
a()
badRespawnPointExplosion()
method_5523()
badRespawnPoint()
m_19334_()
public boolean
b()
isProjectile()
method_5533()
isProjectile()
m_19360_()
public DamageSource
c()
setProjectile()
method_5517()
setProjectile()
m_19366_()
public boolean
d()
isExplosion()
method_5535()
isExplosive()
m_19372_()
isExplosion()
public DamageSource
e()
setExplosion()
method_5518()
setExplosive()
m_19375_()
setExplosion()
public boolean
f()
isBypassArmor()
method_5537()
bypassesArmor()
m_19376_()
ignoresArmor()
public boolean
g()
isDamageHelmet()
method_32872()
isFallingBlock()
m_146705_()
public float
h()
getFoodExhaustion()
method_5528()
getExhaustion()
m_19377_()
getExhaustionCost()
public boolean
i()
isBypassInvul()
method_5538()
isOutOfWorld()
m_19378_()
ignoresInvulnerability()
public boolean
j()
isBypassMagic()
method_5504()
isUnblockable()
m_19379_()
isStarvation()
public Entity
k()
getDirectEntity()
method_5526()
getSource()
m_7640_()
public Entity
l()
getEntity()
method_5529()
getAttacker()
m_7639_()
getEntity()
protected DamageSource
m()
bypassArmor()
method_5508()
setBypassesArmor()
m_19380_()
setIgnoreArmor()
protected DamageSource
n()
damageHelmet()
method_32873()
setFallingBlock()
m_146706_()
protected DamageSource
o()
bypassInvul()
method_5505()
setOutOfWorld()
m_19381_()
setIgnoresInvulnerability()
protected DamageSource
p()
bypassMagic()
method_5509()
setUnblockable()
m_19382_()
setStarvation()
protected DamageSource
q()
setIsFire()
method_5507()
setFire()
m_19383_()
setFire()
public DamageSource
r()
setNoAggro()
method_37353()
setNeutral()
m_181120_()
public Component
a(att arg0)
getLocalizedDeathMessage(LivingEntity arg0)
method_5506(class_1309 arg0)
getDeathMessage(LivingEntity entity)
m_6157_(C_524_ arg0)
getLocalizedDeathMessage(EntityLiving arg0)
public boolean
s()
isFire()
method_5534()
isFire()
m_19384_()
isFire()
public boolean
t()
isNoAggro()
method_37354()
isNeutral()
m_181121_()
public String
u()
getMsgId()
method_5525()
getName()
m_19385_()
public DamageSource
v()
setScalesWithDifficulty()
method_5516()
setScaledWithDifficulty()
m_19386_()
public boolean
w()
scalesWithDifficulty()
method_5514()
isScaledWithDifficulty()
m_7986_()
public boolean
x()
isMagic()
method_5527()
isMagic()
m_19387_()
isMagic()
public DamageSource
y()
setMagic()
method_5515()
setUsesMagic()
m_19389_()
setMagic()
public boolean
z()
isFall()
method_33329()
isFromFalling()
m_146707_()
public DamageSource
A()
setIsFall()
method_33330()
setFromFalling()
m_146708_()
public boolean
B()
isCreativePlayer()
method_5530()
isSourceCreativePlayer()
m_19390_()
public Vec3
C()
getSourcePosition()
method_5510()
getPosition()
m_7270_()