Package net.minecraft.world.damagesource
Class DamageSources
java.lang.Object
net.minecraft.world.damagesource.DamageSources
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DamageSourceprivate final DamageSourceprivate final DamageSourcefinal Registry<DamageType> private final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSourceprivate final DamageSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarrow(AbstractArrow arrow, @Nullable Entity shooter) badRespawnPointExplosion(Vec3 position) cactus()campfire()cramming()drown()dryOut()fall()fallingBlock(Entity entity) fallingStalactite(Entity entity) fireworks(FireworkRocketEntity firework, @Nullable Entity shooter) freeze()generic()hotFloor()indirectMagic(Entity causingEntity, @Nullable Entity directEntity) inFire()inWall()lava()magic()mobAttack(LivingEntity mob) mobProjectile(Entity projectile, @Nullable LivingEntity thrower) onFire()playerAttack(Player player) source(ResourceKey<DamageType> damageTypeKey) source(ResourceKey<DamageType> damageTypeKey, @Nullable Entity entity) source(ResourceKey<DamageType> damageTypeKey, @Nullable Entity causingEntity, @Nullable Entity directEntity) spit(Entity spit, @Nullable LivingEntity thrower) starve()sting(LivingEntity entity) windCharge(Entity windCharge, @Nullable LivingEntity thrower) wither()witherSkull(WitherSkull witherSkull, Entity shooter)
-
Field Details
-
damageTypes
-
inFire
-
campfire
-
lightningBolt
-
onFire
-
lava
-
hotFloor
-
inWall
-
cramming
-
drown
-
starve
-
cactus
-
fall
-
enderPearl
-
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
-
enderPearl
-
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
-
mace
-