net.minecraft.world.damagesource

public class DamageSource

baw
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 boolean
D
bypassEnchantments
field_39449
bypassesProtection
f_238168_
private float
E
exhaustion
field_5845
exhaustion
f_19330_
private boolean
F
isFireSource
field_5866
fire
f_19300_
private boolean
G
isProjectile
field_5853
projectile
f_19301_
private boolean
H
scalesWithDifficulty
field_5864
scaleWithDifficulty
f_19302_
private boolean
I
isMagic
field_5851
magic
f_19303_
private boolean
J
isExplosion
field_5862
explosive
f_19304_
private boolean
K
isFall
field_28399
fromFalling
f_146700_
private boolean
L
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(bcc arg0)
sting(LivingEntity arg0)
method_21748(class_1309 arg0)
sting(LivingEntity attacker)
m_19364_(C_524_ p_19365_)
public static DamageSource
c(bcc arg0)
mobAttack(LivingEntity arg0)
method_5511(class_1309 arg0)
mob(LivingEntity attacker)
m_19370_(C_524_ p_19371_)
public static DamageSource
a(bbn arg0, bcc 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(buc arg0)
playerAttack(Player arg0)
method_5532(class_1657 arg0)
player(PlayerEntity attacker)
m_19344_(C_1141_ p_19345_)
public static DamageSource
a(bui arg0, bbn 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_)
public static DamageSource
a(bbn arg0, bbn 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(bup arg0, bbn 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(buo arg0, bbn 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_)
public static DamageSource
a(bvh arg0, bbn 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(bbn arg0, bbn 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_)
public static DamageSource
c(bbn arg0, bbn 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(bbn arg0)
thorns(Entity arg0)
method_5513(class_1297 arg0)
thorns(Entity attacker)
m_19335_(C_507_ p_19336_)
public static DamageSource
a(cgp arg0)
explosion(Explosion arg0)
method_5531(class_1927 arg0)
explosion(Explosion explosion)
m_19358_(C_1578_ p_19359_)
public static DamageSource
d(bcc arg0)
explosion(LivingEntity arg0)
method_5512(class_1309 arg0)
explosion(LivingEntity attacker)
m_19373_(C_524_ p_19374_)
public static DamageSource
b(bbn arg0)
sonicBoom(Entity arg0)
method_43964(class_1297 arg0)
sonicBoom(Entity attacker)
m_216876_(C_507_ p_216877_)
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_()
public DamageSource
e()
setExplosion()
method_5518()
setExplosive()
m_19375_()
public boolean
f()
isBypassArmor()
method_5537()
bypassesArmor()
m_19376_()
public boolean
g()
isDamageHelmet()
method_32872()
isFallingBlock()
m_146705_()
public float
h()
getFoodExhaustion()
method_5528()
getExhaustion()
m_19377_()
public boolean
i()
isBypassInvul()
method_5538()
isOutOfWorld()
m_19378_()
public boolean
j()
isBypassMagic()
method_5504()
isUnblockable()
m_19379_()
public boolean
k()
isBypassEnchantments()
method_44327()
bypassesProtection()
m_238340_()
public Entity
l()
getDirectEntity()
method_5526()
getSource()
m_7640_()
public Entity
m()
getEntity()
method_5529()
getAttacker()
m_7639_()
protected DamageSource
n()
bypassArmor()
method_5508()
setBypassesArmor()
m_19380_()
protected DamageSource
o()
damageHelmet()
method_32873()
setFallingBlock()
m_146706_()
protected DamageSource
p()
bypassInvul()
method_5505()
setOutOfWorld()
m_19381_()
protected DamageSource
q()
bypassMagic()
method_5509()
setUnblockable()
m_19382_()
protected DamageSource
r()
bypassEnchantments()
method_44328()
setBypassesProtection()
m_238403_()
protected DamageSource
s()
setIsFire()
method_5507()
setFire()
m_19383_()
public DamageSource
t()
setNoAggro()
method_37353()
setNeutral()
m_181120_()
public Component
a(bcc arg0)
getLocalizedDeathMessage(LivingEntity arg0)
method_5506(class_1309 arg0)
getDeathMessage(LivingEntity entity)
m_6157_(C_524_ arg0)
public boolean
u()
isFire()
method_5534()
isFire()
m_19384_()
public boolean
v()
isNoAggro()
method_37354()
isNeutral()
m_181121_()
public String
w()
getMsgId()
method_5525()
getName()
m_19385_()
public DamageSource
x()
setScalesWithDifficulty()
method_5516()
setScaledWithDifficulty()
m_19386_()
public boolean
y()
scalesWithDifficulty()
method_5514()
isScaledWithDifficulty()
m_7986_()
public boolean
z()
isMagic()
method_5527()
isMagic()
m_19387_()
public DamageSource
A()
setMagic()
method_5515()
setUsesMagic()
m_19389_()
public boolean
B()
isFall()
method_33329()
isFromFalling()
m_146707_()
public DamageSource
C()
setIsFall()
method_33330()
setFromFalling()
m_146708_()
public boolean
D()
isCreativePlayer()
method_5530()
isSourceCreativePlayer()
m_19390_()
public Vec3
E()
getSourcePosition()
method_5510()
getPosition()
m_7270_()