net.minecraft.world.damagesource

public class DamageSource

bcz
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
DRAGON_BREATH
field_5856
DRAGON_BREATH
f_19323_
public static final DamageSource
r
DRY_OUT
field_5842
DRYOUT
f_19324_
public static final DamageSource
s
SWEET_BERRY_BUSH
field_16992
SWEET_BERRY_BUSH
f_19325_
public static final DamageSource
t
FREEZE
field_27856
FREEZE
f_146701_
public static final DamageSource
u
STALAGMITE
field_28400
STALAGMITE
f_146703_
private boolean
w
damageHelmet
field_28100
fallingBlock
f_146704_
private boolean
x
bypassArmor
field_5840
bypassesArmor
f_19327_
private boolean
y
bypassInvul
field_5857
outOfWorld
f_19328_
private boolean
z
bypassMagic
field_5839
unblockable
f_19329_
private boolean
A
bypassEnchantments
field_39449
bypassesProtection
f_238168_
private float
B
exhaustion
field_5845
exhaustion
f_19330_
private boolean
C
isFireSource
field_5866
fire
f_19300_
private boolean
D
isProjectile
field_5853
projectile
f_19301_
private boolean
E
scalesWithDifficulty
field_5864
scaleWithDifficulty
f_19302_
private boolean
F
isMagic
field_5851
magic
f_19303_
private boolean
G
isExplosion
field_5862
explosive
f_19304_
private boolean
H
isFall
field_28399
fromFalling
f_146700_
private boolean
I
noAggro
field_34004
neutral
f_181119_
public final String
v
msgId
field_5841
name
f_19326_

Constructor summary

ModifierConstructor
protected (String name)

Method summary

Modifier and TypeMethod
public static DamageSource
a(bdr arg0)
fallingBlock(Entity arg0)
method_46392(class_1297 arg0)
fallingBlock(Entity attacker)
m_253038_(C_507_ p_254272_)
public static DamageSource
b(bdr arg0)
anvil(Entity arg0)
method_46393(class_1297 arg0)
anvil(Entity attacker)
m_253070_(C_507_ p_254373_)
public static DamageSource
c(bdr arg0)
fallingStalactite(Entity arg0)
method_46394(class_1297 arg0)
fallingStalactite(Entity attacker)
m_253195_(C_507_ p_253863_)
public static DamageSource
b(beg arg0)
sting(LivingEntity arg0)
method_21748(class_1309 arg0)
sting(LivingEntity attacker)
m_19364_(C_524_ p_19365_)
public static DamageSource
c(beg arg0)
mobAttack(LivingEntity arg0)
method_5511(class_1309 arg0)
mob(LivingEntity attacker)
m_19370_(C_524_ p_19371_)
public static DamageSource
a(bdr arg0, beg 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(bwp arg0)
playerAttack(Player arg0)
method_5532(class_1657 arg0)
player(PlayerEntity attacker)
m_19344_(C_1141_ p_19345_)
public static DamageSource
a(bwv arg0, bdr 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(bdr arg0, bdr 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(bxc arg0, bdr 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(bxb arg0, bdr 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(bxu arg0, bdr 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(bdr arg0, bdr 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(bdr arg0, bdr 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
d(bdr arg0)
thorns(Entity arg0)
method_5513(class_1297 arg0)
thorns(Entity attacker)
m_19335_(C_507_ p_19336_)
public static DamageSource
a(cjo arg0)
explosion(Explosion arg0)
method_5531(class_1927 arg0)
explosion(Explosion explosion)
m_19358_(C_1578_ p_19359_)
public static DamageSource
d(bdr arg0, bdr arg1)
explosion(Entity arg0, Entity arg1)
method_5512(class_1297 arg0, class_1297 arg1)
explosion(Entity explosion, Entity attacker)
m_252735_(C_507_ p_253770_, C_507_ p_253659_)
public static DamageSource
e(bdr arg0)
sonicBoom(Entity arg0)
method_43964(class_1297 arg0)
sonicBoom(Entity attacker)
m_216876_(C_507_ p_216877_)
public static DamageSource
a(eae arg0)
badRespawnPointExplosion(Vec3 arg0)
method_5523(class_243 arg0)
badRespawnPoint(Vec3d pos)
m_253139_(C_3046_ p_253714_)
public boolean
a()
isProjectile()
method_5533()
isProjectile()
m_19360_()
public DamageSource
b()
setProjectile()
method_5517()
setProjectile()
m_19366_()
public boolean
c()
isExplosion()
method_5535()
isExplosive()
m_19372_()
public DamageSource
d()
setExplosion()
method_5518()
setExplosive()
m_19375_()
public boolean
e()
isBypassArmor()
method_5537()
bypassesArmor()
m_19376_()
public boolean
f()
isDamageHelmet()
method_32872()
isFallingBlock()
m_146705_()
public float
g()
getFoodExhaustion()
method_5528()
getExhaustion()
m_19377_()
public boolean
h()
isBypassInvul()
method_5538()
isOutOfWorld()
m_19378_()
public boolean
i()
isBypassMagic()
method_5504()
isUnblockable()
m_19379_()
public boolean
j()
isBypassEnchantments()
method_44327()
bypassesProtection()
m_238340_()
public Entity
k()
getDirectEntity()
method_5526()
getSource()
m_7640_()
public Entity
l()
getEntity()
method_5529()
getAttacker()
m_7639_()
protected DamageSource
m()
bypassArmor()
method_5508()
setBypassesArmor()
m_19380_()
protected DamageSource
n()
damageHelmet()
method_32873()
setFallingBlock()
m_146706_()
protected DamageSource
o()
bypassInvul()
method_5505()
setOutOfWorld()
m_19381_()
protected DamageSource
p()
bypassMagic()
method_5509()
setUnblockable()
m_19382_()
protected DamageSource
q()
bypassEnchantments()
method_44328()
setBypassesProtection()
m_238403_()
protected DamageSource
r()
setIsFire()
method_5507()
setFire()
m_19383_()
public DamageSource
s()
setNoAggro()
method_37353()
setNeutral()
m_181120_()
public Component
a(beg arg0)
getLocalizedDeathMessage(LivingEntity arg0)
method_5506(class_1309 arg0)
getDeathMessage(LivingEntity entity)
m_6157_(C_524_ arg0)
public boolean
t()
isFire()
method_5534()
isFire()
m_19384_()
public boolean
u()
isNoAggro()
method_37354()
isNeutral()
m_181121_()
public String
v()
getMsgId()
method_5525()
getName()
m_19385_()
public DamageSource
w()
setScalesWithDifficulty()
method_5516()
setScaledWithDifficulty()
m_19386_()
public boolean
x()
scalesWithDifficulty()
method_5514()
isScaledWithDifficulty()
m_7986_()
public boolean
y()
isMagic()
method_5527()
isMagic()
m_19387_()
public DamageSource
z()
setMagic()
method_5515()
setUsesMagic()
m_19389_()
public boolean
A()
isFall()
method_33329()
isFromFalling()
m_146707_()
public DamageSource
B()
setIsFall()
method_33330()
setFromFalling()
m_146708_()
public boolean
C()
isCreativePlayer()
method_5530()
isSourceCreativePlayer()
m_19390_()
public Vec3
D()
getSourcePosition()
method_5510()
getPosition()
m_7270_()