类 DamageSources
java.lang.Object
net.minecraft.world.damagesource.DamageSources
-
字段概要
字段修饰符和类型字段说明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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明arrow
(AbstractArrow pArrow, Entity pShooter) badRespawnPointExplosion
(Vec3 pPosition) cactus()
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) starve()
sting
(LivingEntity pEntity) wither()
witherSkull
(WitherSkull pWitherSkull, Entity pShooter)
-
字段详细资料
-
damageTypes
-
inFire
-
lightningBolt
-
onFire
-
lava
-
hotFloor
-
inWall
-
cramming
-
drown
-
starve
-
cactus
-
fall
-
flyIntoWall
-
fellOutOfWorld
-
generic
-
magic
-
wither
-
dragonBreath
-
dryOut
-
sweetBerryBush
-
freeze
-
stalagmite
-
outsideBorder
-
genericKill
-
-
构造器详细资料
-
DamageSources
-
-
方法详细资料
-
source
-
source
-
source
public DamageSource source(ResourceKey<DamageType> pDamageTypeKey, @Nullable Entity pCausingEntity, @Nullable Entity pDirectEntity) -
inFire
-
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
-
fireworks
-
fireball
-
witherSkull
-
thrown
-
indirectMagic
-
thorns
-
explosion
-
explosion
-
sonicBoom
-
badRespawnPointExplosion
-
outOfBorder
-
genericKill
-