net.minecraft.world.damagesource

public class DamageSource

anw
net.minecraft.world.damagesource.DamageSource
net.minecraft.class_1282
net.minecraft.entity.damage.DamageSource
net.minecraft.util.DamageSource
net.minecraft.server.v1_16_R1.DamageSource

Field summary

Modifier and TypeField
public static final DamageSource
a
IN_FIRE
field_5867
IN_FIRE
field_76372_a
FIRE
public static final DamageSource
b
LIGHTNING_BOLT
field_5861
LIGHTNING_BOLT
field_180137_b
LIGHTNING
public static final DamageSource
c
ON_FIRE
field_5854
ON_FIRE
field_76370_b
BURN
public static final DamageSource
d
LAVA
field_5863
LAVA
field_76371_c
LAVA
public static final DamageSource
e
HOT_FLOOR
field_5858
HOT_FLOOR
field_190095_e
HOT_FLOOR
public static final DamageSource
f
IN_WALL
field_5855
IN_WALL
field_76368_d
STUCK
public static final DamageSource
g
CRAMMING
field_5844
CRAMMING
field_191291_g
CRAMMING
public static final DamageSource
h
DROWN
field_5859
DROWN
field_76369_e
DROWN
public static final DamageSource
i
STARVE
field_5852
STARVE
field_76366_f
STARVE
public static final DamageSource
j
CACTUS
field_5848
CACTUS
field_76367_g
CACTUS
public static final DamageSource
k
FALL
field_5868
FALL
field_76379_h
FALL
public static final DamageSource
l
FLY_INTO_WALL
field_5843
FLY_INTO_WALL
field_188406_j
FLY_INTO_WALL
public static final DamageSource
m
OUT_OF_WORLD
field_5849
OUT_OF_WORLD
field_76380_i
OUT_OF_WORLD
public static final DamageSource
n
GENERIC
field_5869
GENERIC
field_76377_j
GENERIC
public static final DamageSource
o
MAGIC
field_5846
MAGIC
field_76376_m
MAGIC
public static final DamageSource
p
WITHER
field_5850
WITHER
field_82727_n
WITHER
public static final DamageSource
q
ANVIL
field_5865
ANVIL
field_82728_o
ANVIL
public static final DamageSource
r
FALLING_BLOCK
field_5847
FALLING_BLOCK
field_82729_p
FALLING_BLOCK
public static final DamageSource
s
DRAGON_BREATH
field_5856
DRAGON_BREATH
field_188407_q
DRAGON_BREATH
public static final DamageSource
t
DRY_OUT
field_5842
DRYOUT
field_205132_u
DRYOUT
public static final DamageSource
u
SWEET_BERRY_BUSH
field_16992
SWEET_BERRY_BUSH
field_220302_v
SWEET_BERRY_BUSH
private boolean
w
bypassArmor
field_5840
bypassesArmor
field_76374_o
private boolean
x
bypassInvul
field_5857
outOfWorld
field_76385_p
private boolean
y
bypassMagic
field_5839
unblockable
field_151520_r
private float
z
exhaustion
field_5845
exhaustion
field_76384_q
private boolean
A
isFireSource
field_5866
fire
field_76383_r
private boolean
B
isProjectile
field_5853
projectile
field_76382_s
private boolean
C
scalesWithDifficulty
field_5864
scaleWithDifficulty
field_76381_t
private boolean
D
isMagic
field_5851
magic
field_82730_x
private boolean
E
isExplosion
field_5862
explosive
field_76378_k
public final String
v
msgId
field_5841
name
field_76373_n
translationIndex

Constructor summary

ModifierConstructor
protected (String name)

Method summary

