Uses of Class
net.minecraft.world.damagesource.DamageSource
Packages that use DamageSource
Package
Description
-
Uses of DamageSource in net.minecraft.advancements.critereon
Methods 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.player
Methods 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.game
Methods 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.commands
Methods 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.level
Methods 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_, Holder<SoundEvent> p_320497_) protected floatServerPlayer.getEnchantedDamage(Entity p_346252_, float p_346142_, DamageSource p_345841_) booleanServerPlayer.hurt(DamageSource p_9037_, float p_9038_) booleanServerPlayer.isInvulnerableTo(DamageSource p_9182_) -
Uses of DamageSource in net.minecraft.world.damagesource
Fields in net.minecraft.world.damagesource declared as DamageSourceModifier and TypeFieldDescriptionprivate final DamageSourceDamageSources.cactusprivate final DamageSourceDamageSources.campfireprivate 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.campfire()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.spit(Entity p_316508_, LivingEntity p_316581_) DamageSources.stalagmite()DamageSources.starve()DamageSources.sting(LivingEntity p_270689_) DamageSources.sweetBerryBush()DamageSources.windCharge(Entity p_316454_, LivingEntity p_316891_) DamageSources.wither()DamageSources.witherSkull(WitherSkull p_270367_, Entity p_270887_) Methods in net.minecraft.world.damagesource with parameters of type DamageSourceModifier and TypeMethodDescriptionstatic floatCombatRules.getDamageAfterAbsorb(LivingEntity p_345376_, float p_19273_, DamageSource p_338892_, float p_19274_, float p_19275_) voidCombatTracker.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.effect
Methods in net.minecraft.world.effect with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidInfestedMobEffect.onMobHurt(LivingEntity p_338481_, int p_338438_, DamageSource p_338894_, float p_338367_) voidMobEffect.onMobHurt(LivingEntity p_338186_, int p_338204_, DamageSource p_338393_, float p_338618_) voidMobEffectInstance.onMobHurt(LivingEntity p_338201_, DamageSource p_338572_, float p_338779_) -
Uses of DamageSource in net.minecraft.world.entity
Fields 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.doHurtEquipment(DamageSource p_330843_, float p_330394_, EquipmentSlot... p_331314_) protected voidLivingEntity.dropAllDeathLoot(ServerLevel p_348524_, DamageSource p_21192_) protected voidLivingEntity.dropCustomDeathLoot(ServerLevel p_348639_, DamageSource p_21018_, boolean p_21020_) protected voidMob.dropCustomDeathLoot(ServerLevel p_348683_, DamageSource p_21385_, 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_) protected floatLivingEntity.getKnockback(Entity p_344813_, DamageSource p_344976_) 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_) booleanLivingEntity.isInvulnerableTo(DamageSource p_345073_) protected voidLivingEntity.playHurtSound(DamageSource p_21160_) protected voidMob.playHurtSound(DamageSource p_21493_) -
Uses of DamageSource in net.minecraft.world.entity.ai.memory
Fields 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.ambient
Methods 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.animal
Methods in net.minecraft.world.entity.animal with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidAnimal.actuallyHurt(DamageSource p_341676_, float p_341648_) protected voidWolf.actuallyHurt(DamageSource p_331935_, float p_330695_) private booleanWolf.canArmorAbsorb(DamageSource p_331524_) voidIronGolem.die(DamageSource p_28846_) voidWolf.die(DamageSource p_30384_) protected voidFox.dropAllDeathLoot(ServerLevel p_348640_, 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_) 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_) protected voidWolf.hurtArmor(DamageSource p_332118_, float p_330593_) -
Uses of DamageSource in net.minecraft.world.entity.animal.allay
Methods 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.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidArmadillo.actuallyHurt(DamageSource p_316204_, float p_316801_) protected SoundEventArmadillo.getHurtSound(DamageSource p_316220_) booleanArmadillo.hurt(DamageSource p_321611_, float p_321629_) -
Uses of DamageSource in net.minecraft.world.entity.animal.axolotl
Methods 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.camel
Methods 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.frog
Methods 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.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type DamageSource -
Uses of DamageSource in net.minecraft.world.entity.animal.horse
Methods 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.sniffer
Methods 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.boss
Methods 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.enderdragon
Methods 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.phases
Methods 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.wither
Methods in net.minecraft.world.entity.boss.wither with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidWitherBoss.dropCustomDeathLoot(ServerLevel p_348644_, DamageSource p_31464_, 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.decoration
Methods in net.minecraft.world.entity.decoration with parameters of type DamageSourceModifier and TypeMethodDescriptionprivate voidArmorStand.brokenByAnything(ServerLevel p_348553_, DamageSource p_31654_) private voidArmorStand.brokenByPlayer(ServerLevel p_348677_, DamageSource p_31647_) private voidArmorStand.causeDamage(ServerLevel p_348633_, DamageSource p_31649_, float p_31650_) protected SoundEventArmorStand.getHurtSound(DamageSource p_31636_) booleanArmorStand.hurt(DamageSource p_31579_, float p_31580_) booleanBlockAttachedEntity.hurt(DamageSource p_345749_, float p_345893_) booleanItemFrame.hurt(DamageSource p_31776_, float p_31777_) -
Uses of DamageSource in net.minecraft.world.entity.item
Methods 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.monster
Methods 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(ServerLevel p_348566_, DamageSource p_32292_, boolean p_32294_) protected voidEnderMan.dropCustomDeathLoot(ServerLevel p_348556_, DamageSource p_32497_, boolean p_32499_) protected voidSkeleton.dropCustomDeathLoot(ServerLevel p_348477_, DamageSource p_33574_, boolean p_33576_) protected voidWitherSkeleton.dropCustomDeathLoot(ServerLevel p_348522_, DamageSource p_34174_, boolean p_34176_) protected voidZombie.dropCustomDeathLoot(ServerLevel p_348597_, DamageSource p_34291_, boolean p_34293_) protected floatWitch.getDamageAfterMagicAbsorb(DamageSource p_34149_, float p_34150_) protected SoundEventBlaze.getHurtSound(DamageSource p_32235_) protected SoundEventBogged.getHurtSound(DamageSource p_326909_) 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.breeze
Methods 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.hoglin
Methods 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.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidPiglin.dropCustomDeathLoot(ServerLevel p_348503_, DamageSource p_34697_, 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.warden
Methods 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.npc
Methods 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.player
Methods 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 floatPlayer.getEnchantedDamage(Entity p_345248_, float p_345836_, DamageSource p_345745_) protected SoundEventPlayer.getHurtSound(DamageSource p_36310_) booleanPlayer.hurt(DamageSource p_36154_, float p_36155_) 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.projectile
Methods in net.minecraft.world.entity.projectile with parameters of type DamageSourceModifier and TypeMethodDescriptionit.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairFireworkRocketEntity.calculateHorizontalHurtKnockbackDirection(LivingEntity p_345239_, DamageSource p_345155_) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairProjectile.calculateHorizontalHurtKnockbackDirection(LivingEntity p_344992_, DamageSource p_345905_) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairThrownPotion.calculateHorizontalHurtKnockbackDirection(LivingEntity p_345103_, DamageSource p_345887_) protected voidAbstractArrow.doKnockback(LivingEntity p_346111_, DamageSource p_346412_) booleanAbstractHurtingProjectile.hurt(DamageSource p_341896_, float p_341906_) booleanDragonFireball.hurt(DamageSource p_36910_, float p_36911_) booleanFireball.hurt(DamageSource p_352271_, float p_352234_) 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.projectile.windcharge
Methods in net.minecraft.world.entity.projectile.windcharge with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanAbstractWindCharge.hurt(DamageSource p_352147_, float p_352222_) -
Uses of DamageSource in net.minecraft.world.entity.raid
Methods 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.vehicle
Methods 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.item
Methods in net.minecraft.world.item with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanItemStack.canBeHurtBy(DamageSource p_335431_) floatItem.getAttackDamageBonus(Entity p_345249_, float p_336179_, DamageSource p_345403_) floatMaceItem.getAttackDamageBonus(Entity p_344900_, float p_335575_, DamageSource p_344972_) -
Uses of DamageSource in net.minecraft.world.item.enchantment
Methods in net.minecraft.world.item.enchantment with parameters of type DamageSourceModifier and TypeMethodDescriptionstatic LootContextEnchantment.damageContext(ServerLevel p_346018_, int p_345520_, Entity p_345257_, DamageSource p_346340_) voidEnchantment.doPostAttack(ServerLevel p_344857_, int p_44688_, EnchantedItemInUse p_345323_, EnchantmentTarget p_345287_, Entity p_44687_, DamageSource p_345177_) static voidEnchantment.doPostAttack(TargetedConditionalEffect<EnchantmentEntityEffect> p_346387_, ServerLevel p_345844_, int p_344928_, EnchantedItemInUse p_345486_, Entity p_345472_, DamageSource p_345022_) static voidEnchantmentHelper.doPostAttackEffects(ServerLevel p_345941_, Entity p_345661_, DamageSource p_345580_) static voidEnchantmentHelper.doPostAttackEffectsWithItemSource(ServerLevel p_348463_, Entity p_348545_, DamageSource p_348552_, ItemStack p_348507_) static floatEnchantmentHelper.getDamageProtection(ServerLevel p_346015_, LivingEntity p_346118_, DamageSource p_44858_) booleanEnchantment.isImmuneToDamage(ServerLevel p_345480_, int p_345043_, Entity p_346344_, DamageSource p_344985_) static booleanEnchantmentHelper.isImmuneToDamage(ServerLevel p_346228_, LivingEntity p_345220_, DamageSource p_345884_) static floatEnchantmentHelper.modifyArmorEffectiveness(ServerLevel p_345426_, ItemStack p_345454_, Entity p_345834_, DamageSource p_345082_, float p_344790_) voidEnchantment.modifyArmorEffectivness(ServerLevel p_345449_, int p_346129_, ItemStack p_345436_, Entity p_345815_, DamageSource p_346172_, org.apache.commons.lang3.mutable.MutableFloat p_345265_) voidEnchantment.modifyDamage(ServerLevel p_345743_, int p_345544_, ItemStack p_345269_, Entity p_346011_, DamageSource p_344755_, org.apache.commons.lang3.mutable.MutableFloat p_345551_) static floatEnchantmentHelper.modifyDamage(ServerLevel p_345523_, ItemStack p_345856_, Entity p_344995_, DamageSource p_345216_, float p_346025_) private voidEnchantment.modifyDamageFilteredValue(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345367_, ServerLevel p_345784_, int p_344796_, ItemStack p_345410_, Entity p_345673_, DamageSource p_345768_, org.apache.commons.lang3.mutable.MutableFloat p_345664_) voidEnchantment.modifyDamageProtection(ServerLevel p_345336_, int p_345347_, ItemStack p_346270_, Entity p_346395_, DamageSource p_345595_, org.apache.commons.lang3.mutable.MutableFloat p_345579_) voidEnchantment.modifyFallBasedDamage(ServerLevel p_345164_, int p_344793_, ItemStack p_345159_, Entity p_345653_, DamageSource p_344870_, org.apache.commons.lang3.mutable.MutableFloat p_346329_) static floatEnchantmentHelper.modifyFallBasedDamage(ServerLevel p_345433_, ItemStack p_345368_, Entity p_345047_, DamageSource p_345711_, float p_346245_) voidEnchantment.modifyKnockback(ServerLevel p_346266_, int p_344905_, ItemStack p_345602_, Entity p_346190_, DamageSource p_345911_, org.apache.commons.lang3.mutable.MutableFloat p_345127_) static floatEnchantmentHelper.modifyKnockback(ServerLevel p_346221_, ItemStack p_344862_, Entity p_345720_, DamageSource p_345322_, float p_345116_) static floatEnchantmentHelper.processEquipmentDropChance(ServerLevel p_346339_, LivingEntity p_345864_, DamageSource p_345060_, float p_346089_) -
Uses of DamageSource in net.minecraft.world.item.enchantment.effects
Methods in net.minecraft.world.item.enchantment.effects that return DamageSourceModifier and TypeMethodDescriptionprivate DamageSourceExplodeEffect.getDamageSource(Entity p_346246_, Vec3 p_345332_) -
Uses of DamageSource in net.minecraft.world.level
Fields 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_, Holder<SoundEvent> p_320283_) 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_, Holder<SoundEvent> p_320084_) 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_, Holder<SoundEvent> p_320270_) -
Uses of DamageSource in net.minecraft.world.level.block
Methods 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.end
Methods 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.parameters
Fields 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.common
Methods in net.neoforged.neoforge.common with parameters of type DamageSourceModifier and TypeMethodDescriptionstatic 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, 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.damagesource
Methods 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.extensions
Methods 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.util
Methods 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.living
Fields in net.neoforged.neoforge.event.entity.living declared as DamageSourceModifier and TypeFieldDescriptionprivate 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 TypeMethodDescriptionShieldBlockEvent.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, boolean recentlyHit) LivingHurtEvent(LivingEntity entity, DamageSource source, float amount) LivingUseTotemEvent(LivingEntity entity, DamageSource source, ItemStack totem, InteractionHand hand) ShieldBlockEvent(LivingEntity blocker, DamageSource source, float blocked) -
Uses of DamageSource in net.neoforged.neoforge.oldtest.entity
Methods in net.neoforged.neoforge.oldtest.entity with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanPartEntityTest.TestEntityPart.hurt(DamageSource source, float amount)