Package net.minecraft.world.damagesource
Class DamageSources
java.lang.Object
net.minecraft.world.damagesource.DamageSources
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DamageSource
private final DamageSource
private final DamageSource
final Registry
<DamageType> private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
private final DamageSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarrow
(AbstractArrow arrow, Entity shooter) badRespawnPointExplosion
(Vec3 position) cactus()
campfire()
cramming()
drown()
dryOut()
fall()
fallingBlock
(Entity entity) fallingStalactite
(Entity entity) fireworks
(FireworkRocketEntity firework, Entity shooter) freeze()
generic()
hotFloor()
indirectMagic
(Entity causingEntity, Entity directEntity) inFire()
inWall()
lava()
magic()
mobAttack
(LivingEntity mob) mobProjectile
(Entity projectile, LivingEntity thrower) onFire()
playerAttack
(Player player) source
(ResourceKey<DamageType> damageTypeKey) source
(ResourceKey<DamageType> damageTypeKey, Entity entity) source
(ResourceKey<DamageType> damageTypeKey, Entity causingEntity, Entity directEntity) spit
(Entity spit, LivingEntity thrower) starve()
sting
(LivingEntity entity) windCharge
(Entity windCharge, LivingEntity thrower) wither()
witherSkull
(WitherSkull witherSkull, Entity shooter)
-
Field Details
-
damageTypes
-
inFire
-
campfire
-
lightningBolt
-
onFire
-
lava
-
hotFloor
-
inWall
-
cramming
-
drown
-
starve
-
cactus
-
fall
-
flyIntoWall
-
fellOutOfWorld
-
generic
-
magic
-
wither
-
dragonBreath
-
dryOut
-
sweetBerryBush
-
freeze
-
stalagmite
-
outsideBorder
-
genericKill
-
-
Constructor Details
-
DamageSources
-
-
Method Details
-
source
-
source
-
source
public DamageSource source(ResourceKey<DamageType> damageTypeKey, @Nullable Entity causingEntity, @Nullable Entity directEntity) -
inFire
-
campfire
-
lightningBolt
-
onFire
-
lava
-
hotFloor
-
inWall
-
cramming
-
drown
-
starve
-
cactus
-
fall
-
flyIntoWall
-
fellOutOfWorld
-
generic
-
magic
-
wither
-
dragonBreath
-
dryOut
-
sweetBerryBush
-
freeze
-
stalagmite
-
fallingBlock
-
anvil
-
fallingStalactite
-
sting
-
mobAttack
-
noAggroMobAttack
-
playerAttack
-
arrow
-
trident
-
mobProjectile
-
spit
-
windCharge
-
fireworks
-
fireball
-
witherSkull
-
thrown
-
indirectMagic
-
thorns
-
explosion
-
explosion
-
sonicBoom
-
badRespawnPointExplosion
-
outOfBorder
-
genericKill
-