Package net.minecraft.world.damagesource
Class DamageSource
java.lang.Object
net.minecraft.world.damagesource.DamageSource
- Direct Known Subclasses:
BadRespawnPointDamage,EntityDamageSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic DamageSourceprivate booleanprivate booleanprivate booleanstatic DamageSourcestatic DamageSourceprivate booleanstatic DamageSourcestatic DamageSourcestatic DamageSourceprivate floatstatic DamageSourcestatic DamageSourcestatic DamageSourcestatic DamageSourcestatic DamageSourcestatic DamageSourcestatic DamageSourcestatic DamageSourcestatic DamageSourceprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanstatic DamageSourcestatic DamageSourcestatic DamageSourceprivate booleanstatic DamageSourcestatic DamageSourceprivate booleanstatic DamageSourcestatic DamageSourcestatic DamageSourcestatic DamageSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DamageSourcearrow(AbstractArrow p_19347_, Entity p_19348_)static DamageSourcestatic DamageSourceexplosion(LivingEntity p_19374_)static DamageSourcestatic 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_)booleanbooleanbooleanbooleanbooleanbooleanbooleanisFall()booleanisFire()booleanisMagic()booleanbooleanstatic DamageSourcemobAttack(LivingEntity p_19371_)static DamageSourceplayerAttack(Player p_19345_)booleansetMagic()static 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
-
ANVIL
-
FALLING_BLOCK
-
DRAGON_BREATH
-
DRY_OUT
-
SWEET_BERRY_BUSH
-
FREEZE
-
FALLING_STALACTITE
-
STALAGMITE
-
damageHelmet
private boolean damageHelmet -
bypassArmor
private boolean bypassArmor -
bypassInvul
private boolean bypassInvul -
bypassMagic
private boolean bypassMagic -
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
-
sting
-
mobAttack
-
indirectMobAttack
-
playerAttack
-
arrow
-
trident
-
fireworks
-
fireball
-
witherSkull
-
thrown
-
indirectMagic
-
thorns
-
explosion
-
explosion
-
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() -
getDirectEntity
-
getEntity
-
bypassArmor
-
damageHelmet
-
bypassInvul
-
bypassMagic
-
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
-