Uses of Class
net.minecraft.world.damagesource.DamageSource
Packages that use DamageSource
Package
Description
- 
Uses of DamageSource in net.minecraft.advancements.critereonMethods in net.minecraft.advancements.critereon with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanDamagePredicate.matches(ServerPlayer p_24918_, DamageSource p_24919_, float p_24920_, float p_24921_, boolean p_24922_) booleanDamageSourcePredicate.matches(ServerLevel p_25445_, Vec3 p_25446_, DamageSource p_25447_) booleanDamageSourcePredicate.matches(ServerPlayer p_25449_, DamageSource p_25450_) booleanEntityHurtPlayerTrigger.TriggerInstance.matches(ServerPlayer p_35201_, DamageSource p_35202_, float p_35203_, float p_35204_, boolean p_35205_) booleanKilledTrigger.TriggerInstance.matches(ServerPlayer p_48131_, LootContext p_48132_, DamageSource p_48133_) booleanPlayerHurtEntityTrigger.TriggerInstance.matches(ServerPlayer p_60143_, LootContext p_60144_, DamageSource p_60145_, float p_60146_, float p_60147_, boolean p_60148_) voidEntityHurtPlayerTrigger.trigger(ServerPlayer p_35175_, DamageSource p_35176_, float p_35177_, float p_35178_, boolean p_35179_) voidKilledTrigger.trigger(ServerPlayer p_48105_, Entity p_48106_, DamageSource p_48107_) voidPlayerHurtEntityTrigger.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.playerMethods in net.minecraft.client.player with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidLocalPlayer.actuallyHurt(DamageSource p_108729_, float p_108730_) booleanLocalPlayer.hurt(DamageSource p_108662_, float p_108663_) booleanRemotePlayer.hurt(DamageSource p_108772_, float p_108773_) 
- 
Uses of DamageSource in net.minecraft.network.protocol.gameMethods in net.minecraft.network.protocol.game that return DamageSourceModifier and TypeMethodDescriptionConstructors in net.minecraft.network.protocol.game with parameters of type DamageSourceModifierConstructorDescriptionClientboundDamageEventPacket(Entity p_270474_, DamageSource p_270781_) 
- 
Uses of DamageSource in net.minecraft.server.commandsMethods in net.minecraft.server.commands with parameters of type DamageSourceModifier and TypeMethodDescriptionprivate static intDamageCommand.damage(CommandSourceStack p_270409_, Entity p_270496_, float p_270836_, DamageSource p_270727_) 
- 
Uses of DamageSource in net.minecraft.server.levelMethods in net.minecraft.server.level with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidServerPlayer.awardKillScore(Entity p_9050_, int p_9051_, DamageSource p_9052_) voidServerLevel.broadcastDamageEvent(Entity p_270420_, DamageSource p_270311_) voidServerPlayer.die(DamageSource p_9035_) ServerLevel.explode(Entity p_256039_, DamageSource p_255778_, ExplosionDamageCalculator p_256002_, double p_256067_, double p_256370_, double p_256153_, float p_256045_, boolean p_255686_, Level.ExplosionInteraction p_255827_, ParticleOptions p_312436_, ParticleOptions p_312391_, SoundEvent p_312491_) booleanServerPlayer.hurt(DamageSource p_9037_, float p_9038_) booleanServerPlayer.isInvulnerableTo(DamageSource p_9182_) 
- 
Uses of DamageSource in net.minecraft.world.damagesourceFields in net.minecraft.world.damagesource declared as DamageSourceModifier and TypeFieldDescriptionprivate final DamageSourceDamageSources.cactusprivate final DamageSourceDamageSources.crammingprivate final DamageSourceDamageSources.dragonBreathprivate final DamageSourceDamageSources.drownprivate final DamageSourceDamageSources.dryOutprivate final DamageSourceDamageSources.fallprivate final DamageSourceDamageSources.fellOutOfWorldprivate final DamageSourceDamageSources.flyIntoWallprivate final DamageSourceDamageSources.freezeprivate final DamageSourceDamageSources.genericprivate final DamageSourceDamageSources.genericKillprivate final DamageSourceDamageSources.hotFloorprivate final DamageSourceDamageSources.inFireprivate final DamageSourceDamageSources.inWallprivate final DamageSourceDamageSources.lavaprivate final DamageSourceDamageSources.lightningBoltprivate final DamageSourceDamageSources.magicprivate final DamageSourceDamageSources.onFireprivate final DamageSourceDamageSources.outsideBorderprivate final DamageSourceCombatEntry.sourceThe field for thesourcerecord component.private final DamageSourceDamageSources.stalagmiteprivate final DamageSourceDamageSources.starveprivate final DamageSourceDamageSources.sweetBerryBushprivate final DamageSourceDamageSources.witherMethods in net.minecraft.world.damagesource that return DamageSourceModifier and TypeMethodDescriptionDamageSources.arrow(AbstractArrow p_270570_, Entity p_270857_) DamageSources.badRespawnPointExplosion(Vec3 p_270175_) DamageSources.cactus()DamageSources.cramming()DamageSources.dragonBreath()DamageSources.drown()DamageSources.dryOut()DamageSources.fall()DamageSources.fallingBlock(Entity p_270643_) DamageSources.fallingStalactite(Entity p_270720_) DamageSources.fellOutOfWorld()DamageSources.fireworks(FireworkRocketEntity p_270571_, Entity p_270768_) DamageSources.flyIntoWall()DamageSources.freeze()DamageSources.generic()DamageSources.genericKill()DamageSources.hotFloor()DamageSources.indirectMagic(Entity p_270560_, Entity p_270646_) DamageSources.inFire()DamageSources.inWall()DamageSources.lava()DamageSources.lightningBolt()DamageSources.magic()DamageSources.mobAttack(LivingEntity p_270357_) DamageSources.mobProjectile(Entity p_270210_, LivingEntity p_270757_) DamageSources.noAggroMobAttack(LivingEntity p_270502_) DamageSources.onFire()DamageSources.outOfBorder()DamageSources.playerAttack(Player p_270723_) CombatEntry.source()Returns the value of thesourcerecord component.DamageSources.source(ResourceKey<DamageType> p_270957_) DamageSources.source(ResourceKey<DamageType> p_270142_, Entity p_270696_) DamageSources.source(ResourceKey<DamageType> p_270076_, Entity p_270656_, Entity p_270242_) DamageSources.stalagmite()DamageSources.starve()DamageSources.sting(LivingEntity p_270689_) DamageSources.sweetBerryBush()DamageSources.wither()DamageSources.witherSkull(WitherSkull p_270367_, Entity p_270887_) Methods in net.minecraft.world.damagesource with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidCombatTracker.recordDamage(DamageSource p_289533_, float p_289559_) private static booleanCombatTracker.shouldEnterCombat(DamageSource p_289554_) Constructors in net.minecraft.world.damagesource with parameters of type DamageSourceModifierConstructorDescriptionCombatEntry(DamageSource source, float damage, FallLocation fallLocation, float fallDistance) Creates an instance of aCombatEntryrecord class.
- 
Uses of DamageSource in net.minecraft.world.entityFields in net.minecraft.world.entity declared as DamageSourceMethods in net.minecraft.world.entity that return DamageSourceMethods in net.minecraft.world.entity with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidLivingEntity.actuallyHurt(DamageSource p_21240_, float p_21241_) voidEntity.awardKillScore(Entity p_19953_, int p_19954_, DamageSource p_19955_) booleanEntity.causeFallDamage(float p_146828_, float p_146829_, DamageSource p_146830_) booleanLivingEntity.causeFallDamage(float p_147187_, float p_147188_, DamageSource p_147189_) private booleanLivingEntity.checkTotemDeathProtection(DamageSource p_21263_) voidLivingEntity.die(DamageSource p_21014_) voidTamableAnimal.die(DamageSource p_21809_) protected voidLivingEntity.dropAllDeathLoot(DamageSource p_21192_) protected voidLivingEntity.dropCustomDeathLoot(DamageSource p_21018_, int p_21019_, boolean p_21020_) protected voidMob.dropCustomDeathLoot(DamageSource p_21385_, int p_21386_, boolean p_21387_) protected voidLivingEntity.dropFromLootTable(DamageSource p_21021_, boolean p_21022_) protected voidMob.dropFromLootTable(DamageSource p_21389_, boolean p_21390_) protected floatLivingEntity.getDamageAfterArmorAbsorb(DamageSource p_21162_, float p_21163_) protected floatLivingEntity.getDamageAfterMagicAbsorb(DamageSource p_21193_, float p_21194_) protected SoundEventGlowSquid.getHurtSound(DamageSource p_147124_) protected SoundEventLivingEntity.getHurtSound(DamageSource p_21239_) voidEntity.handleDamageEvent(DamageSource p_270704_) voidLivingEntity.handleDamageEvent(DamageSource p_270229_) booleanEntity.hurt(DamageSource p_19946_, float p_19947_) booleanExperienceOrb.hurt(DamageSource p_20785_, float p_20786_) booleanGlowSquid.hurt(DamageSource p_147114_, float p_147115_) booleanLivingEntity.hurt(DamageSource p_21016_, float p_21017_) protected voidLivingEntity.hurtArmor(DamageSource p_21122_, float p_21123_) protected voidLivingEntity.hurtHelmet(DamageSource p_147213_, float p_147214_) booleanLivingEntity.isDamageSourceBlocked(DamageSource p_21276_) booleanEntity.isInvulnerableTo(DamageSource p_20122_) protected voidLivingEntity.playHurtSound(DamageSource p_21160_) protected voidMob.playHurtSound(DamageSource p_21493_) 
- 
Uses of DamageSource in net.minecraft.world.entity.ai.memoryFields in net.minecraft.world.entity.ai.memory with type parameters of type DamageSourceModifier and TypeFieldDescriptionstatic final MemoryModuleType<DamageSource>MemoryModuleType.HURT_BY
- 
Uses of DamageSource in net.minecraft.world.entity.ambientMethods in net.minecraft.world.entity.ambient with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventBat.getHurtSound(DamageSource p_27451_) booleanBat.hurt(DamageSource p_27424_, float p_27425_) 
- 
Uses of DamageSource in net.minecraft.world.entity.animalMethods in net.minecraft.world.entity.animal with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidIronGolem.die(DamageSource p_28846_) voidWolf.die(DamageSource p_30384_) protected voidFox.dropAllDeathLoot(DamageSource p_28536_) protected SoundEventAbstractGolem.getHurtSound(DamageSource p_27517_) protected SoundEventBee.getHurtSound(DamageSource p_27845_) protected SoundEventCat.getHurtSound(DamageSource p_28160_) protected SoundEventChicken.getHurtSound(DamageSource p_28262_) protected SoundEventCod.getHurtSound(DamageSource p_28281_) protected SoundEventCow.getHurtSound(DamageSource p_28306_) protected SoundEventDolphin.getHurtSound(DamageSource p_28374_) protected SoundEventFox.getHurtSound(DamageSource p_28548_) protected SoundEventIronGolem.getHurtSound(DamageSource p_28872_) protected SoundEventOcelot.getHurtSound(DamageSource p_29035_) protected SoundEventPanda.getHurtSound(DamageSource p_29142_) protected SoundEventParrot.getHurtSound(DamageSource p_29437_) protected SoundEventPig.getHurtSound(DamageSource p_29502_) protected SoundEventPolarBear.getHurtSound(DamageSource p_29559_) protected SoundEventPufferfish.getHurtSound(DamageSource p_29628_) protected SoundEventRabbit.getHurtSound(DamageSource p_29715_) protected SoundEventSalmon.getHurtSound(DamageSource p_29795_) protected SoundEventSheep.getHurtSound(DamageSource p_29872_) protected SoundEventSnowGolem.getHurtSound(DamageSource p_29929_) protected SoundEventSquid.getHurtSound(DamageSource p_29980_) protected SoundEventTropicalFish.getHurtSound(DamageSource p_30039_) protected SoundEventTurtle.getHurtSound(DamageSource p_30202_) protected SoundEventWolf.getHurtSound(DamageSource p_30424_) booleanAnimal.hurt(DamageSource p_27567_, float p_27568_) booleanBee.hurt(DamageSource p_27762_, float p_27763_) booleanIronGolem.hurt(DamageSource p_28848_, float p_28849_) booleanPanda.hurt(DamageSource p_29097_, float p_29098_) booleanParrot.hurt(DamageSource p_29378_, float p_29379_) booleanSquid.hurt(DamageSource p_29963_, float p_29964_) booleanWolf.hurt(DamageSource p_30386_, float p_30387_) 
- 
Uses of DamageSource in net.minecraft.world.entity.animal.allayMethods in net.minecraft.world.entity.animal.allay with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventAllay.getHurtSound(DamageSource p_218369_) booleanAllay.hurt(DamageSource p_218339_, float p_218340_) 
- 
Uses of DamageSource in net.minecraft.world.entity.animal.axolotlMethods in net.minecraft.world.entity.animal.axolotl with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventAxolotl.getHurtSound(DamageSource p_149161_) booleanAxolotl.hurt(DamageSource p_149115_, float p_149116_) 
- 
Uses of DamageSource in net.minecraft.world.entity.animal.camelMethods in net.minecraft.world.entity.animal.camel with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidCamel.actuallyHurt(DamageSource p_250410_, float p_251451_) protected SoundEventCamel.getHurtSound(DamageSource p_250052_) 
- 
Uses of DamageSource in net.minecraft.world.entity.animal.frogMethods in net.minecraft.world.entity.animal.frog with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventFrog.getHurtSound(DamageSource p_218510_) protected SoundEventTadpole.getHurtSound(DamageSource p_218713_) 
- 
Uses of DamageSource in net.minecraft.world.entity.animal.goatMethods in net.minecraft.world.entity.animal.goat with parameters of type DamageSource
- 
Uses of DamageSource in net.minecraft.world.entity.animal.horseMethods in net.minecraft.world.entity.animal.horse with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanAbstractHorse.causeFallDamage(float p_149499_, float p_149500_, DamageSource p_149501_) booleanLlama.causeFallDamage(float p_149538_, float p_149539_, DamageSource p_149540_) protected SoundEventDonkey.getHurtSound(DamageSource p_30682_) protected SoundEventHorse.getHurtSound(DamageSource p_30720_) protected SoundEventLlama.getHurtSound(DamageSource p_30803_) protected SoundEventMule.getHurtSound(DamageSource p_30886_) protected SoundEventSkeletonHorse.getHurtSound(DamageSource p_30916_) protected SoundEventZombieHorse.getHurtSound(DamageSource p_31006_) booleanAbstractHorse.hurt(DamageSource p_252258_, float p_250984_) 
- 
Uses of DamageSource in net.minecraft.world.entity.animal.snifferMethods in net.minecraft.world.entity.animal.sniffer with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidSniffer.die(DamageSource p_277689_) protected SoundEventSniffer.getHurtSound(DamageSource p_273718_) 
- 
Uses of DamageSource in net.minecraft.world.entity.bossMethods in net.minecraft.world.entity.boss with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanEnderDragonPart.hurt(DamageSource p_31020_, float p_31021_) 
- 
Uses of DamageSource in net.minecraft.world.entity.boss.enderdragonMethods in net.minecraft.world.entity.boss.enderdragon with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventEnderDragon.getHurtSound(DamageSource p_31154_) booleanEndCrystal.hurt(DamageSource p_31050_, float p_31051_) booleanEnderDragon.hurt(DamageSource p_31113_, float p_31114_) booleanEnderDragon.hurt(EnderDragonPart p_31121_, DamageSource p_31122_, float p_31123_) voidEnderDragon.onCrystalDestroyed(EndCrystal p_31125_, BlockPos p_31126_, DamageSource p_31127_) private voidEndCrystal.onDestroyedBy(DamageSource p_31048_) protected booleanEnderDragon.reallyHurt(DamageSource p_31162_, float p_31163_) 
- 
Uses of DamageSource in net.minecraft.world.entity.boss.enderdragon.phasesMethods in net.minecraft.world.entity.boss.enderdragon.phases with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidAbstractDragonPhaseInstance.onCrystalDestroyed(EndCrystal p_31184_, BlockPos p_31185_, DamageSource p_31186_, Player p_31187_) voidDragonHoldingPatternPhase.onCrystalDestroyed(EndCrystal p_31232_, BlockPos p_31233_, DamageSource p_31234_, Player p_31235_) voidDragonPhaseInstance.onCrystalDestroyed(EndCrystal p_31315_, BlockPos p_31316_, DamageSource p_31317_, Player p_31318_) floatAbstractDragonPhaseInstance.onHurt(DamageSource p_31181_, float p_31182_) floatAbstractDragonSittingPhase.onHurt(DamageSource p_31199_, float p_31200_) floatDragonPhaseInstance.onHurt(DamageSource p_31313_, float p_31314_) 
- 
Uses of DamageSource in net.minecraft.world.entity.boss.witherMethods in net.minecraft.world.entity.boss.wither with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidWitherBoss.dropCustomDeathLoot(DamageSource p_31464_, int p_31465_, boolean p_31466_) protected SoundEventWitherBoss.getHurtSound(DamageSource p_31500_) booleanWitherBoss.hurt(DamageSource p_31461_, float p_31462_) 
- 
Uses of DamageSource in net.minecraft.world.entity.decorationMethods in net.minecraft.world.entity.decoration with parameters of type DamageSourceModifier and TypeMethodDescriptionprivate voidArmorStand.brokenByAnything(DamageSource p_31654_) private voidArmorStand.brokenByPlayer(DamageSource p_31647_) private voidArmorStand.causeDamage(DamageSource p_31649_, float p_31650_) protected SoundEventArmorStand.getHurtSound(DamageSource p_31636_) booleanArmorStand.hurt(DamageSource p_31579_, float p_31580_) booleanHangingEntity.hurt(DamageSource p_31715_, float p_31716_) booleanItemFrame.hurt(DamageSource p_31776_, float p_31777_) 
- 
Uses of DamageSource in net.minecraft.world.entity.itemMethods in net.minecraft.world.entity.item with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanFallingBlockEntity.causeFallDamage(float p_149643_, float p_149644_, DamageSource p_149645_) booleanItemEntity.hurt(DamageSource p_32013_, float p_32014_) 
- 
Uses of DamageSource in net.minecraft.world.entity.monsterMethods in net.minecraft.world.entity.monster with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanCreeper.causeFallDamage(float p_149687_, float p_149688_, DamageSource p_149689_) protected voidCreeper.dropCustomDeathLoot(DamageSource p_32292_, int p_32293_, boolean p_32294_) protected voidEnderMan.dropCustomDeathLoot(DamageSource p_32497_, int p_32498_, boolean p_32499_) protected voidSkeleton.dropCustomDeathLoot(DamageSource p_33574_, int p_33575_, boolean p_33576_) protected voidWitherSkeleton.dropCustomDeathLoot(DamageSource p_34174_, int p_34175_, boolean p_34176_) protected voidZombie.dropCustomDeathLoot(DamageSource p_34291_, int p_34292_, boolean p_34293_) protected floatWitch.getDamageAfterMagicAbsorb(DamageSource p_34149_, float p_34150_) protected SoundEventBlaze.getHurtSound(DamageSource p_32235_) protected SoundEventCreeper.getHurtSound(DamageSource p_32309_) protected SoundEventDrowned.getHurtSound(DamageSource p_32386_) protected SoundEventElderGuardian.getHurtSound(DamageSource p_32468_) protected SoundEventEnderMan.getHurtSound(DamageSource p_32527_) protected SoundEventEndermite.getHurtSound(DamageSource p_32615_) protected SoundEventEvoker.getHurtSound(DamageSource p_32654_) protected SoundEventGhast.getHurtSound(DamageSource p_32750_) protected SoundEventGuardian.getHurtSound(DamageSource p_32852_) protected SoundEventHusk.getHurtSound(DamageSource p_32903_) protected SoundEventIllusioner.getHurtSound(DamageSource p_32930_) protected SoundEventMagmaCube.getHurtSound(DamageSource p_32992_) protected SoundEventMonster.getHurtSound(DamageSource p_33034_) protected SoundEventPhantom.getHurtSound(DamageSource p_33152_) protected SoundEventPillager.getHurtSound(DamageSource p_33306_) protected SoundEventRavager.getHurtSound(DamageSource p_33359_) protected SoundEventShulker.getHurtSound(DamageSource p_33457_) protected SoundEventSilverfish.getHurtSound(DamageSource p_33549_) protected SoundEventSkeleton.getHurtSound(DamageSource p_33579_) protected SoundEventSlime.getHurtSound(DamageSource p_33631_) protected SoundEventSpider.getHurtSound(DamageSource p_33814_) protected SoundEventStray.getHurtSound(DamageSource p_33850_) protected SoundEventStrider.getHurtSound(DamageSource p_33934_) protected SoundEventVex.getHurtSound(DamageSource p_34023_) protected SoundEventVindicator.getHurtSound(DamageSource p_34103_) protected SoundEventWitch.getHurtSound(DamageSource p_34154_) protected SoundEventWitherSkeleton.getHurtSound(DamageSource p_34195_) protected SoundEventZoglin.getHurtSound(DamageSource p_34244_) protected SoundEventZombie.getHurtSound(DamageSource p_34327_) ZombieVillager.getHurtSound(DamageSource p_34404_) protected SoundEventZombifiedPiglin.getHurtSound(DamageSource p_34466_) booleanEnderMan.hurt(DamageSource p_32494_, float p_32495_) booleanGhast.hurt(DamageSource p_32730_, float p_32731_) booleanGuardian.hurt(DamageSource p_32820_, float p_32821_) booleanShulker.hurt(DamageSource p_33421_, float p_33422_) booleanSilverfish.hurt(DamageSource p_33527_, float p_33528_) booleanZoglin.hurt(DamageSource p_34214_, float p_34215_) booleanZombie.hurt(DamageSource p_34288_, float p_34289_) private booleanEnderMan.hurtWithCleanWater(DamageSource p_186273_, ThrownPotion p_186274_, float p_186275_) booleanGhast.isInvulnerableTo(DamageSource p_238289_) private static booleanGhast.isReflectedFireball(DamageSource p_238408_) 
- 
Uses of DamageSource in net.minecraft.world.entity.monster.breezeMethods in net.minecraft.world.entity.monster.breeze with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanBreeze.causeFallDamage(float p_312702_, float p_312120_, DamageSource p_312076_) protected SoundEventBreeze.getHurtSound(DamageSource p_312252_) booleanBreeze.isInvulnerableTo(DamageSource p_312691_) 
- 
Uses of DamageSource in net.minecraft.world.entity.monster.hoglinMethods in net.minecraft.world.entity.monster.hoglin with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventHoglin.getHurtSound(DamageSource p_34548_) booleanHoglin.hurt(DamageSource p_34503_, float p_34504_) 
- 
Uses of DamageSource in net.minecraft.world.entity.monster.piglinMethods in net.minecraft.world.entity.monster.piglin with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidPiglin.dropCustomDeathLoot(DamageSource p_34697_, int p_34698_, boolean p_34699_) protected SoundEventPiglin.getHurtSound(DamageSource p_34767_) protected SoundEventPiglinBrute.getHurtSound(DamageSource p_35072_) booleanPiglin.hurt(DamageSource p_34694_, float p_34695_) booleanPiglinBrute.hurt(DamageSource p_35055_, float p_35056_) 
- 
Uses of DamageSource in net.minecraft.world.entity.monster.wardenMethods in net.minecraft.world.entity.monster.warden with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventWarden.getHurtSound(DamageSource p_219440_) booleanWarden.hurt(DamageSource p_219381_, float p_219382_) booleanWarden.isInvulnerableTo(DamageSource p_219427_) 
- 
Uses of DamageSource in net.minecraft.world.entity.npcMethods in net.minecraft.world.entity.npc with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidAbstractVillager.die(DamageSource p_35270_) voidVillager.die(DamageSource p_35419_) protected SoundEventVillager.getHurtSound(DamageSource p_35498_) protected SoundEventWanderingTrader.getHurtSound(DamageSource p_35870_) 
- 
Uses of DamageSource in net.minecraft.world.entity.playerMethods in net.minecraft.world.entity.player with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidPlayer.actuallyHurt(DamageSource p_36312_, float p_36313_) booleanPlayer.causeFallDamage(float p_150093_, float p_150094_, DamageSource p_150095_) voidPlayer.die(DamageSource p_36152_) protected SoundEventPlayer.getHurtSound(DamageSource p_36310_) booleanPlayer.hurt(DamageSource p_36154_, float p_36155_) voidInventory.hurtArmor(DamageSource p_150073_, float p_150074_, int[] p_150075_) protected voidPlayer.hurtArmor(DamageSource p_36251_, float p_36252_) protected voidPlayer.hurtHelmet(DamageSource p_150103_, float p_150104_) booleanPlayer.isInvulnerableTo(DamageSource p_36249_) 
- 
Uses of DamageSource in net.minecraft.world.entity.projectileMethods in net.minecraft.world.entity.projectile with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanAbstractHurtingProjectile.hurt(DamageSource p_36839_, float p_36840_) booleanDragonFireball.hurt(DamageSource p_36910_, float p_36911_) booleanShulkerBullet.hurt(DamageSource p_37338_, float p_37339_) booleanSmallFireball.hurt(DamageSource p_37381_, float p_37382_) booleanWitherSkull.hurt(DamageSource p_37616_, float p_37617_) 
- 
Uses of DamageSource in net.minecraft.world.entity.raidMethods in net.minecraft.world.entity.raid with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidRaider.die(DamageSource p_37847_) booleanRaider.hurt(DamageSource p_37849_, float p_37850_) 
- 
Uses of DamageSource in net.minecraft.world.entity.vehicleMethods in net.minecraft.world.entity.vehicle with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanMinecartTNT.causeFallDamage(float p_150347_, float p_150348_, DamageSource p_150349_) default voidContainerEntity.chestVehicleDestroyed(DamageSource p_219928_, Level p_219929_, Entity p_219930_) private static booleanMinecartTNT.damageSourceIgnitesTnt(DamageSource p_312109_) voidAbstractMinecartContainer.destroy(DamageSource p_38228_) voidChestBoat.destroy(DamageSource p_219892_) voidMinecartTNT.destroy(DamageSource p_38664_) protected voidVehicleEntity.destroy(DamageSource p_306223_) protected voidMinecartTNT.explode(DamageSource p_259539_, double p_260287_) booleanMinecartTNT.hurt(DamageSource p_38666_, float p_38667_) booleanVehicleEntity.hurt(DamageSource p_305898_, float p_305999_) (package private) booleanMinecartTNT.shouldSourceDestroy(DamageSource p_312558_) (package private) booleanVehicleEntity.shouldSourceDestroy(DamageSource p_312875_) 
- 
Uses of DamageSource in net.minecraft.world.itemMethods in net.minecraft.world.item with parameters of type DamageSource
- 
Uses of DamageSource in net.minecraft.world.item.enchantmentMethods in net.minecraft.world.item.enchantment with parameters of type DamageSourceModifier and TypeMethodDescriptionintEnchantment.getDamageProtection(int p_44680_, DamageSource p_44681_) static intEnchantmentHelper.getDamageProtection(Iterable<ItemStack> p_44857_, DamageSource p_44858_) intProtectionEnchantment.getDamageProtection(int p_45133_, DamageSource p_45134_) 
- 
Uses of DamageSource in net.minecraft.world.levelFields in net.minecraft.world.level declared as DamageSourceMethods in net.minecraft.world.level that return DamageSourceModifier and TypeMethodDescriptionstatic DamageSourceExplosion.getDefaultDamageSource(Level p_312716_, Entity p_312608_) Methods in net.minecraft.world.level with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidLevel.broadcastDamageEvent(Entity p_270831_, DamageSource p_270361_) Level.explode(Entity p_256145_, DamageSource p_256004_, ExplosionDamageCalculator p_255696_, double p_256208_, double p_256036_, double p_255746_, float p_256647_, boolean p_256098_, Level.ExplosionInteraction p_256104_) Level.explode(Entity p_311934_, DamageSource p_312790_, ExplosionDamageCalculator p_311975_, double p_312493_, double p_312456_, double p_312719_, float p_312292_, boolean p_312144_, Level.ExplosionInteraction p_312265_, boolean p_312145_, ParticleOptions p_312842_, ParticleOptions p_312060_, SoundEvent p_311784_) Level.explode(Entity p_256233_, DamageSource p_255861_, ExplosionDamageCalculator p_255867_, double p_256447_, double p_255732_, double p_255717_, float p_256013_, boolean p_256228_, Level.ExplosionInteraction p_255784_, ParticleOptions p_311886_, ParticleOptions p_311887_, SoundEvent p_312492_) Level.explode(Entity p_255653_, DamageSource p_256558_, ExplosionDamageCalculator p_255929_, Vec3 p_256001_, float p_255963_, boolean p_256099_, Level.ExplosionInteraction p_256371_) Constructors in net.minecraft.world.level with parameters of type DamageSourceModifierConstructorDescriptionExplosion(Level p_46024_, Entity p_46025_, DamageSource p_312268_, ExplosionDamageCalculator p_312205_, double p_46026_, double p_46027_, double p_46028_, float p_46029_, boolean p_312333_, Explosion.BlockInteraction p_312294_, ParticleOptions p_312158_, ParticleOptions p_311904_, SoundEvent p_312640_) 
- 
Uses of DamageSource in net.minecraft.world.level.blockMethods in net.minecraft.world.level.block that return DamageSourceModifier and TypeMethodDescriptionAnvilBlock.getFallDamageSource(Entity p_254036_) default DamageSourceFallable.getFallDamageSource(Entity p_253907_) PointedDripstoneBlock.getFallDamageSource(Entity p_254432_) 
- 
Uses of DamageSource in net.minecraft.world.level.dimension.endMethods in net.minecraft.world.level.dimension.end with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidEndDragonFight.onCrystalDestroyed(EndCrystal p_64083_, DamageSource p_64084_) 
- 
Uses of DamageSource in net.minecraft.world.level.storage.loot.parametersFields in net.minecraft.world.level.storage.loot.parameters with type parameters of type DamageSourceModifier and TypeFieldDescriptionstatic final LootContextParam<DamageSource>LootContextParams.DAMAGE_SOURCE
- 
Uses of DamageSource in net.neoforged.neoforge.commonMethods in net.neoforged.neoforge.common with parameters of type DamageSourceModifier and TypeMethodDescriptionstatic intCommonHooks.getLootingLevel(Entity target, @Nullable Entity killer, @Nullable DamageSource cause) static intCommonHooks.getLootingLevel(LivingEntity target, @Nullable DamageSource cause, int level) static booleanCommonHooks.onLivingAttack(LivingEntity entity, DamageSource src, float amount) static floatCommonHooks.onLivingDamage(LivingEntity entity, DamageSource src, float amount) static booleanCommonHooks.onLivingDeath(LivingEntity entity, DamageSource src) static booleanCommonHooks.onLivingDrops(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, int lootingLevel, boolean recentlyHit) static floatCommonHooks.onLivingHurt(LivingEntity entity, DamageSource src, float amount) static booleanCommonHooks.onLivingUseTotem(LivingEntity entity, DamageSource damageSource, ItemStack totem, InteractionHand hand) static booleanCommonHooks.onPlayerAttack(LivingEntity entity, DamageSource src, float amount) static ShieldBlockEventCommonHooks.onShieldBlock(LivingEntity blocker, DamageSource source, float blocked) 
- 
Uses of DamageSource in net.neoforged.neoforge.common.damagesourceMethods in net.neoforged.neoforge.common.damagesource with parameters of type DamageSourceModifier and TypeMethodDescriptionfloatIScalingFunction.scaleDamage(DamageSource source, Player target, float amount, Difficulty difficulty) Scales the incoming damage amount based on the current difficulty.
 Only damage dealt to players is scaled, other damage is not impacted.
