YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.util.EntityDamageSource Class Reference
Inheritance diagram for net.minecraft.util.EntityDamageSource:
net.minecraft.util.DamageSource net.minecraft.util.EntityDamageSourceIndirect

Public Member Functions

 EntityDamageSource (String par1Str, Entity par2Entity)
 
Entity getEntity ()
 
String getDeathMessage (EntityLiving par1EntityLiving)
 
boolean isDifficultyScaled ()
 
- Public Member Functions inherited from net.minecraft.util.DamageSource
boolean isProjectile ()
 
DamageSource setProjectile ()
 
boolean isExplosion ()
 
DamageSource setExplosion ()
 
boolean isUnblockable ()
 
float getHungerDamage ()
 
boolean canHarmInCreative ()
 
Entity getSourceOfDamage ()
 
Entity getEntity ()
 
String getDeathMessage (EntityLiving par1EntityLiving)
 
boolean isFireDamage ()
 
String getDamageType ()
 
DamageSource setDifficultyScaled ()
 
boolean isDifficultyScaled ()
 
boolean isMagicDamage ()
 
DamageSource setMagicDamage ()
 

Protected Attributes

Entity damageSourceEntity
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.util.DamageSource
static DamageSource causeMobDamage (EntityLiving par0EntityLiving)
 
static DamageSource causePlayerDamage (EntityPlayer par0EntityPlayer)
 
static DamageSource causeArrowDamage (EntityArrow par0EntityArrow, Entity par1Entity)
 
static DamageSource causeFireballDamage (EntityFireball par0EntityFireball, Entity par1Entity)
 
static DamageSource causeThrownDamage (Entity par0Entity, Entity par1Entity)
 
static DamageSource causeIndirectMagicDamage (Entity par0Entity, Entity par1Entity)
 
static DamageSource causeThornsDamage (Entity par0Entity)
 
static DamageSource setExplosionSource (Explosion par0Explosion)
 
- Public Attributes inherited from net.minecraft.util.DamageSource
String damageType
 
- Static Public Attributes inherited from net.minecraft.util.DamageSource
static DamageSource inFire = (new DamageSource("inFire")).setFireDamage()
 
static DamageSource onFire = (new DamageSource("onFire")).setDamageBypassesArmor().setFireDamage()
 
static DamageSource lava = (new DamageSource("lava")).setFireDamage()
 
static DamageSource inWall = (new DamageSource("inWall")).setDamageBypassesArmor()
 
static DamageSource drown = (new DamageSource("drown")).setDamageBypassesArmor()
 
static DamageSource starve = (new DamageSource("starve")).setDamageBypassesArmor()
 
static DamageSource cactus = new DamageSource("cactus")
 
static DamageSource fall = (new DamageSource("fall")).setDamageBypassesArmor()
 
static DamageSource outOfWorld = (new DamageSource("outOfWorld")).setDamageBypassesArmor().setDamageAllowedInCreativeMode()
 
static DamageSource generic = (new DamageSource("generic")).setDamageBypassesArmor()
 
static DamageSource magic = (new DamageSource("magic")).setDamageBypassesArmor().setMagicDamage()
 
static DamageSource wither = (new DamageSource("wither")).setDamageBypassesArmor()
 
static DamageSource anvil = new DamageSource("anvil")
 
static DamageSource fallingBlock = new DamageSource("fallingBlock")
 
- Protected Member Functions inherited from net.minecraft.util.DamageSource
 DamageSource (String par1Str)
 
DamageSource setDamageBypassesArmor ()
 
DamageSource setDamageAllowedInCreativeMode ()
 
DamageSource setFireDamage ()
 

Constructor & Destructor Documentation

net.minecraft.util.EntityDamageSource.EntityDamageSource ( String  par1Str,
Entity  par2Entity 
)

Member Function Documentation

String net.minecraft.util.EntityDamageSource.getDeathMessage ( EntityLiving  par1EntityLiving)

Returns the message to be displayed on player death.

Entity net.minecraft.util.EntityDamageSource.getEntity ( )
boolean net.minecraft.util.EntityDamageSource.isDifficultyScaled ( )

Return whether this damage source will have its damage amount scaled based on the current difficulty.

Member Data Documentation

Entity net.minecraft.util.EntityDamageSource.damageSourceEntity
protected

The documentation for this class was generated from the following file: