Modifier and Type | Method and Description |
---|---|
boolean |
DamageSourcePredicate.test(EntityPlayerMP player,
DamageSource source) |
boolean |
DamagePredicate.test(EntityPlayerMP player,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
boolean |
EntityHurtPlayerTrigger.Instance.test(EntityPlayerMP player,
DamageSource source,
float amountDealt,
float amountTaken,
boolean wasBlocked) |
boolean |
KilledTrigger.Instance.test(EntityPlayerMP player,
Entity entity,
DamageSource source) |
boolean |
PlayerHurtEntityTrigger.Instance.test(EntityPlayerMP player,
Entity entity,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
void |
EntityHurtPlayerTrigger.trigger(EntityPlayerMP player,
DamageSource source,
float amountDealt,
float amountTaken,
boolean wasBlocked) |
void |
EntityHurtPlayerTrigger.Listeners.trigger(EntityPlayerMP player,
DamageSource source,
float amountDealt,
float amountTaken,
boolean wasBlocked) |
void |
KilledTrigger.trigger(EntityPlayerMP player,
Entity entity,
DamageSource source) |
void |
KilledTrigger.Listeners.trigger(EntityPlayerMP player,
Entity entity,
DamageSource source) |
void |
PlayerHurtEntityTrigger.trigger(EntityPlayerMP player,
Entity entityIn,
DamageSource source,
float amountDealt,
float amountTaken,
boolean blocked) |
void |
PlayerHurtEntityTrigger.Listeners.trigger(EntityPlayerMP player,
Entity entity,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityOtherPlayerMP.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityPlayerSP.attackEntityFrom(DamageSource source,
float amount) |
protected void |
EntityPlayerSP.damageEntity(DamageSource damageSrc,
float damageAmount) |
Modifier and Type | Field and Description |
---|---|
DamageSource |
EnchantmentHelper.ModifierDamage.source |
Modifier and Type | Method and Description |
---|---|
int |
EnchantmentProtection.calcModifierDamage(int level,
DamageSource source) |
int |
Enchantment.calcModifierDamage(int level,
DamageSource source) |
static int |
EnchantmentHelper.getEnchantmentModifierDamage(java.lang.Iterable<ItemStack> stacks,
DamageSource source) |
Modifier and Type | Field and Description |
---|---|
private DamageSource |
EntityLivingBase.lastDamageSource |
Modifier and Type | Method and Description |
---|---|
DamageSource |
EntityLivingBase.getLastDamageSource() |
Modifier and Type | Method and Description |
---|---|
protected float |
EntityLivingBase.applyArmorCalculations(DamageSource source,
float damage) |
protected float |
EntityLivingBase.applyPotionDamageCalculations(DamageSource source,
float damage) |
boolean |
EntityHanging.attackEntityFrom(DamageSource source,
float amount) |
boolean |
Entity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
MultiPartEntityPart.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityLivingBase.attackEntityFrom(DamageSource source,
float amount) |
boolean |
IEntityMultiPart.attackEntityFromPart(MultiPartEntityPart dragonPart,
DamageSource source,
float damage) |
void |
Entity.awardKillScore(Entity p_191956_1_,
int p_191956_2_,
DamageSource p_191956_3_) |
private boolean |
EntityLivingBase.canBlockDamageSource(DamageSource damageSourceIn) |
private boolean |
EntityLivingBase.checkTotemDeathProtection(DamageSource p_190628_1_) |
protected void |
EntityLivingBase.damageEntity(DamageSource damageSrc,
float damageAmount) |
protected void |
EntityLiving.dropLoot(boolean wasRecentlyHit,
int lootingModifier,
DamageSource source) |
protected void |
EntityLivingBase.dropLoot(boolean wasRecentlyHit,
int lootingModifier,
DamageSource source) |
protected SoundEvent |
EntityLivingBase.getHurtSound(DamageSource damageSourceIn) |
boolean |
Entity.isEntityInvulnerable(DamageSource source) |
void |
EntityLivingBase.onDeath(DamageSource cause) |
protected void |
EntityLiving.playHurtSound(DamageSource source) |
protected void |
EntityLivingBase.playHurtSound(DamageSource source) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EntityDragon.attackDragonFrom(DamageSource source,
float amount) |
boolean |
EntityDragon.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityWither.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityDragon.attackEntityFromPart(MultiPartEntityPart dragonPart,
DamageSource source,
float damage) |
protected SoundEvent |
EntityDragon.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityWither.getHurtSound(DamageSource damageSourceIn) |
void |
EntityDragon.onCrystalDestroyed(EntityEnderCrystal crystal,
BlockPos pos,
DamageSource dmgSrc) |
Modifier and Type | Method and Description |
---|---|
float |
IPhase.getAdjustedDamage(MultiPartEntityPart pt,
DamageSource src,
float damage) |
float |
PhaseBase.getAdjustedDamage(MultiPartEntityPart pt,
DamageSource src,
float damage) |
float |
PhaseSittingBase.getAdjustedDamage(MultiPartEntityPart pt,
DamageSource src,
float damage) |
void |
IPhase.onCrystalDestroyed(EntityEnderCrystal crystal,
BlockPos pos,
DamageSource dmgSrc,
EntityPlayer plyr) |
void |
PhaseBase.onCrystalDestroyed(EntityEnderCrystal crystal,
BlockPos pos,
DamageSource dmgSrc,
EntityPlayer plyr) |
void |
PhaseHoldingPattern.onCrystalDestroyed(EntityEnderCrystal crystal,
BlockPos pos,
DamageSource dmgSrc,
EntityPlayer plyr) |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityArmorStand.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityItem.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityBoat.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityEnderCrystal.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityItemFrame.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityMinecartTNT.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityMinecart.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityXPOrb.attackEntityFrom(DamageSource source,
float amount) |
protected SoundEvent |
EntityArmorStand.getHurtSound(DamageSource damageSourceIn) |
void |
EntityMinecartHopper.killMinecart(DamageSource source) |
void |
EntityMinecartChest.killMinecart(DamageSource source) |
void |
EntityMinecartFurnace.killMinecart(DamageSource source) |
void |
EntityMinecartTNT.killMinecart(DamageSource source) |
void |
EntityMinecartContainer.killMinecart(DamageSource source) |
void |
EntityMinecart.killMinecart(DamageSource source) |
private void |
EntityEnderCrystal.onCrystalDestroyed(DamageSource source) |
Modifier and Type | Method and Description |
---|---|
protected float |
EntityWitch.applyPotionDamageCalculations(DamageSource source,
float damage) |
boolean |
EntityGuardian.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityShulker.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityZombie.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityMob.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityEnderman.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityGhast.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntitySilverfish.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityPigZombie.attackEntityFrom(DamageSource source,
float amount) |
protected SoundEvent |
EntityGolem.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntitySpider.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityMagmaCube.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityGuardian.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityElderGuardian.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityHusk.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityEvoker.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityCreeper.getHurtSound(DamageSource damageSourceIn) |
SoundEvent |
EntityZombieVillager.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityIllusionIllager.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityShulker.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntitySkeleton.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityZombie.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityPolarBear.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityVindicator.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityWitch.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityVex.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityMob.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityBlaze.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityIronGolem.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityEnderman.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityGhast.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntitySlime.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntitySilverfish.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityEndermite.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntitySnowman.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityPigZombie.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityWitherSkeleton.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityStray.getHurtSound(DamageSource damageSourceIn) |
void |
EntityCreeper.onDeath(DamageSource cause) |
void |
EntitySkeleton.onDeath(DamageSource cause) |
void |
EntityZombie.onDeath(DamageSource cause) |
void |
EntityIronGolem.onDeath(DamageSource cause) |
void |
EntityWitherSkeleton.onDeath(DamageSource cause) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractHorse.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityOcelot.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityRabbit.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityWolf.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityBat.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityAnimal.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityParrot.attackEntityFrom(DamageSource source,
float amount) |
protected SoundEvent |
AbstractHorse.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityOcelot.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityPig.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityDonkey.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityZombieHorse.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntitySquid.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityChicken.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityCow.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityRabbit.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityLlama.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityVillager.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityWolf.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntitySheep.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityHorse.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityMule.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityBat.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntitySkeletonHorse.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EntityParrot.getHurtSound(DamageSource damageSourceIn) |
void |
AbstractHorse.onDeath(DamageSource cause) |
void |
EntityPig.onDeath(DamageSource cause) |
void |
EntityTameable.onDeath(DamageSource cause) |
void |
AbstractChestHorse.onDeath(DamageSource cause) |
void |
EntityVillager.onDeath(DamageSource cause) |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityPlayer.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityPlayerMP.attackEntityFrom(DamageSource source,
float amount) |
void |
EntityPlayerMP.awardKillScore(Entity p_191956_1_,
int p_191956_2_,
DamageSource p_191956_3_) |
protected void |
EntityPlayer.damageEntity(DamageSource damageSrc,
float damageAmount) |
protected SoundEvent |
EntityPlayer.getHurtSound(DamageSource damageSourceIn) |
boolean |
EntityPlayerMP.isEntityInvulnerable(DamageSource source) |
void |
EntityPlayer.onDeath(DamageSource cause) |
void |
EntityPlayerMP.onDeath(DamageSource cause) |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityWitherSkull.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntitySmallFireball.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityDragonFireball.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityShulkerBullet.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EntityFireball.attackEntityFrom(DamageSource source,
float amount) |
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.CRAMMING |
private DamageSource |
CombatEntry.damageSrc |
static DamageSource |
DamageSource.DRAGON_BREATH |
static DamageSource |
DamageSource.DROWN |
static DamageSource |
DamageSource.FALL |
static DamageSource |
DamageSource.FALLING_BLOCK |
static DamageSource |
DamageSource.FIREWORKS |
static DamageSource |
DamageSource.FLY_INTO_WALL |
static DamageSource |
DamageSource.GENERIC |
static DamageSource |
DamageSource.HOT_FLOOR |
static DamageSource |
DamageSource.IN_FIRE |
static DamageSource |
DamageSource.IN_WALL |
static DamageSource |
DamageSource.LAVA |
static DamageSource |
DamageSource.LIGHTNING_BOLT |
static DamageSource |
DamageSource.MAGIC |
static DamageSource |
DamageSource.ON_FIRE |
static DamageSource |
DamageSource.OUT_OF_WORLD |
static DamageSource |
DamageSource.STARVE |
static DamageSource |
DamageSource.WITHER |
Modifier and Type | Method and Description |
---|---|
void |
CombatTracker.trackDamage(DamageSource damageSrc,
float healthIn,
float damageAmount) |
Constructor and Description |
---|
CombatEntry(DamageSource damageSrcIn,
int timeIn,
float healthAmount,
float damageAmount,
java.lang.String fallSuffixIn,
float fallDistanceIn) |
Modifier and Type | Method and Description |
---|---|
void |
DragonFightManager.onCrystalDestroyed(EntityEnderCrystal crystal,
DamageSource dmgSrc) |
Modifier and Type | Field and Description |
---|---|
private DamageSource |
LootContext.damageSource |
private DamageSource |
LootContext.Builder.damageSource |
Modifier and Type | Method and Description |
---|---|
LootContext.Builder |
LootContext.Builder.withDamageSource(DamageSource dmgSource) |
Constructor and Description |
---|
LootContext(float luckIn,
WorldServer worldIn,
LootTableManager lootTableManagerIn,
Entity lootedEntityIn,
EntityPlayer playerIn,
DamageSource damageSourceIn) |
Modifier and Type | Method and Description |
---|---|
static float |
ISpecialArmor.ArmorProperties.applyArmor(EntityLivingBase entity,
NonNullList<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.
|
static int |
ForgeHooks.getLootingLevel(Entity target,
Entity killer,
DamageSource cause) |
static int |
ForgeHooks.getLootingLevel(EntityLivingBase target,
DamageSource cause,
int level) |
ISpecialArmor.ArmorProperties |
ISpecialArmor.getProperties(EntityLivingBase player,
ItemStack armor,
DamageSource source,
double damage,
int slot)
Retrieves the modifiers to be used when calculating armor damage.
|
default boolean |
ISpecialArmor.handleUnblockableDamage(EntityLivingBase entity,
ItemStack armor,
DamageSource source,
double damage,
int slot)
Simple check to see if the armor should interact with "Unblockable" damage
sources.
|
static boolean |
ForgeHooks.onLivingAttack(EntityLivingBase entity,
DamageSource src,
float amount) |
static float |
ForgeHooks.onLivingDamage(EntityLivingBase entity,
DamageSource src,
float amount) |
static boolean |
ForgeHooks.onLivingDeath(EntityLivingBase entity,
DamageSource src) |
static boolean |
ForgeHooks.onLivingDrops(EntityLivingBase entity,
DamageSource source,
java.util.ArrayList<EntityItem> drops,
int lootingLevel,
boolean recentlyHit) |
static float |
ForgeHooks.onLivingHurt(EntityLivingBase entity,
DamageSource src,
float amount) |
static boolean |
ForgeHooks.onPlayerAttack(EntityLivingBase entity,
DamageSource src,
float amount) |
Modifier and Type | Method and Description |
---|---|
boolean |
FakePlayer.isEntityInvulnerable(DamageSource source) |
void |
FakePlayer.onDeath(DamageSource source) |
Modifier and Type | Method and Description |
---|---|
static void |
ForgeEventFactory.onPlayerDrops(EntityPlayer player,
DamageSource cause,
java.util.List<EntityItem> capturedDrops,
boolean recentlyHit) |
Modifier and Type | Field and Description |
---|---|
private DamageSource |
LootingLevelEvent.damageSource |
private DamageSource |
LivingAttackEvent.source |
private DamageSource |
LivingHurtEvent.source |
private DamageSource |
LivingDropsEvent.source |
private DamageSource |
LivingDeathEvent.source |
private DamageSource |
LivingDamageEvent.source |
Modifier and Type | Method and Description |
---|---|
DamageSource |
LootingLevelEvent.getDamageSource() |
DamageSource |
LivingAttackEvent.getSource() |
DamageSource |
LivingHurtEvent.getSource() |
DamageSource |
LivingDropsEvent.getSource() |
DamageSource |
LivingDeathEvent.getSource() |
DamageSource |
LivingDamageEvent.getSource() |
Constructor and Description |
---|
LivingAttackEvent(EntityLivingBase entity,
DamageSource source,
float amount) |
LivingDamageEvent(EntityLivingBase entity,
DamageSource source,
float amount) |
LivingDeathEvent(EntityLivingBase entity,
DamageSource source) |
LivingDropsEvent(EntityLivingBase entity,
DamageSource source,
java.util.List<EntityItem> drops,
int lootingLevel,
boolean recentlyHit) |
LivingHurtEvent(EntityLivingBase entity,
DamageSource source,
float amount) |
LootingLevelEvent(EntityLivingBase entity,
DamageSource damageSource,
int lootingLevel) |
Constructor and Description |
---|
PlayerDropsEvent(EntityPlayer entity,
DamageSource source,
java.util.List<EntityItem> drops,
boolean recentlyHit)
Creates a new event containing all the items that will drop into the
world when a player dies.
|