Package net.minecraft.world.damagesource
Class DamageSource
java.lang.Object
net.minecraft.world.damagesource.DamageSource
- Direct Known Subclasses:
EntityDamageSource,PointDamageSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate booleanstatic final DamageSourcestatic final DamageSourceprivate booleanstatic final DamageSourcestatic final DamageSourcestatic final DamageSourceprivate floatstatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourceprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanstatic final DamageSourcestatic final DamageSourcestatic final DamageSourcefinal Stringprivate booleanstatic final DamageSourcestatic final DamageSourceprivate booleanstatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DamageSourcestatic DamageSourcearrow(AbstractArrow p_19347_, Entity p_19348_) static DamageSourcebadRespawnPointExplosion(Vec3 p_253714_) static DamageSourcestatic DamageSourcestatic DamageSourcefallingBlock(Entity p_254272_) static DamageSourcefallingStalactite(Entity p_253863_) static DamageSourcestatic DamageSourcefireworks(FireworkRocketEntity p_19353_, Entity p_19354_) floatgetLocalizedDeathMessage(LivingEntity p_19343_) getMsgId()static DamageSourceindirectMagic(Entity p_19368_, Entity p_19369_) static DamageSourceindirectMobAttack(Entity p_19341_, LivingEntity p_19342_) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisFall()booleanisFire()booleanisMagic()booleanbooleanstatic DamageSourcemobAttack(LivingEntity p_19371_) static DamageSourceplayerAttack(Player p_19345_) booleansetMagic()static DamageSourcestatic DamageSourcesting(LivingEntity p_19365_) static DamageSourcestatic DamageSourcetoString()static DamageSourcestatic DamageSourcewitherSkull(WitherSkull p_19356_, Entity p_19357_)
-
Field Details
-
IN_FIRE
-
LIGHTNING_BOLT
-
ON_FIRE
-
LAVA
-
HOT_FLOOR
-
IN_WALL
-
CRAMMING
-
DROWN
-
STARVE
-
CACTUS
-
FALL
-
FLY_INTO_WALL
-
OUT_OF_WORLD
-
GENERIC
-
MAGIC
-
WITHER
-
DRAGON_BREATH
-
DRY_OUT
-
SWEET_BERRY_BUSH
-
FREEZE
-
STALAGMITE
-
damageHelmet
private boolean damageHelmet -
bypassArmor
private boolean bypassArmor -
bypassInvul
private boolean bypassInvul -
bypassMagic
private boolean bypassMagic -
bypassEnchantments
private boolean bypassEnchantments -
exhaustion
private float exhaustion -
isFireSource
private boolean isFireSource -
isProjectile
private boolean isProjectile -
scalesWithDifficulty
private boolean scalesWithDifficulty -
isMagic
private boolean isMagic -
isExplosion
private boolean isExplosion -
isFall
private boolean isFall -
noAggro
private boolean noAggro -
msgId
-
-
Constructor Details
-
DamageSource
-
-
Method Details
-
fallingBlock
-
anvil
-
fallingStalactite
-
sting
-
mobAttack
-
indirectMobAttack
-
playerAttack
-
arrow
-
trident
-
fireworks
-
fireball
-
witherSkull
-
thrown
-
indirectMagic
-
thorns
-
explosion
-
explosion
-
sonicBoom
-
badRespawnPointExplosion
-
toString
-
isProjectile
public boolean isProjectile() -
setProjectile
-
isExplosion
public boolean isExplosion() -
setExplosion
-
isBypassArmor
public boolean isBypassArmor() -
isDamageHelmet
public boolean isDamageHelmet() -
getFoodExhaustion
public float getFoodExhaustion() -
isBypassInvul
public boolean isBypassInvul() -
isBypassMagic
public boolean isBypassMagic() -
isBypassEnchantments
public boolean isBypassEnchantments() -
getDirectEntity
-
getEntity
-
bypassArmor
-
damageHelmet
-
bypassInvul
-
bypassMagic
-
bypassEnchantments
-
setIsFire
-
setNoAggro
-
getLocalizedDeathMessage
-
isFire
public boolean isFire() -
isNoAggro
public boolean isNoAggro() -
getMsgId
-
setScalesWithDifficulty
-
scalesWithDifficulty
public boolean scalesWithDifficulty() -
isMagic
public boolean isMagic() -
setMagic
-
isFall
public boolean isFall() -
setIsFall
-
isCreativePlayer
public boolean isCreativePlayer() -
getSourcePosition
-