net.minecraft.entity.damage

public class DamageSource

ry
net.minecraft.class_856
net.minecraft.entity.damage.DamageSource
net.minecraft.util.DamageSource

Field summary

Modifier and TypeField
public static final DamageSource
a
field_3128
FIRE
IN_FIRE
public static final DamageSource
b
field_11888
LIGHTNING_BOLT
LIGHTNING_BOLT
public static final DamageSource
c
field_3129
ON_FIRE
ON_FIRE
public static final DamageSource
d
field_3130
LAVA
LAVA
public static final DamageSource
e
field_15025
HOT_FLOOR
HOT_FLOOR
public static final DamageSource
f
field_3131
IN_WALL
IN_WALL
public static final DamageSource
g
field_15441
CRAMMING
CRAMMING
public static final DamageSource
h
field_3132
DROWN
DROWN
public static final DamageSource
i
field_3133
STARVE
STARVE
public static final DamageSource
j
field_3134
CACTUS
CACTUS
public static final DamageSource
k
field_3135
FALL
FALL
public static final DamageSource
l
field_14445
FLY_INTO_WALL
FLY_INTO_WALL
public static final DamageSource
m
field_3136
OUT_OF_WORLD
OUT_OF_WORLD
public static final DamageSource
n
field_3137
GENERIC
GENERIC
public static final DamageSource
o
field_3140
MAGIC
MAGIC
public static final DamageSource
p
field_5312
WITHER
WITHER
public static final DamageSource
q
field_5313
ANVIL
ANVIL
public static final DamageSource
r
field_5314
FALLING_BLOCK
FALLING_BLOCK
public static final DamageSource
s
field_14446
DRAGON_BREATH
DRAGON_BREATH
public static final DamageSource
t
field_15442
FIREWORKS
field_191552_t
private boolean
v
field_3142
bypassesArmor
isUnblockable
private boolean
w
field_3143
outOfWorld
isDamageAllowedInCreativeMode
private boolean
x
field_9079
unblockable
damageIsAbsolute
private float
y
field_3144
exhaustion
hungerDamage
private boolean
z
field_3145
fire
fireDamage
private boolean
A
field_3146
isProjectile
projectile
private boolean
B
field_3147
scaledWithDifficulty
difficultyScaled
private boolean
C
field_5315
magic
magicDamage
private boolean
D
field_6112
explosive
explosion
public String
u
field_3141
name
damageType

Constructor summary

ModifierConstructor
protected (String name)

Method summary

Modifier and TypeMethod
public static DamageSource
a(sw arg0)
method_6078(class_1699 arg0)
mob(LivingEntity mob)
causeMobDamage(EntityLivingBase mob)
public static DamageSource
a(sn arg0, sw arg1)
method_12939(class_864 arg0, class_1699 arg1)
projectile(Entity projectile, LivingEntity entity)
causeIndirectDamage(Entity source, EntityLivingBase indirectEntityIn)
public static DamageSource
a(aay arg0)
method_2415(class_988 arg0)
player(PlayerEntity player)
causePlayerDamage(EntityPlayer player)
public static DamageSource
a(abb arg0, sn arg1)
method_2416(class_990 arg0, class_864 arg1)
arrow(AbstractArrowEntity arrow, Entity shooter)
causeArrowDamage(EntityArrow arrow, Entity indirectEntityIn)
public static DamageSource
a(abf arg0, sn arg1)
method_2417(class_992 arg0, class_864 arg1)
fireball(ProjectileEntity fireball, Entity shooter)
causeFireballDamage(EntityFireball fireball, Entity indirectEntityIn)
public static DamageSource
a(sn arg0, sn arg1)
method_2413(class_864 arg0, class_864 arg1)
thrown(Entity thrown, Entity thrower)
causeThrownDamage(Entity source, Entity indirectEntityIn)
public static DamageSource
b(sn arg0, sn arg1)
method_2419(class_864 arg0, class_864 arg1)
magic(Entity potion, Entity thrower)
causeIndirectMagicDamage(Entity source, Entity indirectEntityIn)
public static DamageSource
a(sn arg0)
method_4433(class_864 arg0)
thorns(Entity attacker)
causeThornsDamage(Entity source)
public static DamageSource
a(ajn arg0)
method_5370(class_1147 arg0)
explosion(Explosion explosion)
causeExplosionDamage(Explosion explosionIn)
public static DamageSource
b(sw arg0)
method_12940(class_1699 arg0)
explosion(LivingEntity source)
causeExplosionDamage(EntityLivingBase entityLivingBaseIn)
public boolean
a()
method_2412()
isProjectile()
isProjectile()
public DamageSource
b()
method_2418()
setProjectile()
setProjectile()
public boolean
c()
method_5372()
isExplosive()
isExplosion()
public DamageSource
d()
method_5373()
setExplosive()
setExplosion()
public boolean
e()
method_2421()
bypassesArmor()
isUnblockable()
public float
f()
method_2422()
getExhaustion()
getHungerDamage()
public boolean
g()
method_2423()
isOutOfWorld()
canHarmInCreative()
public boolean
h()
method_8358()
isUnblockable()
isDamageAbsolute()
public Entity
i()
method_2424()
getSource()
getImmediateSource()
public Entity
j()
method_2425()
getAttacker()
getTrueSource()
protected DamageSource
k()
method_2426()
setBypassesArmor()
setDamageBypassesArmor()
protected DamageSource
l()
method_2427()
setOutOfWorld()
setDamageAllowedInCreativeMode()
protected DamageSource
m()
method_8359()
setUnblockable()
setDamageIsAbsolute()
protected DamageSource
n()
method_2428()
setFire()
setFireDamage()
public Text
c(sw arg0)
method_6079(class_1699 arg0)
getDeathMessage(LivingEntity entity)
getDeathMessage(EntityLivingBase entityLivingBaseIn)
public boolean
o()
method_2429()
isFire()
isFireDamage()
public String
p()
method_2430()
getName()
getDamageType()
public DamageSource
q()
method_2431()
setScaledWithDifficulty()
setDifficultyScaled()
public boolean
r()
method_2432()
isScaledWithDifficulty()
isDifficultyScaled()
public boolean
s()
method_4434()
getMagic()
isMagicDamage()
public DamageSource
t()
method_4435()
isMagic()
setMagicDamage()
public boolean
u()
method_10918()
isCreativePlayer()
isCreativePlayer()
public Vec3d
v()
method_12941()
getPos()
getDamageLocation()