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 pArrow, @Nullable Entity pShooter) badRespawnPointExplosion(Vec3 pPosition) cactus()campfire()cramming()drown()dryOut()fall()fallingBlock(Entity pEntity) fallingStalactite(Entity pEntity) fireworks(FireworkRocketEntity pFirework, @Nullable Entity pShooter) freeze()generic()hotFloor()indirectMagic(Entity pCausingEntity, @Nullable Entity pDirectEntity) inFire()inWall()lava()magic()mobAttack(LivingEntity pMob) mobProjectile(Entity pProjectile, @Nullable LivingEntity pThrower) noAggroMobAttack(LivingEntity pMob) onFire()playerAttack(Player pPlayer) source(ResourceKey<DamageType> pDamageTypeKey) source(ResourceKey<DamageType> pDamageTypeKey, @Nullable Entity pEntity) source(ResourceKey<DamageType> pDamageTypeKey, @Nullable Entity pCausingEntity, @Nullable Entity pDirectEntity) spit(Entity pSpit, @Nullable LivingEntity pThrower) starve()sting(LivingEntity pEntity) windCharge(Entity pWindCharge, @Nullable LivingEntity pThrower) wither()witherSkull(WitherSkull pWitherSkull, Entity pShooter)
-
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> pDamageTypeKey, @Nullable Entity pCausingEntity, @Nullable Entity pDirectEntity) -
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
-