Package net.minecraft.util
Class DamageSource
java.lang.Object
net.minecraft.util.DamageSource
- Direct Known Subclasses:
BedExplosionDamageSource,EntityDamageSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DamageSourceprivate booleanprivate booleanprivate booleanstatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourceprivate floatstatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourceprivate booleanprivate booleanprivate booleanprivate booleanstatic final DamageSourcestatic final DamageSourcestatic final DamageSourcefinal Stringstatic final DamageSourcestatic final DamageSourceprivate booleanstatic final DamageSourcestatic final DamageSourcestatic final DamageSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DamageSourcearrow(AbstractArrowEntity p_76353_0_, Entity p_76353_1_) static DamageSourcestatic DamageSourceexplosion(LivingEntity p_188405_0_) static DamageSourcestatic DamageSourcefireball(AbstractFireballEntity p_233547_0_, Entity p_233547_1_) static DamageSourcefireworks(FireworkRocketEntity p_233548_0_, Entity p_233548_1_) floatgetLocalizedDeathMessage(LivingEntity p_151519_1_) getMsgId()static DamageSourceindirectMagic(Entity p_76354_0_, Entity p_76354_1_) static DamageSourceindirectMobAttack(Entity p_188403_0_, LivingEntity p_188403_1_) booleanbooleanbooleanbooleanbooleanbooleanisFire()booleanisMagic()booleanstatic DamageSourcemobAttack(LivingEntity p_76358_0_) static DamageSourceplayerAttack(PlayerEntity p_76365_0_) booleansetMagic()static DamageSourcesting(LivingEntity p_226252_0_) static DamageSourcestatic DamageSourcetoString()static DamageSourcestatic DamageSourcewitherSkull(WitherSkullEntity p_233549_0_, Entity p_233549_1_)
-
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
-
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 -
msgId
-
-
Constructor Details
-
DamageSource
-
-
Method Details
-
sting
-
mobAttack
-
indirectMobAttack
-
playerAttack
-
arrow
-
trident
-
fireworks
public static DamageSource fireworks(FireworkRocketEntity p_233548_0_, @Nullable Entity p_233548_1_) -
fireball
public static DamageSource fireball(AbstractFireballEntity p_233547_0_, @Nullable Entity p_233547_1_) -
witherSkull
-
thrown
-
indirectMagic
-
thorns
-
explosion
-
explosion
-
badRespawnPointExplosion
-
toString
-
isProjectile
public boolean isProjectile() -
setProjectile
-
isExplosion
public boolean isExplosion() -
setExplosion
-
isBypassArmor
public boolean isBypassArmor() -
getFoodExhaustion
public float getFoodExhaustion() -
isBypassInvul
public boolean isBypassInvul() -
isBypassMagic
public boolean isBypassMagic() -
getDirectEntity
-
getEntity
-
bypassArmor
-
bypassInvul
-
bypassMagic
-
setIsFire
-
getLocalizedDeathMessage
-
isFire
public boolean isFire() -
getMsgId
-
setScalesWithDifficulty
-
scalesWithDifficulty
public boolean scalesWithDifficulty() -
isMagic
public boolean isMagic() -
setMagic
-
isCreativePlayer
public boolean isCreativePlayer() -
getSourcePosition
-