Modifier and Type | Method and Description |
---|---|
boolean |
DamageSourcePredicate.func_217952_a(ServerWorld p_217952_1_,
Vec3d p_217952_2_,
DamageSource p_217952_3_) |
boolean |
DamageSourcePredicate.test(ServerPlayerEntity player,
DamageSource source) |
boolean |
DamagePredicate.test(ServerPlayerEntity player,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
boolean |
EntityHurtPlayerTrigger.Instance.test(ServerPlayerEntity player,
DamageSource source,
float amountDealt,
float amountTaken,
boolean wasBlocked) |
boolean |
KilledTrigger.Instance.test(ServerPlayerEntity player,
Entity entity,
DamageSource source) |
boolean |
PlayerHurtEntityTrigger.Instance.test(ServerPlayerEntity player,
Entity entity,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
void |
EntityHurtPlayerTrigger.trigger(ServerPlayerEntity player,
DamageSource source,
float amountDealt,
float amountTaken,
boolean wasBlocked) |
void |
KilledTrigger.trigger(ServerPlayerEntity player,
Entity entity,
DamageSource source) |
void |
PlayerHurtEntityTrigger.trigger(ServerPlayerEntity player,
Entity entityIn,
DamageSource source,
float amountDealt,
float amountTaken,
boolean blocked) |
Modifier and Type | Method and Description |
---|---|
boolean |
RemoteClientPlayerEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
ClientPlayerEntity.attackEntityFrom(DamageSource source,
float amount) |
protected void |
ClientPlayerEntity.damageEntity(DamageSource damageSrc,
float damageAmount) |
Modifier and Type | Method and Description |
---|---|
int |
ProtectionEnchantment.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 |
LivingEntity.lastDamageSource |
Modifier and Type | Method and Description |
---|---|
DamageSource |
LivingEntity.getLastDamageSource() |
Modifier and Type | Method and Description |
---|---|
protected float |
LivingEntity.applyArmorCalculations(DamageSource source,
float damage) |
protected float |
LivingEntity.applyPotionDamageCalculations(DamageSource source,
float damage) |
boolean |
LivingEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
Entity.attackEntityFrom(DamageSource source,
float amount) |
void |
Entity.awardKillScore(Entity p_191956_1_,
int p_191956_2_,
DamageSource p_191956_3_) |
private boolean |
LivingEntity.canBlockDamageSource(DamageSource damageSourceIn) |
private boolean |
LivingEntity.checkTotemDeathProtection(DamageSource damageSourceIn) |
protected void |
LivingEntity.damageEntity(DamageSource damageSrc,
float damageAmount) |
protected void |
LivingEntity.dropLoot(DamageSource damageSourceIn,
boolean p_213354_2_) |
protected void |
MobEntity.dropLoot(DamageSource damageSourceIn,
boolean p_213354_2_) |
protected void |
LivingEntity.dropSpecialItems(DamageSource source,
int looting,
boolean recentlyHitIn) |
protected void |
MobEntity.dropSpecialItems(DamageSource source,
int looting,
boolean recentlyHitIn) |
protected SoundEvent |
LivingEntity.getHurtSound(DamageSource damageSourceIn) |
protected LootContext.Builder |
LivingEntity.getLootContextBuilder(boolean p_213363_1_,
DamageSource damageSourceIn) |
protected LootContext.Builder |
MobEntity.getLootContextBuilder(boolean p_213363_1_,
DamageSource damageSourceIn) |
boolean |
Entity.isInvulnerableTo(DamageSource source) |
void |
LivingEntity.onDeath(DamageSource cause) |
protected void |
LivingEntity.playHurtSound(DamageSource source) |
protected void |
MobEntity.playHurtSound(DamageSource source) |
protected void |
LivingEntity.spawnDrops(DamageSource damageSourceIn) |
Modifier and Type | Field and Description |
---|---|
static MemoryModuleType<DamageSource> |
MemoryModuleType.HURT_BY |
Modifier and Type | Method and Description |
---|---|
boolean |
WitherEntity.attackEntityFrom(DamageSource source,
float amount) |
protected void |
WitherEntity.dropSpecialItems(DamageSource source,
int looting,
boolean recentlyHitIn) |
protected SoundEvent |
WitherEntity.getHurtSound(DamageSource damageSourceIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EnderDragonEntity.attackDragonFrom(DamageSource source,
float amount) |
boolean |
EnderDragonPartEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EnderDragonEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EnderDragonEntity.func_213403_a(EnderDragonPartEntity p_213403_1_,
DamageSource p_213403_2_,
float p_213403_3_) |
protected SoundEvent |
EnderDragonEntity.getHurtSound(DamageSource damageSourceIn) |
void |
EnderDragonEntity.onCrystalDestroyed(EnderCrystalEntity crystal,
BlockPos pos,
DamageSource dmgSrc) |
Modifier and Type | Method and Description |
---|---|
float |
IPhase.func_221113_a(DamageSource p_221113_1_,
float p_221113_2_) |
float |
Phase.func_221113_a(DamageSource p_221113_1_,
float p_221113_2_) |
float |
SittingPhase.func_221113_a(DamageSource p_221113_1_,
float p_221113_2_) |
void |
IPhase.onCrystalDestroyed(EnderCrystalEntity crystal,
BlockPos pos,
DamageSource dmgSrc,
PlayerEntity plyr) |
void |
Phase.onCrystalDestroyed(EnderCrystalEntity crystal,
BlockPos pos,
DamageSource dmgSrc,
PlayerEntity plyr) |
void |
HoldingPatternPhase.onCrystalDestroyed(EnderCrystalEntity crystal,
BlockPos pos,
DamageSource dmgSrc,
PlayerEntity plyr) |
Modifier and Type | Method and Description |
---|---|
boolean |
ArmorStandEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
BoatEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EnderCrystalEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
ItemFrameEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
ExperienceOrbEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
ItemEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
HangingEntity.attackEntityFrom(DamageSource source,
float amount) |
private void |
ArmorStandEntity.func_213815_f(DamageSource p_213815_1_) |
private void |
ArmorStandEntity.func_213816_g(DamageSource p_213816_1_) |
private void |
ArmorStandEntity.func_213817_e(DamageSource p_213817_1_,
float p_213817_2_) |
protected SoundEvent |
ArmorStandEntity.getHurtSound(DamageSource damageSourceIn) |
private void |
EnderCrystalEntity.onCrystalDestroyed(DamageSource source) |
Modifier and Type | Method and Description |
---|---|
boolean |
TNTMinecartEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
AbstractMinecartEntity.attackEntityFrom(DamageSource source,
float amount) |
void |
ChestMinecartEntity.killMinecart(DamageSource source) |
void |
FurnaceMinecartEntity.killMinecart(DamageSource source) |
void |
ContainerMinecartEntity.killMinecart(DamageSource source) |
void |
TNTMinecartEntity.killMinecart(DamageSource source) |
void |
AbstractMinecartEntity.killMinecart(DamageSource source) |
void |
HopperMinecartEntity.killMinecart(DamageSource source) |
Modifier and Type | Method and Description |
---|---|
protected SoundEvent |
VillagerEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
WanderingTraderEntity.getHurtSound(DamageSource damageSourceIn) |
void |
VillagerEntity.onDeath(DamageSource cause) |
void |
AbstractVillagerEntity.onDeath(DamageSource cause) |
Modifier and Type | Method and Description |
---|---|
protected float |
WitchEntity.applyPotionDamageCalculations(DamageSource source,
float damage) |
boolean |
ShulkerEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
EndermanEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
ZombieEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
ZombiePigmanEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
GhastEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
SilverfishEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
GuardianEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
AbstractRaiderEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
MonsterEntity.attackEntityFrom(DamageSource source,
float amount) |
protected void |
EndermanEntity.dropSpecialItems(DamageSource source,
int looting,
boolean recentlyHitIn) |
protected void |
ZombieEntity.dropSpecialItems(DamageSource source,
int looting,
boolean recentlyHitIn) |
protected void |
WitherSkeletonEntity.dropSpecialItems(DamageSource source,
int looting,
boolean recentlyHitIn) |
protected void |
CreeperEntity.dropSpecialItems(DamageSource source,
int looting,
boolean recentlyHitIn) |
protected void |
SkeletonEntity.dropSpecialItems(DamageSource source,
int looting,
boolean recentlyHitIn) |
protected SoundEvent |
IllusionerEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
ElderGuardianEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
ShulkerEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
PillagerEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
BlazeEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EndermanEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
ZombieEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
WitherSkeletonEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
CreeperEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
WitchEntity.getHurtSound(DamageSource damageSourceIn) |
SoundEvent |
ZombieVillagerEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
SpiderEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
VindicatorEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
MagmaCubeEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
HuskEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
ZombiePigmanEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
DrownedEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
PhantomEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
GhastEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
SilverfishEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
RavagerEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
StrayEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
VexEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
GuardianEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
SlimeEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EvokerEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
EndermiteEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
SkeletonEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
MonsterEntity.getHurtSound(DamageSource damageSourceIn) |
void |
AbstractRaiderEntity.onDeath(DamageSource cause) |
Modifier and Type | Method and Description |
---|---|
boolean |
BatEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
WolfEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
IronGolemEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
RabbitEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
PandaEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
ParrotEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
OcelotEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
BeeEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
SquidEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
AnimalEntity.attackEntityFrom(DamageSource source,
float amount) |
protected SoundEvent |
ChickenEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
BatEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
WolfEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
GolemEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
CatEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
CowEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
SheepEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
FoxEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
DolphinEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
IronGolemEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
RabbitEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
PandaEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
ParrotEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
SnowGolemEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
OcelotEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
PolarBearEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
TurtleEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
BeeEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
PigEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
SquidEntity.getHurtSound(DamageSource damageSourceIn) |
void |
WolfEntity.onDeath(DamageSource cause) |
void |
IronGolemEntity.onDeath(DamageSource cause) |
void |
TameableEntity.onDeath(DamageSource cause) |
protected void |
FoxEntity.spawnDrops(DamageSource damageSourceIn) |
Modifier and Type | Method and Description |
---|---|
protected SoundEvent |
CodEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
PufferfishEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
TropicalFishEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
SalmonEntity.getHurtSound(DamageSource damageSourceIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractHorseEntity.attackEntityFrom(DamageSource source,
float amount) |
protected SoundEvent |
SkeletonHorseEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
DonkeyEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
AbstractHorseEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
MuleEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
HorseEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
LlamaEntity.getHurtSound(DamageSource damageSourceIn) |
protected SoundEvent |
ZombieHorseEntity.getHurtSound(DamageSource damageSourceIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
PlayerEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
ServerPlayerEntity.attackEntityFrom(DamageSource source,
float amount) |
void |
ServerPlayerEntity.awardKillScore(Entity p_191956_1_,
int p_191956_2_,
DamageSource p_191956_3_) |
protected void |
PlayerEntity.damageEntity(DamageSource damageSrc,
float damageAmount) |
protected SoundEvent |
PlayerEntity.getHurtSound(DamageSource damageSourceIn) |
boolean |
PlayerEntity.isInvulnerableTo(DamageSource source) |
boolean |
ServerPlayerEntity.isInvulnerableTo(DamageSource source) |
void |
PlayerEntity.onDeath(DamageSource cause) |
void |
ServerPlayerEntity.onDeath(DamageSource cause) |
Modifier and Type | Method and Description |
---|---|
boolean |
ShulkerBulletEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
SmallFireballEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
DamagingProjectileEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
WitherSkullEntity.attackEntityFrom(DamageSource source,
float amount) |
boolean |
DragonFireballEntity.attackEntityFrom(DamageSource source,
float amount) |
Modifier and Type | Class and Description |
---|---|
class |
EntityDamageSource |
class |
IndirectEntityDamageSource |
class |
NetherBedDamageSource |
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.DRYOUT |
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.SWEET_BERRY_BUSH |
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 | Field and Description |
---|---|
private DamageSource |
Explosion.damageSource |
Modifier and Type | Method and Description |
---|---|
DamageSource |
Explosion.getDamageSource() |
Modifier and Type | Method and Description |
---|---|
Explosion |
World.createExplosion(Entity entityIn,
DamageSource damageSourceIn,
double xIn,
double yIn,
double zIn,
float explosionRadius,
boolean causesFire,
Explosion.Mode modeIn) |
void |
Explosion.setDamageSource(DamageSource damageSourceIn) |
Modifier and Type | Method and Description |
---|---|
void |
DragonFightManager.onCrystalDestroyed(EnderCrystalEntity crystal,
DamageSource dmgSrc) |
Modifier and Type | Method and Description |
---|---|
Explosion |
ServerWorld.createExplosion(Entity entityIn,
DamageSource damageSourceIn,
double xIn,
double yIn,
double zIn,
float explosionRadius,
boolean causesFire,
Explosion.Mode modeIn) |
Modifier and Type | Field and Description |
---|---|
static LootParameter<DamageSource> |
LootParameters.DAMAGE_SOURCE |
Modifier and Type | Method and Description |
---|---|
static int |
ForgeHooks.getLootingLevel(Entity target,
Entity killer,
DamageSource cause) |
static int |
ForgeHooks.getLootingLevel(LivingEntity target,
DamageSource cause,
int level) |
static boolean |
ForgeHooks.onLivingAttack(LivingEntity entity,
DamageSource src,
float amount) |
static float |
ForgeHooks.onLivingDamage(LivingEntity entity,
DamageSource src,
float amount) |
static boolean |
ForgeHooks.onLivingDeath(LivingEntity entity,
DamageSource src) |
static boolean |
ForgeHooks.onLivingDrops(LivingEntity entity,
DamageSource source,
java.util.Collection<ItemEntity> drops,
int lootingLevel,
boolean recentlyHit) |
static float |
ForgeHooks.onLivingHurt(LivingEntity entity,
DamageSource src,
float amount) |
static boolean |
ForgeHooks.onPlayerAttack(LivingEntity entity,
DamageSource src,
float amount) |
Modifier and Type | Method and Description |
---|---|
boolean |
FakePlayer.isInvulnerableTo(DamageSource source) |
void |
FakePlayer.onDeath(DamageSource source) |
Modifier and Type | Field and Description |
---|---|
private DamageSource |
LootingLevelEvent.damageSource |
private DamageSource |
LivingDamageEvent.source |
private DamageSource |
LivingDropsEvent.source |
private DamageSource |
LivingAttackEvent.source |
private DamageSource |
LivingDeathEvent.source |
private DamageSource |
LivingHurtEvent.source |
Modifier and Type | Method and Description |
---|---|
DamageSource |
LootingLevelEvent.getDamageSource() |
DamageSource |
LivingDamageEvent.getSource() |
DamageSource |
LivingDropsEvent.getSource() |
DamageSource |
LivingAttackEvent.getSource() |
DamageSource |
LivingDeathEvent.getSource() |
DamageSource |
LivingHurtEvent.getSource() |
Constructor and Description |
---|
LivingAttackEvent(LivingEntity entity,
DamageSource source,
float amount) |
LivingDamageEvent(LivingEntity entity,
DamageSource source,
float amount) |
LivingDeathEvent(LivingEntity entity,
DamageSource source) |
LivingDropsEvent(LivingEntity entity,
DamageSource source,
java.util.Collection<ItemEntity> drops,
int lootingLevel,
boolean recentlyHit) |
LivingHurtEvent(LivingEntity entity,
DamageSource source,
float amount) |
LootingLevelEvent(LivingEntity entity,
DamageSource damageSource,
int lootingLevel) |