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
Fields Modifier and Type Field Description static DamageSource
ANVIL
private boolean
bypassesArmor
static DamageSource
CACTUS
static DamageSource
CRAMMING
static DamageSource
DRAGON_BREATH
static DamageSource
DROWN
static DamageSource
DRYOUT
private float
exhaustion
private boolean
explosive
static DamageSource
FALL
static DamageSource
FALLING_BLOCK
private boolean
fire
static DamageSource
FLY_INTO_WALL
static DamageSource
GENERIC
static DamageSource
HOT_FLOOR
static DamageSource
IN_FIRE
static DamageSource
IN_WALL
static DamageSource
LAVA
static DamageSource
LIGHTNING_BOLT
private boolean
magic
static DamageSource
MAGIC
String
name
static DamageSource
ON_FIRE
static DamageSource
OUT_OF_WORLD
private boolean
outOfWorld
private boolean
projectile
private boolean
scaleWithDifficulty
static DamageSource
STARVE
static DamageSource
SWEET_BERRY_BUSH
private boolean
unblockable
static DamageSource
WITHER
-
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
-
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() -
getExhaustion
public float getExhaustion() -
isOutOfWorld
public boolean isOutOfWorld() -
isUnblockable
public boolean isUnblockable() -
getSource
-
getAttacker
-
setBypassesArmor
-
setOutOfWorld
-
setUnblockable
-
setFire
-
getDeathMessage
-
isFire
public boolean isFire() -
getName
-
setScaledWithDifficulty
-
isScaledWithDifficulty
public boolean isScaledWithDifficulty() -
getMagic
public boolean getMagic() -
setUsesMagic
-
isSourceCreativePlayer
public boolean isSourceCreativePlayer() -
getPosition
-