Modifier and Type | Method and Description |
---|---|
boolean |
EntityOtherPlayerMP.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityClientPlayerMP.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
Modifier and Type | Method and Description |
---|---|
int |
Enchantment.calcModifierDamage(int par1,
DamageSource par2DamageSource)
Calculates de damage protection of the enchantment based on level and damage source passed.
|
int |
EnchantmentProtection.calcModifierDamage(int par1,
DamageSource par2DamageSource)
Calculates de damage protection of the enchantment based on level and damage source passed.
|
static int |
EnchantmentHelper.getEnchantmentModifierDamage(ItemStack[] par0ArrayOfItemStack,
DamageSource par1DamageSource)
Returns the modifier of protection enchantments on armors equipped on player.
|
Modifier and Type | Method and Description |
---|---|
boolean |
EntityLivingBase.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
Entity.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityHanging.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
IEntityMultiPart.attackEntityFromPart(EntityDragonPart entitydragonpart,
DamageSource damagesource,
float f) |
void |
EntityLivingBase.onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0.
|
Modifier and Type | Method and Description |
---|---|
boolean |
EntityWither.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityDragon.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityDragonPart.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityDragon.attackEntityFromPart(EntityDragonPart par1EntityDragonPart,
DamageSource par2DamageSource,
float par3) |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityBoat.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityItem.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityEnderCrystal.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityMinecart.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityXPOrb.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
void |
EntityMinecartChest.killMinecart(DamageSource par1DamageSource) |
void |
EntityMinecartFurnace.killMinecart(DamageSource par1DamageSource) |
void |
EntityMinecartContainer.killMinecart(DamageSource par1DamageSource) |
void |
EntityMinecart.killMinecart(DamageSource par1DamageSource) |
void |
EntityMinecartHopper.killMinecart(DamageSource par1DamageSource) |
void |
EntityMinecartTNT.killMinecart(DamageSource par1DamageSource) |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityEnderman.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntitySilverfish.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityPigZombie.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityGhast.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityMob.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityZombie.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
void |
EntityIronGolem.onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0.
|
void |
EntitySkeleton.onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0.
|
void |
EntityCreeper.onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0.
|
Modifier and Type | Method and Description |
---|---|
boolean |
EntityBat.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityOcelot.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityAnimal.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityWolf.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityHorse.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
void |
EntityVillager.onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0.
|
void |
EntityHorse.onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0.
|
Modifier and Type | Method and Description |
---|---|
boolean |
EntityPlayerMP.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityPlayer.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
void |
EntityPlayerMP.onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0.
|
void |
EntityPlayer.onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0.
|
Modifier and Type | Method and Description |
---|---|
boolean |
EntityWitherSkull.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntitySmallFireball.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
EntityFireball.attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
Modifier and Type | Class and Description |
---|---|
class |
EntityDamageSource |
class |
EntityDamageSourceIndirect |
Modifier and Type | Field and Description |
---|---|
static DamageSource |
DamageSource.anvil |
static DamageSource |
DamageSource.cactus |
static DamageSource |
DamageSource.drown |
static DamageSource |
DamageSource.fall |
static DamageSource |
DamageSource.fallingBlock |
static DamageSource |
DamageSource.generic |
static DamageSource |
DamageSource.inFire |
static DamageSource |
DamageSource.inWall |
static DamageSource |
DamageSource.lava |
static DamageSource |
DamageSource.magic |
static DamageSource |
DamageSource.onFire |
static DamageSource |
DamageSource.outOfWorld |
static DamageSource |
DamageSource.starve |
static DamageSource |
DamageSource.wither |
Modifier and Type | Method and Description |
---|---|
static DamageSource |
DamageSource.causeArrowDamage(EntityArrow par0EntityArrow,
Entity par1Entity)
returns EntityDamageSourceIndirect of an arrow
|
static DamageSource |
DamageSource.causeFireballDamage(EntityFireball par0EntityFireball,
Entity par1Entity)
returns EntityDamageSourceIndirect of a fireball
|
static DamageSource |
DamageSource.causeIndirectMagicDamage(Entity par0Entity,
Entity par1Entity) |
static DamageSource |
DamageSource.causeMobDamage(EntityLivingBase par0EntityLivingBase) |
static DamageSource |
DamageSource.causePlayerDamage(EntityPlayer par0EntityPlayer)
returns an EntityDamageSource of type player
|
static DamageSource |
DamageSource.causeThornsDamage(Entity par0Entity)
Returns the EntityDamageSource of the Thorns enchantment
|
static DamageSource |
DamageSource.causeThrownDamage(Entity par0Entity,
Entity par1Entity) |
DamageSource |
CombatEntry.getDamageSrc()
Get the DamageSource of the CombatEntry instance.
|
DamageSource |
DamageSource.setDifficultyScaled()
Set whether this damage source will have its damage amount scaled based on the current difficulty.
|
DamageSource |
DamageSource.setExplosion() |
static DamageSource |
DamageSource.setExplosionSource(Explosion par0Explosion) |
DamageSource |
DamageSource.setMagicDamage()
Define the damage type as magic based.
|
DamageSource |
DamageSource.setProjectile()
Define the damage type as projectile based.
|
Modifier and Type | Method and Description |
---|---|
void |
CombatTracker.func_94547_a(DamageSource par1DamageSource,
float par2,
float par3) |
Constructor and Description |
---|
CombatEntry(DamageSource par1DamageSource,
int par2,
float par3,
float par4,
String par5Str,
float par6) |
Modifier and Type | Method and Description |
---|---|
static float |
ISpecialArmor.ArmorProperties.ApplyArmor(EntityLivingBase entity,
ItemStack[] inventory,
DamageSource source,
double damage)
Gathers and applies armor reduction to damage being dealt to a entity.
|
void |
ISpecialArmor.damageArmor(EntityLivingBase entity,
ItemStack stack,
DamageSource source,
int damage,
int slot)
Applies damage to the ItemStack.
|
ISpecialArmor.ArmorProperties |
ISpecialArmor.getProperties(EntityLivingBase player,
ItemStack armor,
DamageSource source,
double damage,
int slot)
Retrieves the modifiers to be used when calculating armor damage.
|
static boolean |
ForgeHooks.onLivingAttack(EntityLivingBase entity,
DamageSource src,
float amount) |
static boolean |
ForgeHooks.onLivingDeath(EntityLivingBase entity,
DamageSource src) |
static boolean |
ForgeHooks.onLivingDrops(EntityLivingBase entity,
DamageSource source,
ArrayList<EntityItem> drops,
int lootingLevel,
boolean recentlyHit,
int specialDropValue) |
static float |
ForgeHooks.onLivingHurt(EntityLivingBase entity,
DamageSource src,
float amount) |
Modifier and Type | Field and Description |
---|---|
DamageSource |
LivingDropsEvent.source |
DamageSource |
LivingHurtEvent.source |
DamageSource |
LivingAttackEvent.source |
DamageSource |
LivingDeathEvent.source |
Constructor and Description |
---|
LivingAttackEvent(EntityLivingBase entity,
DamageSource source,
float ammount) |
LivingDeathEvent(EntityLivingBase entity,
DamageSource source) |
LivingDropsEvent(EntityLivingBase entity,
DamageSource source,
ArrayList<EntityItem> drops,
int lootingLevel,
boolean recentlyHit,
int specialDropValue) |
LivingHurtEvent(EntityLivingBase entity,
DamageSource source,
float ammount) |
Constructor and Description |
---|
PlayerDropsEvent(EntityPlayer entity,
DamageSource source,
ArrayList<EntityItem> drops,
boolean recentlyHit)
Creates a new event containing all the items that will drop into the
world when a player dies.
|