Uses of Class
net.minecraft.world.damagesource.DamageSource
Package
Description
-
Uses of DamageSource in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionboolean
DamagePredicate.matches
(ServerPlayer p_24918_, DamageSource p_24919_, float p_24920_, float p_24921_, boolean p_24922_) boolean
DamageSourcePredicate.matches
(ServerLevel p_25445_, Vec3 p_25446_, DamageSource p_25447_) boolean
DamageSourcePredicate.matches
(ServerPlayer p_25449_, DamageSource p_25450_) boolean
EntityHurtPlayerTrigger.TriggerInstance.matches
(ServerPlayer p_35201_, DamageSource p_35202_, float p_35203_, float p_35204_, boolean p_35205_) boolean
KilledTrigger.TriggerInstance.matches
(ServerPlayer p_48131_, LootContext p_48132_, DamageSource p_48133_) boolean
PlayerHurtEntityTrigger.TriggerInstance.matches
(ServerPlayer p_60143_, LootContext p_60144_, DamageSource p_60145_, float p_60146_, float p_60147_, boolean p_60148_) void
EntityHurtPlayerTrigger.trigger
(ServerPlayer p_35175_, DamageSource p_35176_, float p_35177_, float p_35178_, boolean p_35179_) void
KilledTrigger.trigger
(ServerPlayer p_48105_, Entity p_48106_, DamageSource p_48107_) void
PlayerHurtEntityTrigger.trigger
(ServerPlayer p_60113_, Entity p_60114_, DamageSource p_60115_, float p_60116_, float p_60117_, boolean p_60118_) -
Uses of DamageSource in net.minecraft.client.player
Modifier and TypeMethodDescriptionprotected void
LocalPlayer.actuallyHurt
(DamageSource p_108729_, float p_108730_) boolean
LocalPlayer.hurt
(DamageSource p_108662_, float p_108663_) boolean
RemotePlayer.hurt
(DamageSource p_108772_, float p_108773_) -
Uses of DamageSource in net.minecraft.server.level
Modifier and TypeMethodDescriptionvoid
ServerPlayer.awardKillScore
(Entity p_9050_, int p_9051_, DamageSource p_9052_) void
ServerPlayer.die
(DamageSource p_9035_) ServerLevel.explode
(Entity p_8653_, DamageSource p_8654_, ExplosionDamageCalculator p_8655_, double p_8656_, double p_8657_, double p_8658_, float p_8659_, boolean p_8660_, Explosion.BlockInteraction p_8661_) boolean
ServerPlayer.hurt
(DamageSource p_9037_, float p_9038_) boolean
ServerPlayer.isInvulnerableTo
(DamageSource p_9182_) -
Uses of DamageSource in net.minecraft.world.damagesource
Modifier and TypeClassDescriptionclass
class
class
Modifier and TypeFieldDescriptionstatic final DamageSource
DamageSource.ANVIL
static final DamageSource
DamageSource.CACTUS
static final DamageSource
DamageSource.CRAMMING
static final DamageSource
DamageSource.DRAGON_BREATH
static final DamageSource
DamageSource.DROWN
static final DamageSource
DamageSource.DRY_OUT
static final DamageSource
DamageSource.FALL
static final DamageSource
DamageSource.FALLING_BLOCK
static final DamageSource
DamageSource.FALLING_STALACTITE
static final DamageSource
DamageSource.FLY_INTO_WALL
static final DamageSource
DamageSource.FREEZE
static final DamageSource
DamageSource.GENERIC
static final DamageSource
DamageSource.HOT_FLOOR
static final DamageSource
DamageSource.IN_FIRE
static final DamageSource
DamageSource.IN_WALL
static final DamageSource
DamageSource.LAVA
static final DamageSource
DamageSource.LIGHTNING_BOLT
static final DamageSource
DamageSource.MAGIC
static final DamageSource
DamageSource.ON_FIRE
static final DamageSource
DamageSource.OUT_OF_WORLD
private final DamageSource
CombatEntry.source
static final DamageSource
DamageSource.STALAGMITE
static final DamageSource
DamageSource.STARVE
static final DamageSource
DamageSource.SWEET_BERRY_BUSH
static final DamageSource
DamageSource.WITHER
Modifier and TypeMethodDescriptionstatic DamageSource
DamageSource.arrow
(AbstractArrow p_19347_, Entity p_19348_) static DamageSource
DamageSource.badRespawnPointExplosion()
DamageSource.bypassArmor()
DamageSource.bypassEnchantments()
DamageSource.bypassInvul()
DamageSource.bypassMagic()
DamageSource.damageHelmet()
static DamageSource
DamageSource.explosion
(LivingEntity p_19374_) static DamageSource
static DamageSource
static DamageSource
DamageSource.fireworks
(FireworkRocketEntity p_19353_, Entity p_19354_) CombatEntry.getSource()
static DamageSource
DamageSource.indirectMagic
(Entity p_19368_, Entity p_19369_) static DamageSource
DamageSource.indirectMobAttack
(Entity p_19341_, LivingEntity p_19342_) static DamageSource
DamageSource.mobAttack
(LivingEntity p_19371_) static DamageSource
DamageSource.playerAttack
(Player p_19345_) DamageSource.setExplosion()
DamageSource.setIsFall()
DamageSource.setIsFire()
DamageSource.setMagic()
DamageSource.setNoAggro()
DamageSource.setProjectile()
DamageSource.setScalesWithDifficulty()
static DamageSource
static DamageSource
DamageSource.sting
(LivingEntity p_19365_) static DamageSource
static DamageSource
static DamageSource
static DamageSource
DamageSource.witherSkull
(WitherSkull p_19356_, Entity p_19357_) Modifier and TypeMethodDescriptionvoid
CombatTracker.recordDamage
(DamageSource p_19290_, float p_19291_, float p_19292_) ModifierConstructorDescriptionCombatEntry
(DamageSource p_19257_, int p_19258_, float p_19259_, float p_19260_, String p_19261_, float p_19262_) -
Uses of DamageSource in net.minecraft.world.entity
Modifier and TypeMethodDescriptionprotected void
LivingEntity.actuallyHurt
(DamageSource p_21240_, float p_21241_) void
Entity.awardKillScore
(Entity p_19953_, int p_19954_, DamageSource p_19955_) boolean
Entity.causeFallDamage
(float p_146828_, float p_146829_, DamageSource p_146830_) boolean
FlyingMob.causeFallDamage
(float p_147105_, float p_147106_, DamageSource p_147107_) boolean
LivingEntity.causeFallDamage
(float p_147187_, float p_147188_, DamageSource p_147189_) private boolean
LivingEntity.checkTotemDeathProtection
(DamageSource p_21263_) protected LootContext.Builder
LivingEntity.createLootContext
(boolean p_21105_, DamageSource p_21106_) protected LootContext.Builder
Mob.createLootContext
(boolean p_21453_, DamageSource p_21454_) void
LivingEntity.die
(DamageSource p_21014_) void
TamableAnimal.die
(DamageSource p_21809_) protected void
LivingEntity.dropAllDeathLoot
(DamageSource p_21192_) protected void
LivingEntity.dropCustomDeathLoot
(DamageSource p_21018_, int p_21019_, boolean p_21020_) protected void
Mob.dropCustomDeathLoot
(DamageSource p_21385_, int p_21386_, boolean p_21387_) protected void
LivingEntity.dropFromLootTable
(DamageSource p_21021_, boolean p_21022_) protected void
Mob.dropFromLootTable
(DamageSource p_21389_, boolean p_21390_) protected float
LivingEntity.getDamageAfterArmorAbsorb
(DamageSource p_21162_, float p_21163_) protected float
LivingEntity.getDamageAfterMagicAbsorb
(DamageSource p_21193_, float p_21194_) protected SoundEvent
GlowSquid.getHurtSound
(DamageSource p_147124_) protected SoundEvent
LivingEntity.getHurtSound
(DamageSource p_21239_) boolean
Entity.hurt
(DamageSource p_19946_, float p_19947_) boolean
ExperienceOrb.hurt
(DamageSource p_20785_, float p_20786_) boolean
GlowSquid.hurt
(DamageSource p_147114_, float p_147115_) boolean
LivingEntity.hurt
(DamageSource p_21016_, float p_21017_) protected void
LivingEntity.hurtArmor
(DamageSource p_21122_, float p_21123_) protected void
LivingEntity.hurtHelmet
(DamageSource p_147213_, float p_147214_) boolean
LivingEntity.isDamageSourceBlocked
(DamageSource p_21276_) boolean
Entity.isInvulnerableTo
(DamageSource p_20122_) protected void
LivingEntity.playHurtSound
(DamageSource p_21160_) protected void
Mob.playHurtSound
(DamageSource p_21493_) -
Uses of DamageSource in net.minecraft.world.entity.ai.memory
Modifier and TypeFieldDescriptionstatic final MemoryModuleType<DamageSource>
MemoryModuleType.HURT_BY
-
Uses of DamageSource in net.minecraft.world.entity.ambient
Modifier and TypeMethodDescriptionboolean
Bat.causeFallDamage
(float p_148702_, float p_148703_, DamageSource p_148704_) protected SoundEvent
Bat.getHurtSound
(DamageSource p_27451_) boolean
Bat.hurt
(DamageSource p_27424_, float p_27425_) -
Uses of DamageSource in net.minecraft.world.entity.animal
Modifier and TypeMethodDescriptionboolean
AbstractGolem.causeFallDamage
(float p_148711_, float p_148712_, DamageSource p_148713_) boolean
Bee.causeFallDamage
(float p_148750_, float p_148751_, DamageSource p_148752_) boolean
Cat.causeFallDamage
(float p_148859_, float p_148860_, DamageSource p_148861_) boolean
Chicken.causeFallDamage
(float p_148875_, float p_148876_, DamageSource p_148877_) boolean
Ocelot.causeFallDamage
(float p_148949_, float p_148950_, DamageSource p_148951_) boolean
Parrot.causeFallDamage
(float p_148989_, float p_148990_, DamageSource p_148991_) void
IronGolem.die
(DamageSource p_28846_) void
Wolf.die
(DamageSource p_30384_) protected void
Fox.dropAllDeathLoot
(DamageSource p_28536_) protected SoundEvent
AbstractGolem.getHurtSound
(DamageSource p_27517_) protected SoundEvent
Bee.getHurtSound
(DamageSource p_27845_) protected SoundEvent
Cat.getHurtSound
(DamageSource p_28160_) protected SoundEvent
Chicken.getHurtSound
(DamageSource p_28262_) protected SoundEvent
Cod.getHurtSound
(DamageSource p_28281_) protected SoundEvent
Cow.getHurtSound
(DamageSource p_28306_) protected SoundEvent
Dolphin.getHurtSound
(DamageSource p_28374_) protected SoundEvent
Fox.getHurtSound
(DamageSource p_28548_) protected SoundEvent
IronGolem.getHurtSound
(DamageSource p_28872_) protected SoundEvent
Ocelot.getHurtSound
(DamageSource p_29035_) protected SoundEvent
Panda.getHurtSound
(DamageSource p_29142_) protected SoundEvent
Parrot.getHurtSound
(DamageSource p_29437_) protected SoundEvent
Pig.getHurtSound
(DamageSource p_29502_) protected SoundEvent
PolarBear.getHurtSound
(DamageSource p_29559_) protected SoundEvent
Pufferfish.getHurtSound
(DamageSource p_29628_) protected SoundEvent
Rabbit.getHurtSound
(DamageSource p_29715_) protected SoundEvent
Salmon.getHurtSound
(DamageSource p_29795_) protected SoundEvent
Sheep.getHurtSound
(DamageSource p_29872_) protected SoundEvent
SnowGolem.getHurtSound
(DamageSource p_29929_) protected SoundEvent
Squid.getHurtSound
(DamageSource p_29980_) protected SoundEvent
TropicalFish.getHurtSound
(DamageSource p_30039_) protected SoundEvent
Turtle.getHurtSound
(DamageSource p_30202_) protected SoundEvent
Wolf.getHurtSound
(DamageSource p_30424_) boolean
Animal.hurt
(DamageSource p_27567_, float p_27568_) boolean
Bee.hurt
(DamageSource p_27762_, float p_27763_) boolean
IronGolem.hurt
(DamageSource p_28848_, float p_28849_) boolean
Panda.hurt
(DamageSource p_29097_, float p_29098_) boolean
Parrot.hurt
(DamageSource p_29378_, float p_29379_) boolean
Squid.hurt
(DamageSource p_29963_, float p_29964_) boolean
Wolf.hurt
(DamageSource p_30386_, float p_30387_) -
Uses of DamageSource in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionboolean
Allay.causeFallDamage
(float p_218321_, float p_218322_, DamageSource p_218323_) protected SoundEvent
Allay.getHurtSound
(DamageSource p_218369_) boolean
Allay.hurt
(DamageSource p_218339_, float p_218340_) -
Uses of DamageSource in net.minecraft.world.entity.animal.axolotl
Modifier and TypeMethodDescriptionprotected SoundEvent
Axolotl.getHurtSound
(DamageSource p_149161_) boolean
Axolotl.hurt
(DamageSource p_149115_, float p_149116_) -
Uses of DamageSource in net.minecraft.world.entity.animal.frog
Modifier and TypeMethodDescriptionprotected SoundEvent
Frog.getHurtSound
(DamageSource p_218510_) protected SoundEvent
Tadpole.getHurtSound
(DamageSource p_218713_) -
Uses of DamageSource in net.minecraft.world.entity.animal.goat
-
Uses of DamageSource in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescriptionboolean
AbstractHorse.causeFallDamage
(float p_149499_, float p_149500_, DamageSource p_149501_) boolean
Llama.causeFallDamage
(float p_149538_, float p_149539_, DamageSource p_149540_) protected SoundEvent
AbstractHorse.getHurtSound
(DamageSource p_30609_) protected SoundEvent
Donkey.getHurtSound
(DamageSource p_30682_) protected SoundEvent
Horse.getHurtSound
(DamageSource p_30720_) protected SoundEvent
Llama.getHurtSound
(DamageSource p_30803_) protected SoundEvent
Mule.getHurtSound
(DamageSource p_30886_) protected SoundEvent
SkeletonHorse.getHurtSound
(DamageSource p_30916_) protected SoundEvent
ZombieHorse.getHurtSound
(DamageSource p_31006_) -
Uses of DamageSource in net.minecraft.world.entity.boss
Modifier and TypeMethodDescriptionboolean
EnderDragonPart.hurt
(DamageSource p_31020_, float p_31021_) -
Uses of DamageSource in net.minecraft.world.entity.boss.enderdragon
Modifier and TypeMethodDescriptionprotected SoundEvent
EnderDragon.getHurtSound
(DamageSource p_31154_) boolean
EndCrystal.hurt
(DamageSource p_31050_, float p_31051_) boolean
EnderDragon.hurt
(DamageSource p_31113_, float p_31114_) boolean
EnderDragon.hurt
(EnderDragonPart p_31121_, DamageSource p_31122_, float p_31123_) void
EnderDragon.onCrystalDestroyed
(EndCrystal p_31125_, BlockPos p_31126_, DamageSource p_31127_) private void
EndCrystal.onDestroyedBy
(DamageSource p_31048_) protected boolean
EnderDragon.reallyHurt
(DamageSource p_31162_, float p_31163_) -
Uses of DamageSource in net.minecraft.world.entity.boss.enderdragon.phases
Modifier and TypeMethodDescriptionvoid
AbstractDragonPhaseInstance.onCrystalDestroyed
(EndCrystal p_31184_, BlockPos p_31185_, DamageSource p_31186_, Player p_31187_) void
DragonHoldingPatternPhase.onCrystalDestroyed
(EndCrystal p_31232_, BlockPos p_31233_, DamageSource p_31234_, Player p_31235_) void
DragonPhaseInstance.onCrystalDestroyed
(EndCrystal p_31315_, BlockPos p_31316_, DamageSource p_31317_, Player p_31318_) float
AbstractDragonPhaseInstance.onHurt
(DamageSource p_31181_, float p_31182_) float
AbstractDragonSittingPhase.onHurt
(DamageSource p_31199_, float p_31200_) float
DragonPhaseInstance.onHurt
(DamageSource p_31313_, float p_31314_) -
Uses of DamageSource in net.minecraft.world.entity.boss.wither
Modifier and TypeMethodDescriptionboolean
WitherBoss.causeFallDamage
(float p_149589_, float p_149590_, DamageSource p_149591_) protected void
WitherBoss.dropCustomDeathLoot
(DamageSource p_31464_, int p_31465_, boolean p_31466_) protected SoundEvent
WitherBoss.getHurtSound
(DamageSource p_31500_) boolean
WitherBoss.hurt
(DamageSource p_31461_, float p_31462_) -
Uses of DamageSource in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionprivate void
ArmorStand.brokenByAnything
(DamageSource p_31654_) private void
ArmorStand.brokenByPlayer
(DamageSource p_31647_) private void
ArmorStand.causeDamage
(DamageSource p_31649_, float p_31650_) protected SoundEvent
ArmorStand.getHurtSound
(DamageSource p_31636_) boolean
ArmorStand.hurt
(DamageSource p_31579_, float p_31580_) boolean
HangingEntity.hurt
(DamageSource p_31715_, float p_31716_) boolean
ItemFrame.hurt
(DamageSource p_31776_, float p_31777_) -
Uses of DamageSource in net.minecraft.world.entity.item
Modifier and TypeMethodDescriptionboolean
FallingBlockEntity.causeFallDamage
(float p_149643_, float p_149644_, DamageSource p_149645_) boolean
ItemEntity.hurt
(DamageSource p_32013_, float p_32014_) -
Uses of DamageSource in net.minecraft.world.entity.monster
Modifier and TypeMethodDescriptionboolean
Blaze.causeFallDamage
(float p_149683_, float p_149684_, DamageSource p_149685_) boolean
Creeper.causeFallDamage
(float p_149687_, float p_149688_, DamageSource p_149689_) boolean
MagmaCube.causeFallDamage
(float p_149717_, float p_149718_, DamageSource p_149719_) protected void
Creeper.dropCustomDeathLoot
(DamageSource p_32292_, int p_32293_, boolean p_32294_) protected void
EnderMan.dropCustomDeathLoot
(DamageSource p_32497_, int p_32498_, boolean p_32499_) protected void
Skeleton.dropCustomDeathLoot
(DamageSource p_33574_, int p_33575_, boolean p_33576_) protected void
WitherSkeleton.dropCustomDeathLoot
(DamageSource p_34174_, int p_34175_, boolean p_34176_) protected void
Zombie.dropCustomDeathLoot
(DamageSource p_34291_, int p_34292_, boolean p_34293_) protected float
Witch.getDamageAfterMagicAbsorb
(DamageSource p_34149_, float p_34150_) protected SoundEvent
Blaze.getHurtSound
(DamageSource p_32235_) protected SoundEvent
Creeper.getHurtSound
(DamageSource p_32309_) protected SoundEvent
Drowned.getHurtSound
(DamageSource p_32386_) protected SoundEvent
ElderGuardian.getHurtSound
(DamageSource p_32468_) protected SoundEvent
EnderMan.getHurtSound
(DamageSource p_32527_) protected SoundEvent
Endermite.getHurtSound
(DamageSource p_32615_) protected SoundEvent
Evoker.getHurtSound
(DamageSource p_32654_) protected SoundEvent
Ghast.getHurtSound
(DamageSource p_32750_) protected SoundEvent
Guardian.getHurtSound
(DamageSource p_32852_) protected SoundEvent
Husk.getHurtSound
(DamageSource p_32903_) protected SoundEvent
Illusioner.getHurtSound
(DamageSource p_32930_) protected SoundEvent
MagmaCube.getHurtSound
(DamageSource p_32992_) protected SoundEvent
Monster.getHurtSound
(DamageSource p_33034_) protected SoundEvent
Phantom.getHurtSound
(DamageSource p_33152_) protected SoundEvent
Pillager.getHurtSound
(DamageSource p_33306_) protected SoundEvent
Ravager.getHurtSound
(DamageSource p_33359_) protected SoundEvent
Shulker.getHurtSound
(DamageSource p_33457_) protected SoundEvent
Silverfish.getHurtSound
(DamageSource p_33549_) protected SoundEvent
Skeleton.getHurtSound
(DamageSource p_33579_) protected SoundEvent
Slime.getHurtSound
(DamageSource p_33631_) protected SoundEvent
Spider.getHurtSound
(DamageSource p_33814_) protected SoundEvent
Stray.getHurtSound
(DamageSource p_33850_) protected SoundEvent
Strider.getHurtSound
(DamageSource p_33934_) protected SoundEvent
Vex.getHurtSound
(DamageSource p_34023_) protected SoundEvent
Vindicator.getHurtSound
(DamageSource p_34103_) protected SoundEvent
Witch.getHurtSound
(DamageSource p_34154_) protected SoundEvent
WitherSkeleton.getHurtSound
(DamageSource p_34195_) protected SoundEvent
Zoglin.getHurtSound
(DamageSource p_34244_) protected SoundEvent
Zombie.getHurtSound
(DamageSource p_34327_) ZombieVillager.getHurtSound
(DamageSource p_34404_) protected SoundEvent
ZombifiedPiglin.getHurtSound
(DamageSource p_34466_) boolean
EnderMan.hurt
(DamageSource p_32494_, float p_32495_) boolean
Ghast.hurt
(DamageSource p_32730_, float p_32731_) boolean
Guardian.hurt
(DamageSource p_32820_, float p_32821_) boolean
Shulker.hurt
(DamageSource p_33421_, float p_33422_) boolean
Silverfish.hurt
(DamageSource p_33527_, float p_33528_) boolean
Zoglin.hurt
(DamageSource p_34214_, float p_34215_) boolean
Zombie.hurt
(DamageSource p_34288_, float p_34289_) private boolean
EnderMan.hurtWithCleanWater
(DamageSource p_186273_, ThrownPotion p_186274_, float p_186275_) boolean
Ghast.isInvulnerableTo
(DamageSource p_238289_) private static boolean
Ghast.isReflectedFireball
(DamageSource p_238408_) -
Uses of DamageSource in net.minecraft.world.entity.monster.hoglin
Modifier and TypeMethodDescriptionprotected SoundEvent
Hoglin.getHurtSound
(DamageSource p_34548_) boolean
Hoglin.hurt
(DamageSource p_34503_, float p_34504_) -
Uses of DamageSource in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionprotected void
Piglin.dropCustomDeathLoot
(DamageSource p_34697_, int p_34698_, boolean p_34699_) protected SoundEvent
Piglin.getHurtSound
(DamageSource p_34767_) protected SoundEvent
PiglinBrute.getHurtSound
(DamageSource p_35072_) boolean
Piglin.hurt
(DamageSource p_34694_, float p_34695_) boolean
PiglinBrute.hurt
(DamageSource p_35055_, float p_35056_) -
Uses of DamageSource in net.minecraft.world.entity.monster.warden
Modifier and TypeMethodDescriptionprotected SoundEvent
Warden.getHurtSound
(DamageSource p_219440_) boolean
Warden.hurt
(DamageSource p_219381_, float p_219382_) boolean
Warden.isInvulnerableTo
(DamageSource p_219427_) -
Uses of DamageSource in net.minecraft.world.entity.npc
Modifier and TypeMethodDescriptionvoid
AbstractVillager.die
(DamageSource p_35270_) void
Villager.die
(DamageSource p_35419_) protected SoundEvent
Villager.getHurtSound
(DamageSource p_35498_) protected SoundEvent
WanderingTrader.getHurtSound
(DamageSource p_35870_) -
Uses of DamageSource in net.minecraft.world.entity.player
Modifier and TypeMethodDescriptionprotected void
Player.actuallyHurt
(DamageSource p_36312_, float p_36313_) boolean
Player.causeFallDamage
(float p_150093_, float p_150094_, DamageSource p_150095_) void
Player.die
(DamageSource p_36152_) protected SoundEvent
Player.getHurtSound
(DamageSource p_36310_) boolean
Player.hurt
(DamageSource p_36154_, float p_36155_) void
Inventory.hurtArmor
(DamageSource p_150073_, float p_150074_, int[] p_150075_) protected void
Player.hurtArmor
(DamageSource p_36251_, float p_36252_) protected void
Player.hurtHelmet
(DamageSource p_150103_, float p_150104_) boolean
Player.isInvulnerableTo
(DamageSource p_36249_) -
Uses of DamageSource in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionboolean
AbstractHurtingProjectile.hurt
(DamageSource p_36839_, float p_36840_) boolean
DragonFireball.hurt
(DamageSource p_36910_, float p_36911_) boolean
ShulkerBullet.hurt
(DamageSource p_37338_, float p_37339_) boolean
SmallFireball.hurt
(DamageSource p_37381_, float p_37382_) boolean
WitherSkull.hurt
(DamageSource p_37616_, float p_37617_) -
Uses of DamageSource in net.minecraft.world.entity.raid
Modifier and TypeMethodDescriptionvoid
Raider.die
(DamageSource p_37847_) boolean
Raider.hurt
(DamageSource p_37849_, float p_37850_) -
Uses of DamageSource in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescriptionboolean
MinecartTNT.causeFallDamage
(float p_150347_, float p_150348_, DamageSource p_150349_) default void
ContainerEntity.chestVehicleDestroyed
(DamageSource p_219928_, Level p_219929_, Entity p_219930_) void
AbstractMinecart.destroy
(DamageSource p_38115_) void
AbstractMinecartContainer.destroy
(DamageSource p_38228_) protected void
Boat.destroy
(DamageSource p_219862_) void
ChestBoat.destroy
(DamageSource p_219892_) void
MinecartTNT.destroy
(DamageSource p_38664_) boolean
AbstractMinecart.hurt
(DamageSource p_38117_, float p_38118_) boolean
Boat.hurt
(DamageSource p_38319_, float p_38320_) boolean
MinecartTNT.hurt
(DamageSource p_38666_, float p_38667_) -
Uses of DamageSource in net.minecraft.world.item
-
Uses of DamageSource in net.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionint
Enchantment.getDamageProtection
(int p_44680_, DamageSource p_44681_) static int
EnchantmentHelper.getDamageProtection
(Iterable<ItemStack> p_44857_, DamageSource p_44858_) int
ProtectionEnchantment.getDamageProtection
(int p_45133_, DamageSource p_45134_) -
Uses of DamageSource in net.minecraft.world.level
Modifier and TypeMethodDescriptionLevel.explode
(Entity p_46526_, DamageSource p_46527_, ExplosionDamageCalculator p_46528_, double p_46529_, double p_46530_, double p_46531_, float p_46532_, boolean p_46533_, Explosion.BlockInteraction p_46534_) ModifierConstructorDescriptionExplosion
(Level p_46051_, Entity p_46052_, DamageSource p_46053_, ExplosionDamageCalculator p_46054_, double p_46055_, double p_46056_, double p_46057_, float p_46058_, boolean p_46059_, Explosion.BlockInteraction p_46060_) -
Uses of DamageSource in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionAnvilBlock.getFallDamageSource()
default DamageSource
Fallable.getFallDamageSource()
PointedDripstoneBlock.getFallDamageSource()
-
Uses of DamageSource in net.minecraft.world.level.dimension.end
Modifier and TypeMethodDescriptionvoid
EndDragonFight.onCrystalDestroyed
(EndCrystal p_64083_, DamageSource p_64084_) -
Uses of DamageSource in net.minecraft.world.level.storage.loot.parameters
Modifier and TypeFieldDescriptionstatic final LootContextParam<DamageSource>
LootContextParams.DAMAGE_SOURCE
-
Uses of DamageSource in net.minecraftforge.common
Modifier and TypeMethodDescriptionstatic int
ForgeHooks.getLootingLevel
(Entity target, @Nullable Entity killer, @Nullable DamageSource cause) static int
ForgeHooks.getLootingLevel
(LivingEntity target, @Nullable 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, Collection<ItemEntity> drops, int lootingLevel, boolean recentlyHit) static float
ForgeHooks.onLivingHurt
(LivingEntity entity, DamageSource src, float amount) static boolean
ForgeHooks.onLivingUseTotem
(LivingEntity entity, DamageSource damageSource, ItemStack totem, InteractionHand hand) static boolean
ForgeHooks.onPlayerAttack
(LivingEntity entity, DamageSource src, float amount) static ShieldBlockEvent
ForgeHooks.onShieldBlock
(LivingEntity blocker, DamageSource source, float blocked) -
Uses of DamageSource in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault void
IForgeItem.onDestroyed
(ItemEntity itemEntity, DamageSource damageSource) Called when an item entity for this stack is destroyed.default void
IForgeItemStack.onDestroyed
(ItemEntity itemEntity, DamageSource damageSource) Called when an item entity for this stack is destroyed. -
Uses of DamageSource in net.minecraftforge.common.util
Modifier and TypeMethodDescriptionvoid
FakePlayer.die
(DamageSource source) boolean
FakePlayer.isInvulnerableTo
(DamageSource source) -
Uses of DamageSource in net.minecraftforge.debug.entity
Modifier and TypeMethodDescriptionboolean
PartEntityTest.TestEntityPart.hurt
(DamageSource source, float amount) -
Uses of DamageSource in net.minecraftforge.event.entity.living
Modifier and TypeFieldDescriptionprivate final @Nullable DamageSource
LootingLevelEvent.damageSource
private final DamageSource
LivingAttackEvent.source
private final DamageSource
LivingDamageEvent.source
private final DamageSource
LivingDeathEvent.source
private final DamageSource
LivingDropsEvent.source
private final DamageSource
LivingHurtEvent.source
private final DamageSource
LivingUseTotemEvent.source
private final DamageSource
ShieldBlockEvent.source
Modifier and TypeMethodDescription@Nullable DamageSource
LootingLevelEvent.getDamageSource()
ShieldBlockEvent.getDamageSource()
LivingAttackEvent.getSource()
LivingDamageEvent.getSource()
LivingDeathEvent.getSource()
LivingDropsEvent.getSource()
LivingHurtEvent.getSource()
LivingUseTotemEvent.getSource()
Returns the damage source that caused the entity to die.ModifierConstructorDescriptionLivingAttackEvent
(LivingEntity entity, DamageSource source, float amount) LivingDamageEvent
(LivingEntity entity, DamageSource source, float amount) LivingDeathEvent
(LivingEntity entity, DamageSource source) LivingDropsEvent
(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, int lootingLevel, boolean recentlyHit) LivingHurtEvent
(LivingEntity entity, DamageSource source, float amount) LivingUseTotemEvent
(LivingEntity entity, DamageSource source, ItemStack totem, InteractionHand hand) LootingLevelEvent
(LivingEntity entity, @Nullable DamageSource damageSource, int lootingLevel) ShieldBlockEvent
(LivingEntity blocker, DamageSource source, float blocked)