Package net.minecraft.entity.damage
Class DamageSource
java.lang.Object
net.minecraft.entity.damage.DamageSource
- Direct Known Subclasses:
BadRespawnPointDamageSource
,EntityDamageSource
public class DamageSource extends Object
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
DamageSource(String name)
-
Method Summary
-
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
-
DRYOUT
-
SWEET_BERRY_BUSH
-
FREEZE
-
FALLING_STALACTITE
-
fallingBlock
private boolean fallingBlock -
bypassesArmor
private boolean bypassesArmor -
outOfWorld
private boolean outOfWorld -
unblockable
private boolean unblockable -
exhaustion
private float exhaustion -
fire
private boolean fire -
projectile
private boolean projectile -
scaleWithDifficulty
private boolean scaleWithDifficulty -
magic
private boolean magic -
explosive
private boolean explosive -
name
-
-
Constructor Details
-
DamageSource
-
-
Method Details
-
sting
-
mob
-
mobProjectile
-
player
-
arrow
-
trident
-
firework
-
fireball
-
witherSkull
-
thrownProjectile
-
magic
-
thorns
-
explosion
-
explosion
-
badRespawnPoint
-
toString
-
isProjectile
public boolean isProjectile() -
setProjectile
-
isExplosive
public boolean isExplosive() -
setExplosive
-
bypassesArmor
public boolean bypassesArmor() -
isFallingBlock
public boolean isFallingBlock() -
getExhaustion
public float getExhaustion() -
isOutOfWorld
public boolean isOutOfWorld() -
isUnblockable
public boolean isUnblockable() -
getSource
-
getAttacker
-
setBypassesArmor
-
setFallingBlock
-
setOutOfWorld
-
setUnblockable
-
setFire
-
getDeathMessage
-
isFire
public boolean isFire() -
getName
-
setScaledWithDifficulty
-
isScaledWithDifficulty
public boolean isScaledWithDifficulty() -
isMagic
public boolean isMagic() -
setUsesMagic
-
isSourceCreativePlayer
public boolean isSourceCreativePlayer() -
getPosition
-