Package net.minecraft.util
Class DamageSource
java.lang.Object
net.minecraft.util.DamageSource
- Direct Known Subclasses:
BedExplosionDamageSource
,EntityDamageSource
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DamageSource
private boolean
private boolean
private boolean
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
private float
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
private boolean
private boolean
private boolean
private boolean
static final DamageSource
static final DamageSource
static final DamageSource
final String
static final DamageSource
static final DamageSource
private boolean
static final DamageSource
static final DamageSource
static final DamageSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DamageSource
arrow
(AbstractArrowEntity p_76353_0_, Entity p_76353_1_) static DamageSource
static DamageSource
explosion
(LivingEntity p_188405_0_) static DamageSource
static DamageSource
fireball
(AbstractFireballEntity p_233547_0_, Entity p_233547_1_) static DamageSource
fireworks
(FireworkRocketEntity p_233548_0_, Entity p_233548_1_) float
getLocalizedDeathMessage
(LivingEntity p_151519_1_) getMsgId()
static DamageSource
indirectMagic
(Entity p_76354_0_, Entity p_76354_1_) static DamageSource
indirectMobAttack
(Entity p_188403_0_, LivingEntity p_188403_1_) boolean
boolean
boolean
boolean
boolean
boolean
isFire()
boolean
isMagic()
boolean
static DamageSource
mobAttack
(LivingEntity p_76358_0_) static DamageSource
playerAttack
(PlayerEntity p_76365_0_) boolean
setMagic()
static DamageSource
sting
(LivingEntity p_226252_0_) static DamageSource
static DamageSource
toString()
static DamageSource
static DamageSource
witherSkull
(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
-