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 player, DamageSource source, float dealtDamage, float takenDamage, boolean blocked) booleanDamageSourcePredicate.matches(ServerLevel level, Vec3 position, DamageSource source) booleanDamageSourcePredicate.matches(ServerPlayer player, DamageSource source) booleanEntityHurtPlayerTrigger.TriggerInstance.matches(ServerPlayer player, DamageSource source, float dealtDamage, float takenDamage, boolean blocked) booleanKilledTrigger.TriggerInstance.matches(ServerPlayer player, LootContext context, DamageSource source) booleanPlayerHurtEntityTrigger.TriggerInstance.matches(ServerPlayer player, LootContext context, DamageSource damage, float dealt, float taken, boolean blocked) voidEntityHurtPlayerTrigger.trigger(ServerPlayer player, DamageSource source, float dealtDamage, float takenDamage, boolean blocked) voidKilledTrigger.trigger(ServerPlayer player, Entity entity, DamageSource source) voidPlayerHurtEntityTrigger.trigger(ServerPlayer player, Entity entity, DamageSource source, float amountDealt, float amountTaken, boolean blocked) -
Uses of DamageSource in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidClientLevel.explode(Entity p_363686_, DamageSource p_365268_, ExplosionDamageCalculator p_363795_, double p_360494_, double p_360591_, double p_364949_, float p_361233_, boolean p_364900_, Level.ExplosionInteraction p_365033_, ParticleOptions p_361889_, ParticleOptions p_361473_, Holder<SoundEvent> p_362359_) -
Uses of DamageSource in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type DamageSource -
Uses of DamageSource in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidGameTestHelper.hurt(Entity entity, DamageSource damageSource, float amount) -
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 source, Entity target, float amount, DamageSource damageType) -
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_, DamageSource p_9052_) voidServerLevel.broadcastDamageEvent(Entity p_270420_, DamageSource p_270311_) voidServerPlayer.die(DamageSource cause) Called when the mob's health reaches 0.voidServerLevel.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.hurtServer(ServerLevel p_376762_, DamageSource p_376676_, float p_376089_) booleanServerPlayer.isInvulnerableTo(ServerLevel p_376413_, 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.enderPearlprivate 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 arrow, Entity shooter) DamageSources.badRespawnPointExplosion(Vec3 position) DamageSources.cactus()DamageSources.campfire()DamageSources.cramming()DamageSources.dragonBreath()DamageSources.drown()DamageSources.dryOut()DamageSources.enderPearl()DamageSources.fall()DamageSources.fallingBlock(Entity entity) DamageSources.fallingStalactite(Entity entity) DamageSources.fellOutOfWorld()DamageSources.fireworks(FireworkRocketEntity firework, Entity shooter) DamageSources.flyIntoWall()DamageSources.freeze()DamageSources.generic()DamageSources.genericKill()DamageSources.hotFloor()DamageSources.indirectMagic(Entity causingEntity, Entity directEntity) DamageSources.inFire()DamageSources.inWall()DamageSources.lava()DamageSources.lightningBolt()DamageSources.magic()DamageSources.mobAttack(LivingEntity mob) DamageSources.mobProjectile(Entity projectile, LivingEntity thrower) DamageSources.noAggroMobAttack(LivingEntity mob) DamageSources.onFire()DamageSources.outOfBorder()DamageSources.playerAttack(Player player) CombatEntry.source()Returns the value of thesourcerecord component.DamageSources.source(ResourceKey<DamageType> damageTypeKey) DamageSources.source(ResourceKey<DamageType> damageTypeKey, Entity entity) DamageSources.source(ResourceKey<DamageType> damageTypeKey, Entity causingEntity, Entity directEntity) DamageSources.spit(Entity spit, LivingEntity thrower) DamageSources.stalagmite()DamageSources.starve()DamageSources.sting(LivingEntity entity) DamageSources.sweetBerryBush()DamageSources.windCharge(Entity windCharge, LivingEntity thrower) DamageSources.wither()DamageSources.witherSkull(WitherSkull witherSkull, Entity shooter) Methods in net.minecraft.world.damagesource with parameters of type DamageSourceModifier and TypeMethodDescriptionstatic floatCombatRules.getDamageAfterAbsorb(LivingEntity entity, float damage, DamageSource damageSource, float armorValue, float armorToughness) voidCombatTracker.recordDamage(DamageSource source, float damage) private static booleanCombatTracker.shouldEnterCombat(DamageSource source) 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(ServerLevel p_376338_, LivingEntity p_338481_, int p_338438_, DamageSource p_338894_, float p_338367_) voidMobEffect.onMobHurt(ServerLevel level, LivingEntity entity, int amplifier, DamageSource damageSource, float amount) voidMobEffectInstance.onMobHurt(ServerLevel level, LivingEntity entity, DamageSource damageSource, float amount) -
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(ServerLevel level, DamageSource damageSource, float amount) floatLivingEntity.applyItemBlocking(ServerLevel level, DamageSource damageSource, float damageAmount) voidEntity.awardKillScore(Entity entity, DamageSource damageSource) booleanEntity.causeFallDamage(double fallDistance, float damageMultiplier, DamageSource damageSource) booleanLivingEntity.causeFallDamage(double p_397597_, float p_147187_, DamageSource p_147189_) private booleanLivingEntity.checkTotemDeathProtection(DamageSource damageSource) voidLivingEntity.die(DamageSource damageSource) Called when the mob's health reaches 0.voidTamableAnimal.die(DamageSource cause) Called when the mob's health reaches 0.protected voidLivingEntity.doHurtEquipment(DamageSource damageSource, float damageAmount, EquipmentSlot... slots) protected voidLivingEntity.dropAllDeathLoot(ServerLevel level, DamageSource damageSource) protected voidLivingEntity.dropCustomDeathLoot(ServerLevel level, DamageSource damageSource, boolean recentlyHit) protected voidMob.dropCustomDeathLoot(ServerLevel p_348683_, DamageSource p_21385_, boolean p_21387_) protected voidLivingEntity.dropFromLootTable(ServerLevel level, DamageSource damageSource, boolean playerKill) protected voidMob.dropFromLootTable(ServerLevel p_376326_, DamageSource p_21389_, boolean p_21390_) protected floatLivingEntity.getDamageAfterArmorAbsorb(DamageSource damageSource, float damageAmount) Reduces damage, depending on armorprotected floatLivingEntity.getDamageAfterMagicAbsorb(DamageSource damageSource, float damageAmount) Reduces damage, depending on potionsprotected SoundEventGlowSquid.getHurtSound(DamageSource p_147124_) protected SoundEventLivingEntity.getHurtSound(DamageSource damageSource) protected floatLivingEntity.getKnockback(Entity attacker, DamageSource damageSource) voidEntity.handleDamageEvent(DamageSource damageSource) voidLivingEntity.handleDamageEvent(DamageSource p_270229_) final voidEntity.hurt(DamageSource damageSource, float amount) Deprecated.protected voidLivingEntity.hurtArmor(DamageSource damageSource, float damageAmount) booleanEntity.hurtClient(DamageSource damageSource) final booleanExperienceOrb.hurtClient(DamageSource p_376512_) protected voidLivingEntity.hurtHelmet(DamageSource damageSource, float damageAmount) final booleanEntity.hurtOrSimulate(DamageSource damageSource, float amount) Deprecated.final booleanAreaEffectCloud.hurtServer(ServerLevel p_376207_, DamageSource p_376186_, float p_376930_) final booleanDisplay.hurtServer(ServerLevel p_376368_, DamageSource p_376135_, float p_376332_) abstract booleanEntity.hurtServer(ServerLevel level, DamageSource damageSource, float amount) final booleanExperienceOrb.hurtServer(ServerLevel p_376093_, DamageSource p_376744_, float p_376626_) booleanGlowSquid.hurtServer(ServerLevel p_376490_, DamageSource p_376927_, float p_376723_) final booleanInteraction.hurtServer(ServerLevel p_376324_, DamageSource p_376830_, float p_376086_) final booleanLightningBolt.hurtServer(ServerLevel p_376929_, DamageSource p_376634_, float p_376543_) booleanLivingEntity.hurtServer(ServerLevel p_376221_, DamageSource p_376460_, float p_376610_) final booleanMarker.hurtServer(ServerLevel p_376861_, DamageSource p_376481_, float p_376416_) final booleanOminousItemSpawner.hurtServer(ServerLevel p_376592_, DamageSource p_376780_, float p_376204_) booleanLivingEntity.isInvulnerableTo(ServerLevel level, DamageSource damageSource) protected final booleanEntity.isInvulnerableToBase(DamageSource damageSource) protected voidLivingEntity.playHurtSound(DamageSource source) protected voidMob.playHurtSound(DamageSource source) private voidLivingEntity.playSecondaryHurtSound(DamageSource damageSource) protected voidEntity.propagateFallToPassengers(double fallDistance, float damageMultiplier, DamageSource damageSource) protected voidLivingEntity.resolveMobResponsibleForDamage(DamageSource damageSource) protected PlayerLivingEntity.resolvePlayerResponsibleForDamage(DamageSource damageSource) -
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 damageSource) booleanBat.hurtServer(ServerLevel p_376275_, DamageSource p_376205_, float p_376647_) -
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(ServerLevel p_376120_, DamageSource p_341676_, float p_341648_) voidIronGolem.die(DamageSource cause) Called when the mob's health reaches 0.protected voidFox.dropAllDeathLoot(ServerLevel p_348640_, DamageSource p_28536_) protected SoundEventAbstractCow.getHurtSound(DamageSource p_401014_) protected SoundEventAbstractGolem.getHurtSound(DamageSource damageSource) protected SoundEventBee.getHurtSound(DamageSource damageSource) protected SoundEventCat.getHurtSound(DamageSource damageSource) protected SoundEventChicken.getHurtSound(DamageSource damageSource) protected SoundEventCod.getHurtSound(DamageSource damageSource) protected SoundEventDolphin.getHurtSound(DamageSource damageSource) protected SoundEventFox.getHurtSound(DamageSource damageSource) protected SoundEventIronGolem.getHurtSound(DamageSource damageSource) protected SoundEventOcelot.getHurtSound(DamageSource damageSource) protected SoundEventPanda.getHurtSound(DamageSource damageSource) protected SoundEventParrot.getHurtSound(DamageSource damageSource) protected SoundEventPig.getHurtSound(DamageSource damageSource) protected SoundEventPolarBear.getHurtSound(DamageSource damageSource) protected SoundEventPufferfish.getHurtSound(DamageSource damageSource) protected SoundEventRabbit.getHurtSound(DamageSource damageSource) protected SoundEventSalmon.getHurtSound(DamageSource damageSource) protected SoundEventSnowGolem.getHurtSound(DamageSource damageSource) protected SoundEventSquid.getHurtSound(DamageSource damageSource) protected SoundEventTropicalFish.getHurtSound(DamageSource damageSource) protected SoundEventTurtle.getHurtSound(DamageSource damageSource) booleanBee.hurtServer(ServerLevel p_376576_, DamageSource p_376878_, float p_376402_) booleanIronGolem.hurtServer(ServerLevel p_376593_, DamageSource p_376434_, float p_376366_) booleanPanda.hurtServer(ServerLevel p_376309_, DamageSource p_376843_, float p_376403_) booleanParrot.hurtServer(ServerLevel p_376162_, DamageSource p_376903_, float p_376601_) booleanSquid.hurtServer(ServerLevel p_376152_, DamageSource p_376463_, float p_376746_) -
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.hurtServer(ServerLevel p_376555_, DamageSource p_376455_, float p_376277_) -
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(ServerLevel p_376922_, DamageSource p_316204_, float p_316801_) protected SoundEventArmadillo.getHurtSound(DamageSource p_316220_) booleanArmadillo.hurtServer(ServerLevel p_376599_, DamageSource p_376763_, float p_376190_) -
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.hurtServer(ServerLevel p_376765_, DamageSource p_376159_, float p_376250_) -
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(ServerLevel p_376291_, 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(double p_397025_, float p_149499_, DamageSource p_149501_) booleanLlama.causeFallDamage(double p_397266_, float p_149538_, DamageSource p_149540_) protected SoundEventDonkey.getHurtSound(DamageSource damageSource) protected SoundEventHorse.getHurtSound(DamageSource damageSource) protected SoundEventLlama.getHurtSound(DamageSource damageSource) protected SoundEventMule.getHurtSound(DamageSource damageSource) protected SoundEventSkeletonHorse.getHurtSound(DamageSource damageSource) protected SoundEventZombieHorse.getHurtSound(DamageSource damageSource) protected voidHorse.hurtArmor(DamageSource p_379528_, float p_379933_) booleanAbstractHorse.hurtServer(ServerLevel p_376833_, DamageSource p_376090_, float p_376270_) -
Uses of DamageSource in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventSheep.getHurtSound(DamageSource p_405795_) -
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.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidWolf.actuallyHurt(ServerLevel p_406271_, DamageSource p_406248_, float p_406370_) private booleanWolf.canArmorAbsorb(DamageSource damageSource) voidWolf.die(DamageSource p_406227_) protected SoundEventWolf.getHurtSound(DamageSource p_406243_) protected voidWolf.hurtArmor(DamageSource p_406334_, float p_406321_) booleanWolf.hurtServer(ServerLevel p_406240_, DamageSource p_406339_, float p_406257_) -
Uses of DamageSource in net.minecraft.world.entity.boss
Methods in net.minecraft.world.entity.boss with parameters of type DamageSourceModifier and TypeMethodDescriptionfinal booleanEnderDragonPart.hurtServer(ServerLevel p_376297_, DamageSource p_376770_, float p_376385_) -
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 damageSource) booleanEnderDragon.hurt(ServerLevel level, EnderDragonPart part, DamageSource damageSource, float amount) final booleanEndCrystal.hurtClient(DamageSource p_376800_) final booleanEndCrystal.hurtServer(ServerLevel p_376280_, DamageSource p_376179_, float p_376203_) booleanEnderDragon.hurtServer(ServerLevel p_376883_, DamageSource p_376758_, float p_376328_) voidEnderDragon.onCrystalDestroyed(ServerLevel level, EndCrystal crystal, BlockPos pos, DamageSource damageSource) private voidEndCrystal.onDestroyedBy(ServerLevel level, DamageSource damageSource) protected voidEnderDragon.reallyHurt(ServerLevel level, DamageSource damageSource, float amount) -
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 crystal, BlockPos pos, DamageSource dmgSrc, Player plyr) voidDragonHoldingPatternPhase.onCrystalDestroyed(EndCrystal crystal, BlockPos pos, DamageSource dmgSrc, Player plyr) voidDragonPhaseInstance.onCrystalDestroyed(EndCrystal crystal, BlockPos pos, DamageSource damageSource, Player player) floatAbstractDragonPhaseInstance.onHurt(DamageSource p_31181_, float p_31182_) floatAbstractDragonSittingPhase.onHurt(DamageSource p_31199_, float p_31200_) floatDragonPhaseInstance.onHurt(DamageSource damageSource, float amount) -
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 damageSource) booleanWitherBoss.hurtServer(ServerLevel p_376615_, DamageSource p_376766_, float p_376552_) -
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 level, DamageSource damageSource) private voidArmorStand.brokenByPlayer(ServerLevel level, DamageSource damageSource) private static booleanItemFrame.canHurtWhenFixed(DamageSource damageSource) private voidArmorStand.causeDamage(ServerLevel level, DamageSource damageSource, float damageAmount) protected SoundEventArmorStand.getHurtSound(DamageSource damageSource) booleanBlockAttachedEntity.hurtClient(DamageSource p_376476_) booleanItemFrame.hurtClient(DamageSource p_376923_) booleanArmorStand.hurtServer(ServerLevel p_376183_, DamageSource p_31579_, float p_31580_) booleanBlockAttachedEntity.hurtServer(ServerLevel p_376632_, DamageSource p_376099_, float p_376549_) booleanItemFrame.hurtServer(ServerLevel p_376559_, DamageSource p_376904_, float p_376420_) private booleanItemFrame.shouldDamageDropItem(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.item
Methods in net.minecraft.world.entity.item with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanFallingBlockEntity.causeFallDamage(double p_397518_, float p_149643_, DamageSource p_149645_) final booleanItemEntity.hurtClient(DamageSource p_376799_) final booleanFallingBlockEntity.hurtServer(ServerLevel p_376184_, DamageSource p_376594_, float p_376175_) final booleanItemEntity.hurtServer(ServerLevel p_376942_, DamageSource p_376452_, float p_376562_) final booleanPrimedTnt.hurtServer(ServerLevel p_376658_, DamageSource p_376356_, float p_376220_) -
Uses of DamageSource in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanCreeper.causeFallDamage(double p_397691_, float p_149687_, 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 source, float damage) Reduces damage, depending on potionsprotected SoundEventBlaze.getHurtSound(DamageSource damageSource) protected SoundEventBogged.getHurtSound(DamageSource p_326909_) protected SoundEventCreeper.getHurtSound(DamageSource damageSource) protected SoundEventDrowned.getHurtSound(DamageSource damageSource) protected SoundEventElderGuardian.getHurtSound(DamageSource damageSource) protected SoundEventEnderMan.getHurtSound(DamageSource damageSource) protected SoundEventEndermite.getHurtSound(DamageSource damageSource) protected SoundEventEvoker.getHurtSound(DamageSource damageSource) protected SoundEventGhast.getHurtSound(DamageSource damageSource) protected SoundEventGuardian.getHurtSound(DamageSource damageSource) protected SoundEventHusk.getHurtSound(DamageSource damageSource) protected SoundEventIllusioner.getHurtSound(DamageSource damageSource) protected SoundEventMagmaCube.getHurtSound(DamageSource damageSource) protected SoundEventMonster.getHurtSound(DamageSource damageSource) protected SoundEventPhantom.getHurtSound(DamageSource damageSource) protected SoundEventPillager.getHurtSound(DamageSource damageSource) protected SoundEventRavager.getHurtSound(DamageSource damageSource) protected SoundEventShulker.getHurtSound(DamageSource damageSource) protected SoundEventSilverfish.getHurtSound(DamageSource damageSource) protected SoundEventSkeleton.getHurtSound(DamageSource damageSource) protected SoundEventSlime.getHurtSound(DamageSource damageSource) protected SoundEventSpider.getHurtSound(DamageSource damageSource) protected SoundEventStray.getHurtSound(DamageSource damageSource) protected SoundEventStrider.getHurtSound(DamageSource damageSource) protected SoundEventVex.getHurtSound(DamageSource damageSource) protected SoundEventVindicator.getHurtSound(DamageSource damageSource) protected SoundEventWitch.getHurtSound(DamageSource damageSource) protected SoundEventWitherSkeleton.getHurtSound(DamageSource damageSource) protected SoundEventZoglin.getHurtSound(DamageSource damageSource) protected SoundEventZombie.getHurtSound(DamageSource damageSource) ZombieVillager.getHurtSound(DamageSource damageSource) protected SoundEventZombifiedPiglin.getHurtSound(DamageSource damageSource) booleanEnderMan.hurtServer(ServerLevel p_376680_, DamageSource p_376597_, float p_376796_) booleanGhast.hurtServer(ServerLevel p_376618_, DamageSource p_376819_, float p_376363_) booleanGuardian.hurtServer(ServerLevel p_376911_, DamageSource p_376689_, float p_376584_) booleanShulker.hurtServer(ServerLevel p_376092_, DamageSource p_376565_, float p_376357_) booleanSilverfish.hurtServer(ServerLevel p_376336_, DamageSource p_376879_, float p_376305_) booleanZoglin.hurtServer(ServerLevel p_376295_, DamageSource p_376659_, float p_376300_) booleanZombie.hurtServer(ServerLevel p_376886_, DamageSource p_376124_, float p_376398_) private booleanEnderMan.hurtWithCleanWater(ServerLevel level, DamageSource damageSource, AbstractThrownPotion potion, float damageAmount) booleanGhast.isInvulnerableTo(ServerLevel p_376822_, DamageSource p_238289_) private static booleanGhast.isReflectedFireball(DamageSource damageSource) -
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(double p_397036_, float p_312702_, DamageSource p_312076_) protected SoundEventBreeze.getHurtSound(DamageSource p_312252_) booleanBreeze.isInvulnerableTo(ServerLevel p_376278_, DamageSource p_312691_) -
Uses of DamageSource in net.minecraft.world.entity.monster.creaking
Methods in net.minecraft.world.entity.monster.creaking with parameters of type DamageSourceModifier and TypeMethodDescriptionCreaking.blameSourceForDamage(DamageSource damageSource) voidCreaking.creakingDeathEffects(DamageSource damageSource) protected SoundEventCreaking.getHurtSound(DamageSource p_380378_) booleanCreaking.hurtServer(ServerLevel p_389623_, DamageSource p_389564_, float p_389723_) -
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 damageSource) booleanHoglin.hurtServer(ServerLevel p_376096_, DamageSource p_376492_, float p_376657_) -
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 damageSource) protected SoundEventPiglinBrute.getHurtSound(DamageSource damageSource) booleanPiglin.hurtServer(ServerLevel p_376331_, DamageSource p_376698_, float p_376091_) booleanPiglinBrute.hurtServer(ServerLevel p_376247_, DamageSource p_376197_, float p_376798_) -
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.hurtServer(ServerLevel p_376595_, DamageSource p_376181_, float p_376898_) booleanWarden.isInvulnerableTo(ServerLevel p_376345_, 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 cause) Called when the mob's health reaches 0.voidVillager.die(DamageSource cause) Called when the mob's health reaches 0.protected SoundEventVillager.getHurtSound(DamageSource damageSource) protected SoundEventWanderingTrader.getHurtSound(DamageSource damageSource) -
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(ServerLevel p_376500_, DamageSource p_36312_, float p_36313_) booleanPlayer.causeFallDamage(double p_397701_, float p_150093_, DamageSource p_150095_) voidPlayer.die(DamageSource cause) Called when the mob's health reaches 0.protected floatPlayer.getEnchantedDamage(Entity entity, float damage, DamageSource damageSource) protected SoundEventPlayer.getHurtSound(DamageSource damageSource) protected voidPlayer.hurtArmor(DamageSource damageSource, float damage) protected voidPlayer.hurtHelmet(DamageSource p_150103_, float p_150104_) booleanPlayer.hurtServer(ServerLevel p_376451_, DamageSource p_376171_, float p_376389_) booleanPlayer.isInvulnerableTo(ServerLevel p_376263_, 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.DoubleDoubleImmutablePairAbstractThrownPotion.calculateHorizontalHurtKnockbackDirection(LivingEntity p_400055_, DamageSource p_399475_) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairFireworkRocketEntity.calculateHorizontalHurtKnockbackDirection(LivingEntity p_345239_, DamageSource p_345155_) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairProjectile.calculateHorizontalHurtKnockbackDirection(LivingEntity entity, DamageSource damageSource) protected voidAbstractArrow.doKnockback(LivingEntity entity, DamageSource damageSource) booleanShulkerBullet.hurtClient(DamageSource p_376754_) booleanAbstractHurtingProjectile.hurtServer(ServerLevel p_376467_, DamageSource p_376509_, float p_376502_) booleanEvokerFangs.hurtServer(ServerLevel p_376750_, DamageSource p_376281_, float p_376935_) booleanEyeOfEnder.hurtServer(ServerLevel p_376415_, DamageSource p_376189_, float p_376274_) booleanProjectile.hurtServer(ServerLevel p_376191_, DamageSource p_376581_, float p_376638_) booleanShulkerBullet.hurtServer(ServerLevel p_376836_, DamageSource p_376419_, float p_376652_) -
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 cause) Called when the mob's health reaches 0.booleanRaider.hurtServer(ServerLevel p_376542_, DamageSource p_376464_, float p_376941_) -
Uses of DamageSource in net.minecraft.world.entity.vehicle
Fields in net.minecraft.world.entity.vehicle declared as DamageSourceMethods in net.minecraft.world.entity.vehicle with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanMinecartTNT.causeFallDamage(double p_397109_, float p_150347_, DamageSource p_150349_) default voidContainerEntity.chestVehicleDestroyed(DamageSource damageSource, ServerLevel level, Entity entity) private static booleanMinecartTNT.damageSourceIgnitesTnt(DamageSource source) voidAbstractChestBoat.destroy(ServerLevel p_376333_, DamageSource p_376433_) voidAbstractMinecartContainer.destroy(ServerLevel p_376786_, DamageSource p_38228_) voidMinecartTNT.destroy(ServerLevel p_376428_, DamageSource p_38664_) protected voidVehicleEntity.destroy(ServerLevel level, DamageSource damageSource) protected voidMinecartTNT.explode(DamageSource damageSource, double radiusModifier) booleanVehicleEntity.hurtClient(DamageSource p_376811_) booleanMinecartTNT.hurtServer(ServerLevel p_376867_, DamageSource p_376821_, float p_376614_) booleanVehicleEntity.hurtServer(ServerLevel p_376703_, DamageSource p_376603_, float p_376371_) voidMinecartTNT.primeFuse(DamageSource damageSource) (package private) booleanMinecartTNT.shouldSourceDestroy(DamageSource p_312558_) (package private) booleanVehicleEntity.shouldSourceDestroy(DamageSource source) -
Uses of DamageSource in net.minecraft.world.item
Methods in net.minecraft.world.item that return DamageSourceModifier and TypeMethodDescriptionItem.getDamageSource(LivingEntity entity) MaceItem.getDamageSource(LivingEntity p_372868_) Methods in net.minecraft.world.item with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanItemStack.canBeHurtBy(DamageSource damageSource) floatItem.getAttackDamageBonus(Entity target, float damage, DamageSource damageSource) floatMaceItem.getAttackDamageBonus(Entity p_344900_, float p_335575_, DamageSource p_344972_) -
Uses of DamageSource in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanDamageResistant.isResistantTo(DamageSource damageSource) floatBlocksAttacks.DamageReduction.resolve(DamageSource damageSource, float damageAmount, double horizontalAngle) floatBlocksAttacks.resolveBlockedDamage(DamageSource damageSource, float damageAmount, double horizontalAngle) -
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 level, int enchantmentLevel, Entity entity, DamageSource damageSource) voidEnchantment.doPostAttack(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, EnchantmentTarget target, Entity entity, DamageSource damageSource) static voidEnchantment.doPostAttack(TargetedConditionalEffect<EnchantmentEntityEffect> effect, ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, DamageSource damageSource) static voidEnchantmentHelper.doPostAttackEffects(ServerLevel level, Entity entity, DamageSource damageSource) static voidEnchantmentHelper.doPostAttackEffectsWithItemSource(ServerLevel level, Entity entity, DamageSource damageSource, ItemStack itemSource) static voidEnchantmentHelper.doPostAttackEffectsWithItemSourceOnBreak(ServerLevel level, Entity entity, DamageSource damageSource, ItemStack itemSource, Consumer<Item> onBreak) static floatEnchantmentHelper.getDamageProtection(ServerLevel level, LivingEntity entity, DamageSource damageSource) booleanEnchantment.isImmuneToDamage(ServerLevel level, int enchantmentLevel, Entity entity, DamageSource damageSource) static booleanEnchantmentHelper.isImmuneToDamage(ServerLevel level, LivingEntity entity, DamageSource damageSource) static floatEnchantmentHelper.modifyArmorEffectiveness(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float armorEffectiveness) voidEnchantment.modifyArmorEffectivness(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat armorEffectiveness) voidEnchantment.modifyDamage(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat damage) static floatEnchantmentHelper.modifyDamage(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float damage) voidEnchantment.modifyDamageFilteredValue(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> componentType, ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat value) voidEnchantment.modifyDamageProtection(ServerLevel level, int enchantmentLevel, ItemStack stack, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat damageProtection) voidEnchantment.modifyFallBasedDamage(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat fallBasedDamage) static floatEnchantmentHelper.modifyFallBasedDamage(ServerLevel level, ItemStack tool, Entity enity, DamageSource damageSource, float fallBasedDamage) voidEnchantment.modifyKnockback(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat knockback) static floatEnchantmentHelper.modifyKnockback(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float knockback) static floatEnchantmentHelper.processEquipmentDropChance(ServerLevel level, LivingEntity entity, DamageSource damageSource, float equipmentDropChance) -
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 entity, Vec3 pos) -
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 TypeMethodDescriptionServerExplosion.getDamageSource()static DamageSourceExplosion.getDefaultDamageSource(Level level, Entity source) Methods in net.minecraft.world.level with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidLevel.broadcastDamageEvent(Entity entity, DamageSource damageSource) voidLevel.explode(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) abstract voidLevel.explode(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) voidLevel.explode(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, Vec3 pos, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) Constructors in net.minecraft.world.level with parameters of type DamageSourceModifierConstructorDescriptionServerExplosion(ServerLevel level, Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, Vec3 center, float radius, boolean fire, Explosion.BlockInteraction blockInteraction) -
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 entity) PointedDripstoneBlock.getFallDamageSource(Entity p_254432_) -
Uses of DamageSource in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidCreakingHeartBlockEntity.removeProtector(DamageSource damageSource) -
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 crystal, DamageSource dmgSrc) -
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 ContextKey<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.isEntityInvulnerableTo(Entity entity, DamageSource source, boolean isInvul) Creates and posts anEntityInvulnerabilityCheckEvent.static voidCommonHooks.onArmorHurt(DamageSource source, EquipmentSlot[] slots, float damage, LivingEntity armoredEntity) This is invoked inLivingEntity.doHurtEquipment(DamageSource, float, EquipmentSlot...)and replaces the existing item hurt and break logic with an event-sensitive version.static booleanCommonHooks.onLivingDeath(LivingEntity entity, DamageSource src) static booleanCommonHooks.onLivingDrops(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, boolean recentlyHit) static booleanCommonHooks.onLivingUseTotem(LivingEntity entity, DamageSource damageSource, ItemStack totem, InteractionHand hand) -
Uses of DamageSource in net.neoforged.neoforge.common.damagesource
Fields in net.neoforged.neoforge.common.damagesource declared as DamageSourceMethods in net.neoforged.neoforge.common.damagesource that return DamageSourceModifier and TypeMethodDescriptionDamageContainer.getSource()Returns the damage source for this damage sequence.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.Constructors in net.neoforged.neoforge.common.damagesource with parameters of type DamageSource -
Uses of DamageSource in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type DamageSourceModifier and TypeMethodDescriptiondefault booleanIItemExtension.canBeHurtBy(ItemStack stack, DamageSource source) Returns false to make item entity immune to the damage..default 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 DamageSource -
Uses of DamageSource in net.neoforged.neoforge.event.entity
Fields in net.neoforged.neoforge.event.entity declared as DamageSourceModifier and TypeFieldDescriptionprivate final DamageSourceEntityInvulnerabilityCheckEvent.sourceMethods in net.neoforged.neoforge.event.entity that return DamageSourceConstructors in net.neoforged.neoforge.event.entity with parameters of type DamageSourceModifierConstructorDescriptionEntityInvulnerabilityCheckEvent(Entity entity, DamageSource source, boolean isVanillaInvulnerable) -
Uses of DamageSource in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as DamageSourceModifier and TypeFieldDescriptionprivate final DamageSourceLivingDamageEvent.Post.sourceprivate final DamageSourceLivingDeathEvent.sourceprivate final DamageSourceLivingDropsEvent.sourceprivate final DamageSourceLivingUseTotemEvent.sourceMethods in net.neoforged.neoforge.event.entity.living that return DamageSourceModifier and TypeMethodDescriptionLivingShieldBlockEvent.getDamageSource()LivingDamageEvent.Post.getSource()Returns theDamageSourcefor this damage sequence.LivingDamageEvent.Pre.getSource()Returns the damage source for this damage sequence.LivingDeathEvent.getSource()LivingDropsEvent.getSource()LivingIncomingDamageEvent.getSource()Returns theDamageSourcefor this damage sequence.LivingUseTotemEvent.getSource()Returns the damage source that caused the entity to die.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type DamageSourceModifierConstructorDescriptionLivingDeathEvent(LivingEntity entity, DamageSource source) LivingDropsEvent(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, boolean recentlyHit) LivingUseTotemEvent(LivingEntity entity, DamageSource source, ItemStack totem, InteractionHand hand)