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