|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.util.DamageSource
public class DamageSource
Field Summary | |
---|---|
static DamageSource |
anvil
|
static DamageSource |
cactus
|
String |
damageType
|
static DamageSource |
drown
|
static DamageSource |
explosion
|
static DamageSource |
explosion2
|
static DamageSource |
fall
|
static DamageSource |
fallingBlock
|
static DamageSource |
generic
|
static DamageSource |
inFire
|
static DamageSource |
inWall
|
static DamageSource |
lava
|
static DamageSource |
magic
|
static DamageSource |
onFire
|
static DamageSource |
outOfWorld
|
static DamageSource |
starve
|
static DamageSource |
wither
|
Method Summary | |
---|---|
boolean |
canHarmInCreative()
|
static DamageSource |
causeArrowDamage(EntityArrow par0EntityArrow,
Entity par1Entity)
returns EntityDamageSourceIndirect of an arrow |
static DamageSource |
causeFireballDamage(EntityFireball par0EntityFireball,
Entity par1Entity)
returns EntityDamageSourceIndirect of a fireball |
static DamageSource |
causeIndirectMagicDamage(Entity par0Entity,
Entity par1Entity)
|
static DamageSource |
causeMobDamage(EntityLiving par0EntityLiving)
|
static DamageSource |
causePlayerDamage(EntityPlayer par0EntityPlayer)
returns an EntityDamageSource of type player |
static DamageSource |
causeThrownDamage(Entity par0Entity,
Entity par1Entity)
|
static DamageSource |
func_92036_a(Entity par0Entity)
|
String |
getDamageType()
Return the name of damage type. |
String |
getDeathMessage(EntityPlayer par1EntityPlayer)
Returns the message to be displayed on player death. |
Entity |
getEntity()
|
float |
getHungerDamage()
How much satiate(food) is consumed by this DamageSource |
Entity |
getSourceOfDamage()
|
boolean |
isDifficultyScaled()
Return whether this damage source will have its damage amount scaled based on the current difficulty. |
boolean |
isFireDamage()
Returns true if the damage is fire based. |
boolean |
isMagicDamage()
Returns true if the damage is magic based. |
boolean |
isProjectile()
Returns true if the damage is projectile based. |
boolean |
isUnblockable()
|
DamageSource |
setDifficultyScaled()
Set whether this damage source will have its damage amount scaled based on the current difficulty. |
DamageSource |
setMagicDamage()
Define the damage type as magic based. |
DamageSource |
setProjectile()
Define the damage type as projectile based. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static DamageSource inFire
public static DamageSource onFire
public static DamageSource lava
public static DamageSource inWall
public static DamageSource drown
public static DamageSource starve
public static DamageSource cactus
public static DamageSource fall
public static DamageSource outOfWorld
public static DamageSource generic
public static DamageSource explosion
public static DamageSource explosion2
public static DamageSource magic
public static DamageSource wither
public static DamageSource anvil
public static DamageSource fallingBlock
public String damageType
Method Detail |
---|
public static DamageSource causeMobDamage(EntityLiving par0EntityLiving)
public static DamageSource causePlayerDamage(EntityPlayer par0EntityPlayer)
public static DamageSource causeArrowDamage(EntityArrow par0EntityArrow, Entity par1Entity)
public static DamageSource causeFireballDamage(EntityFireball par0EntityFireball, Entity par1Entity)
public static DamageSource causeThrownDamage(Entity par0Entity, Entity par1Entity)
public static DamageSource causeIndirectMagicDamage(Entity par0Entity, Entity par1Entity)
public static DamageSource func_92036_a(Entity par0Entity)
public boolean isProjectile()
public DamageSource setProjectile()
public boolean isUnblockable()
public float getHungerDamage()
public boolean canHarmInCreative()
public Entity getSourceOfDamage()
public Entity getEntity()
public String getDeathMessage(EntityPlayer par1EntityPlayer)
public boolean isFireDamage()
public String getDamageType()
public DamageSource setDifficultyScaled()
public boolean isDifficultyScaled()
public boolean isMagicDamage()
public DamageSource setMagicDamage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |