net.minecraft.entity.damage

public class DamageSources

net.minecraft.world.damagesource.DamageSources
net.minecraft.class_8109
net.minecraft.entity.damage.DamageSources

Field summary

Modifier and TypeField
private final Registry<DamageType>
damageTypes
field_42296
registry
private final DamageSource
inFire
field_42297
inFire
private final DamageSource
campfire
field_51564
campfire
private final DamageSource
lightningBolt
field_42298
lightningBolt
private final DamageSource
onFire
field_42299
onFire
private final DamageSource
lava
field_42300
lava
private final DamageSource
hotFloor
field_42301
hotFloor
private final DamageSource
inWall
field_42302
inWall
private final DamageSource
cramming
field_42303
cramming
private final DamageSource
drown
field_42304
drown
private final DamageSource
starve
field_42305
starve
private final DamageSource
cactus
field_42306
cactus
private final DamageSource
fall
field_42307
fall
private final DamageSource
enderPearl
field_52430
enderPearl
private final DamageSource
flyIntoWall
field_42308
flyIntoWall
private final DamageSource
fellOutOfWorld
field_42309
outOfWorld
private final DamageSource
generic
field_42310
generic
private final DamageSource
magic
field_42311
magic
private final DamageSource
wither
field_42312
wither
private final DamageSource
dragonBreath
field_42313
dragonBreath
private final DamageSource
dryOut
field_42314
dryOut
private final DamageSource
sweetBerryBush
field_42315
sweetBerryBush
private final DamageSource
freeze
field_42316
freeze
private final DamageSource
stalagmite
field_42317
stalagmite
private final DamageSource
outsideBorder
field_44866
outsideBorder
private final DamageSource
genericKill
field_44867
genericKill

Constructor summary

ModifierConstructor
public (DynamicRegistryManager registryManager)

Method summary

Modifier and TypeMethod
private DamageSource
source(ResourceKey<DamageType> key)
method_48795(class_5321<class_8110> arg0)
create(RegistryKey<DamageType> key)
private DamageSource
source(ResourceKey<DamageType> key, Entity cause)
method_48796(class_5321<class_8110> arg0, class_1297 arg1)
create(RegistryKey<DamageType> key, Entity attacker)
private DamageSource
source(ResourceKey<DamageType> key, Entity directEntity, Entity causingEntity)
method_48797(class_5321<class_8110> arg0, class_1297 arg1, class_1297 arg2)
create(RegistryKey<DamageType> key, Entity source, Entity attacker)
public DamageSource
inFire()
method_48794()
inFire()
public DamageSource
campfire()
method_59917()
campfire()
public DamageSource
lightningBolt()
method_48809()
lightningBolt()
public DamageSource
onFire()
method_48813()
onFire()
public DamageSource
lava()
method_48817()
lava()
public DamageSource
hotFloor()
method_48820()
hotFloor()
public DamageSource
inWall()
method_48822()
inWall()
public DamageSource
cramming()
method_48823()
cramming()
public DamageSource
drown()
method_48824()
drown()
public DamageSource
starve()
method_48825()
starve()
public DamageSource
cactus()
method_48826()
cactus()
public DamageSource
fall()
method_48827()
fall()
public DamageSource
enderPearl()
method_61399()
enderPearl()
public DamageSource
flyIntoWall()
method_48828()
flyIntoWall()
public DamageSource
fellOutOfWorld()
method_48829()
outOfWorld()
public DamageSource
generic()
method_48830()
generic()
public DamageSource
magic()
method_48831()
magic()
public DamageSource
wither()
method_48832()
wither()
public DamageSource
dragonBreath()
method_48833()
dragonBreath()
public DamageSource
dryOut()
method_48834()
dryOut()
public DamageSource
sweetBerryBush()
method_48835()
sweetBerryBush()
public DamageSource
freeze()
method_48836()
freeze()
public DamageSource
stalagmite()
method_48837()
stalagmite()
public DamageSource
fallingBlock(Entity entity)
method_48798(class_1297 arg0)
fallingBlock(Entity attacker)
public DamageSource
anvil(Entity entity)
method_48810(class_1297 arg0)
fallingAnvil(Entity attacker)
public DamageSource
fallingStalactite(Entity entity)
method_48814(class_1297 arg0)
fallingStalactite(Entity attacker)
public DamageSource
sting(LivingEntity mob)
method_48801(class_1309 arg0)
sting(LivingEntity attacker)
public DamageSource
mobAttack(LivingEntity mob)
method_48812(class_1309 arg0)
mobAttack(LivingEntity attacker)
public DamageSource
noAggroMobAttack(LivingEntity mob)
method_48816(class_1309 arg0)
mobAttackNoAggro(LivingEntity attacker)
public DamageSource
playerAttack(Player player)
method_48802(class_1657 arg0)
playerAttack(PlayerEntity attacker)
public DamageSource
arrow(AbstractArrow arrow, Entity owner)
method_48803(class_1665 arg0, class_1297 arg1)
arrow(PersistentProjectileEntity source, Entity attacker)
public DamageSource
trident(Entity trident, Entity owner)
method_48799(class_1297 arg0, class_1297 arg1)
trident(Entity source, Entity attacker)
public DamageSource
mobProjectile(Entity entity, LivingEntity mob)
method_48800(class_1297 arg0, class_1309 arg1)
mobProjectile(Entity source, LivingEntity attacker)
public DamageSource
spit(Entity entity, LivingEntity mob)
method_55647(class_1297 arg0, class_1309 arg1)
spit(Entity source, LivingEntity attacker)
public DamageSource
windCharge(Entity entity, LivingEntity mob)
method_55648(class_1297 arg0, class_1309 arg1)
windCharge(Entity source, LivingEntity attacker)
public DamageSource
fireworks(FireworkRocketEntity rocket, Entity owner)
method_48805(class_1671 arg0, class_1297 arg1)
fireworks(FireworkRocketEntity source, Entity attacker)
public DamageSource
fireball(Fireball fireball, Entity owner)
method_48804(class_3855 arg0, class_1297 arg1)
fireball(AbstractFireballEntity source, Entity attacker)
public DamageSource
witherSkull(WitherSkull witherSkull, Entity owner)
method_48806(class_1687 arg0, class_1297 arg1)
witherSkull(WitherSkullEntity source, Entity attacker)
public DamageSource
thrown(Entity entity, Entity owner)
method_48811(class_1297 arg0, class_1297 arg1)
thrown(Entity source, Entity attacker)
public DamageSource
indirectMagic(Entity entity, Entity owner)
method_48815(class_1297 arg0, class_1297 arg1)
indirectMagic(Entity source, Entity attacker)
public DamageSource
thorns(Entity source)
method_48818(class_1297 arg0)
thorns(Entity attacker)
public DamageSource
explosion(Explosion explosion)
method_48807(class_1927 arg0)
explosion(Explosion explosion)
public DamageSource
explosion(Entity entity, Entity cause)
method_48819(class_1297 arg0, class_1297 arg1)
explosion(Entity source, Entity attacker)
public DamageSource
sonicBoom(Entity entity)
method_48821(class_1297 arg0)
sonicBoom(Entity attacker)
public DamageSource
badRespawnPointExplosion(Vec3 boomPos)
method_48808(class_243 arg0)
badRespawnPoint(Vec3d position)
public DamageSource
outOfBorder()
method_51846()
outsideBorder()
public DamageSource
genericKill()
method_51847()
genericKill()
public DamageSource
mace(Entity owner)
method_61398(class_1297 arg0)
maceSmash(Entity attacker)