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 owner) badRespawnPointExplosion(Vec3 boomPos) cactus()campfire()cramming()drown()dryOut()fall()fallingBlock(Entity entity) fallingStalactite(Entity entity) fireworks(FireworkRocketEntity rocket, @Nullable Entity owner) freeze()generic()hotFloor()indirectMagic(Entity entity, @Nullable Entity owner) inFire()inWall()lava()magic()mobAttack(LivingEntity mob) mobProjectile(Entity entity, @Nullable LivingEntity mob) onFire()playerAttack(Player player) source(ResourceKey<DamageType> key) source(ResourceKey<DamageType> key, @Nullable Entity cause) source(ResourceKey<DamageType> key, @Nullable Entity directEntity, @Nullable Entity causingEntity) spit(Entity entity, @Nullable LivingEntity mob) starve()sting(LivingEntity mob) windCharge(Entity entity, @Nullable LivingEntity mob) wither()witherSkull(WitherSkull witherSkull, Entity owner)
-
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> key, @Nullable Entity directEntity, @Nullable Entity causingEntity) -
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
-