Package net.minecraft.src
Class DamageSource
- java.lang.Object
-
- net.minecraft.src.DamageSource
-
- Direct Known Subclasses:
EntityDamageSource
public class DamageSource extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static DamageSource
cactus
java.lang.String
damageType
static DamageSource
drown
static DamageSource
explosion
static DamageSource
fall
static DamageSource
generic
static DamageSource
inFire
static DamageSource
inWall
static DamageSource
lava
static DamageSource
magic
static DamageSource
onFire
static DamageSource
outOfWorld
static DamageSource
starve
-
Constructor Summary
Constructors Modifier Constructor Description protected
DamageSource(java.lang.String var1)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHarmInCreative()
static DamageSource
causeArrowDamage(Arrow var0, Entity var1)
static DamageSource
causeFireballDamage(Fireball var0, Entity var1)
static DamageSource
causeIndirectMagicDamage(Entity var0, Entity var1)
static DamageSource
causeMobDamage(LivingEntity var0)
static DamageSource
causePlayerDamage(Player var0)
static DamageSource
causeThrownDamage(Entity var0, Entity var1)
boolean
fireDamage()
java.lang.String
getDamageType()
java.lang.String
getDeathMessage(Player var1)
Entity
getEntity()
float
getHungerDamage()
Entity
getSourceOfDamage()
boolean
isProjectile()
boolean
isUnblockable()
protected DamageSource
setDamageAllowedInCreativeMode()
protected DamageSource
setDamageBypassesArmor()
protected DamageSource
setFireDamage()
DamageSource
setProjectile()
-
-
-
Field Detail
-
inFire
public static DamageSource inFire
-
onFire
public static DamageSource onFire
-
lava
public static DamageSource lava
-
inWall
public static DamageSource inWall
-
drown
public static DamageSource drown
-
starve
public static DamageSource starve
-
cactus
public static DamageSource cactus
-
fall
public static DamageSource fall
-
outOfWorld
public static DamageSource outOfWorld
-
generic
public static DamageSource generic
-
explosion
public static DamageSource explosion
-
magic
public static DamageSource magic
-
damageType
public java.lang.String damageType
-
-
Method Detail
-
causeMobDamage
public static DamageSource causeMobDamage(LivingEntity var0)
-
causePlayerDamage
public static DamageSource causePlayerDamage(Player var0)
-
causeArrowDamage
public static DamageSource causeArrowDamage(Arrow var0, Entity var1)
-
causeFireballDamage
public static DamageSource causeFireballDamage(Fireball var0, Entity var1)
-
causeThrownDamage
public static DamageSource causeThrownDamage(Entity var0, Entity var1)
-
causeIndirectMagicDamage
public static DamageSource causeIndirectMagicDamage(Entity var0, Entity var1)
-
isProjectile
public boolean isProjectile()
-
setProjectile
public DamageSource setProjectile()
-
isUnblockable
public boolean isUnblockable()
-
getHungerDamage
public float getHungerDamage()
-
canHarmInCreative
public boolean canHarmInCreative()
-
getSourceOfDamage
public Entity getSourceOfDamage()
-
getEntity
public Entity getEntity()
-
setDamageBypassesArmor
protected DamageSource setDamageBypassesArmor()
-
setDamageAllowedInCreativeMode
protected DamageSource setDamageAllowedInCreativeMode()
-
setFireDamage
protected DamageSource setFireDamage()
-
getDeathMessage
public java.lang.String getDeathMessage(Player var1)
-
fireDamage
public boolean fireDamage()
-
getDamageType
public java.lang.String getDamageType()
-
-