Modifier and TypeMethod
public static DamageSource
b(aoy arg0)
sting(LivingEntity arg0)
method_21748(class_1309 arg0)
sting(LivingEntity attacker)
func_226252_a_(LivingEntity arg0)
public static DamageSource
c(aoy arg0)
mobAttack(LivingEntity arg0)
method_5511(class_1309 arg0)
mob(LivingEntity attacker)
func_76358_a(LivingEntity arg0)
mobAttack(EntityLiving arg0)
public static DamageSource
a(aom arg0, aoy arg1)
indirectMobAttack(Entity arg0, LivingEntity arg1)
method_5519(class_1297 arg0, class_1309 arg1)
mobProjectile(Entity projectile, LivingEntity attacker)
func_188403_a(Entity arg0, LivingEntity arg1)
public static DamageSource
a(bec arg0)
playerAttack(Player arg0)
method_5532(class_1657 arg0)
player(PlayerEntity attacker)
func_76365_a(PlayerEntity arg0)
playerAttack(EntityHuman arg0)
public static DamageSource
a(beg arg0, aom arg1)
arrow(AbstractArrow arg0, Entity arg1)
method_5522(class_1665 arg0, class_1297 arg1)
arrow(PersistentProjectileEntity projectile, Entity attacker)
func_76353_a(AbstractArrowEntity arg0, Entity arg1)
arrow(EntityArrow arg0, Entity arg1)
public static DamageSource
a(aom arg0, aom arg1)
trident(Entity arg0, Entity arg1)
method_5520(class_1297 arg0, class_1297 arg1)
trident(Entity trident, Entity attacker)
func_203096_a(Entity arg0, Entity arg1)
public static DamageSource
a(ben arg0, aom arg1)
fireworks(FireworkRocketEntity arg0, Entity arg1)
method_24907(class_1671 arg0, class_1297 arg1)
firework(FireworkRocketEntity firework, Entity attacker)
func_233548_a_(FireworkRocketEntity arg0, Entity arg1)
public static DamageSource
a(bem arg0, aom arg1)
fireball(Fireball arg0, Entity arg1)
method_5521(class_3855 arg0, class_1297 arg1)
fireball(AbstractFireballEntity fireball, Entity attacker)
func_233547_a_(AbstractFireballEntity arg0, Entity arg1)
fireball(EntityFireballFireball arg0, Entity arg1)
public static DamageSource
a(bff arg0, aom arg1)
witherSkull(WitherSkull arg0, Entity arg1)
method_29238(class_1687 arg0, class_1297 arg1)
witherSkull(WitherSkullEntity witherSkull, Entity attacker)
func_233549_a_(WitherSkullEntity arg0, Entity arg1)
public static DamageSource
b(aom arg0, aom arg1)
thrown(Entity arg0, Entity arg1)
method_5524(class_1297 arg0, class_1297 arg1)
thrownProjectile(Entity projectile, Entity attacker)
func_76356_a(Entity arg0, Entity arg1)
projectile(Entity arg0, Entity arg1)
public static DamageSource
c(aom arg0, aom arg1)
indirectMagic(Entity arg0, Entity arg1)
method_5536(class_1297 arg0, class_1297 arg1)
magic(Entity magic, Entity attacker)
func_76354_b(Entity arg0, Entity arg1)
public static DamageSource
a(aom arg0)
thorns(Entity arg0)
method_5513(class_1297 arg0)
thorns(Entity attacker)
func_92087_a(Entity arg0)
public static DamageSource
a(bpt arg0)
explosion(Explosion arg0)
method_5531(class_1927 arg0)
explosion(Explosion explosion)
func_94539_a(Explosion arg0)
explosion(Explosion arg0)
public static DamageSource
d(aoy arg0)
explosion(LivingEntity arg0)
method_5512(class_1309 arg0)
explosion(LivingEntity attacker)
func_188405_b(LivingEntity arg0)
public static DamageSource
a()
badRespawnPointExplosion()
method_5523()
badRespawnPoint()
func_233546_a_()
public boolean
b()
isProjectile()
method_5533()
isProjectile()
func_76352_a()
public DamageSource
c()
setProjectile()
method_5517()
setProjectile()
func_76349_b()
public boolean
d()
isExplosion()
method_5535()
isExplosive()
func_94541_c()
isExplosion()
public DamageSource
e()
setExplosion()
method_5518()
setExplosive()
func_94540_d()
setExplosion()
public boolean
f()
isBypassArmor()
method_5537()
bypassesArmor()
func_76363_c()
ignoresArmor()
public float
g()
getFoodExhaustion()
method_5528()
getExhaustion()
func_76345_d()
getExhaustionCost()
public boolean
h()
isBypassInvul()
method_5538()
isOutOfWorld()
func_76357_e()
ignoresInvulnerability()
public boolean
i()
isBypassMagic()
method_5504()
isUnblockable()
func_151517_h()
isStarvation()
public Entity
j()
getDirectEntity()
method_5526()
getSource()
func_76364_f()
public Entity
k()
getEntity()
method_5529()
getAttacker()
func_76346_g()
getEntity()
protected DamageSource
l()
bypassArmor()
method_5508()
setBypassesArmor()
func_76348_h()
setIgnoreArmor()
protected DamageSource
m()
bypassInvul()
method_5505()
setOutOfWorld()
func_76359_i()
setIgnoresInvulnerability()
protected DamageSource
n()
bypassMagic()
method_5509()
setUnblockable()
func_151518_m()
setStarvation()
protected DamageSource
o()
setIsFire()
method_5507()
setFire()
func_76361_j()
setFire()
public Component
a(aoy arg0)
getLocalizedDeathMessage(LivingEntity arg0)
method_5506(class_1309 arg0)
getDeathMessage(LivingEntity entity)
func_151519_b(LivingEntity arg0)
getLocalizedDeathMessage(EntityLiving arg0)
public boolean
p()
isFire()
method_5534()
isFire()
func_76347_k()
isFire()
public String
q()
getMsgId()
method_5525()
getName()
func_76355_l()
public DamageSource
r()
setScalesWithDifficulty()
method_5516()
setScaledWithDifficulty()
func_76351_m()
public boolean
s()
scalesWithDifficulty()
method_5514()
isScaledWithDifficulty()
func_76350_n()
public boolean
t()
isMagic()
method_5527()
getMagic()
func_82725_o()
isMagic()
public DamageSource
u()
setMagic()
method_5515()
setUsesMagic()
func_82726_p()
setMagic()
public boolean
v()
isCreativePlayer()
method_5530()
isSourceCreativePlayer()
func_180136_u()
public Vec3
w()
getSourcePosition()
method_5510()
getPosition()
func_188404_v()