- 
Uses of DamageSource in net.neoforged.neoforge.common.extensionsMethods in net.neoforged.neoforge.common.extensions with parameters of type DamageSourceModifier and TypeMethodDescriptiondefault voidIItemExtension.onDestroyed(ItemEntity itemEntity, DamageSource damageSource) Called when an item entity for this stack is destroyed.default voidIItemStackExtension.onDestroyed(ItemEntity itemEntity, DamageSource damageSource) Called when an item entity for this stack is destroyed.
- 
Uses of DamageSource in net.neoforged.neoforge.common.utilMethods in net.neoforged.neoforge.common.util with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidFakePlayer.die(DamageSource source) booleanFakePlayer.isInvulnerableTo(DamageSource source) 
- 
Uses of DamageSource in net.neoforged.neoforge.event.entity.livingFields in net.neoforged.neoforge.event.entity.living declared as DamageSourceModifier and TypeFieldDescriptionprivate final @Nullable DamageSourceLootingLevelEvent.damageSourceprivate final DamageSourceLivingAttackEvent.sourceprivate final DamageSourceLivingDamageEvent.sourceprivate final DamageSourceLivingDeathEvent.sourceprivate final DamageSourceLivingDropsEvent.sourceprivate final DamageSourceLivingHurtEvent.sourceprivate final DamageSourceLivingUseTotemEvent.sourceprivate final DamageSourceShieldBlockEvent.sourceMethods in net.neoforged.neoforge.event.entity.living that return DamageSourceModifier and TypeMethodDescription@Nullable DamageSourceLootingLevelEvent.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.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type DamageSourceModifierConstructorDescriptionLivingAttackEvent(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) 
- 
Uses of DamageSource in net.neoforged.neoforge.oldtest.entityMethods in net.neoforged.neoforge.oldtest.entity with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanPartEntityTest.TestEntityPart.hurt(DamageSource source, float amount)