Uses of Class
net.minecraft.world.damagesource.DamageSource
Packages that use DamageSource
Package
Description
-
Uses of DamageSource in net.minecraft.advancements.criterion
Methods in net.minecraft.advancements.criterion with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanDamagePredicate.matches(ServerPlayer player, DamageSource damageSource, float dealtDamage, float takenDamage, boolean blocked) booleanDamageSourcePredicate.matches(ServerLevel level, Vec3 position, DamageSource damageSource) booleanDamageSourcePredicate.matches(ServerPlayer player, DamageSource damageSource) booleanEntityHurtPlayerTrigger.TriggerInstance.matches(ServerPlayer player, DamageSource damageSource, float dealtDamage, float takenDamage, boolean blocked) booleanKilledTrigger.TriggerInstance.matches(ServerPlayer player, LootContext context, DamageSource damageSource) booleanPlayerHurtEntityTrigger.TriggerInstance.matches(ServerPlayer player, LootContext context, DamageSource damageSource, float dealtDamage, float takenDamage, boolean blocked) voidEntityHurtPlayerTrigger.trigger(ServerPlayer player, DamageSource damageSource, float dealtDamage, float takenDamage, boolean blocked) voidKilledTrigger.trigger(ServerPlayer player, Entity entity, DamageSource damageSource) voidPlayerHurtEntityTrigger.trigger(ServerPlayer player, Entity entity, DamageSource damageSource, float dealtDamage, float takenDamage, boolean blocked) -
Uses of DamageSource in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidClientLevel.explode(@Nullable Entity p_363686_, @Nullable DamageSource p_365268_, @Nullable 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_, WeightedList<ExplosionParticleInfo> p_437196_, 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 damageSource) -
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 damageSource) Called when the mob's health reaches 0.voidServerLevel.explode(@Nullable Entity p_256039_, @Nullable DamageSource p_255778_, @Nullable 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_, WeightedList<ExplosionParticleInfo> p_437303_, 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, @Nullable 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, @Nullable Entity shooter) DamageSources.flyIntoWall()DamageSources.freeze()DamageSources.generic()DamageSources.genericKill()DamageSources.hotFloor()DamageSources.indirectMagic(Entity causingEntity, @Nullable Entity directEntity) DamageSources.inFire()DamageSources.inWall()DamageSources.lava()DamageSources.lightningBolt()DamageSources.magic()DamageSources.mobAttack(LivingEntity mob) DamageSources.mobProjectile(Entity projectile, @Nullable 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, @Nullable Entity entity) DamageSources.source(ResourceKey<DamageType> damageTypeKey, @Nullable Entity causingEntity, @Nullable Entity directEntity) DamageSources.spit(Entity spit, @Nullable LivingEntity thrower) DamageSources.stalagmite()DamageSources.starve()DamageSources.sting(LivingEntity entity) DamageSources.sweetBerryBush()DamageSources.windCharge(Entity windCharge, @Nullable 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 damageAmount, 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, @Nullable 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 damageSource) 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) voidLivingEntity.dropFromLootTable(ServerLevel level, DamageSource damageSource, boolean playerKill, ResourceKey<LootTable> lootTable) voidLivingEntity.dropFromLootTable(ServerLevel level, DamageSource damageSource, boolean playerKill, ResourceKey<LootTable> lootTable, Consumer<ItemStack> dropConsumer) 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 @Nullable 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_) 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) booleanEntity.killedEntity(ServerLevel level, LivingEntity entity, DamageSource damageSource) protected voidLivingEntity.playHurtSound(DamageSource damageSource) protected voidMob.playHurtSound(DamageSource damageSource) private voidLivingEntity.playSecondaryHurtSound(DamageSource damageSource) protected voidEntity.propagateFallToPassengers(double fallDistance, float damageMultiplier, DamageSource damageSource) protected voidLivingEntity.resolveMobResponsibleForDamage(DamageSource damageSource) protected @Nullable 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_) -
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.bee
Methods in net.minecraft.world.entity.animal.bee with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventBee.getHurtSound(DamageSource damageSource) booleanBee.hurtServer(ServerLevel p_482054_, DamageSource p_481056_, float p_479083_) -
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_) protected SoundEventCamelHusk.getHurtSound(DamageSource p_461114_) -
Uses of DamageSource in net.minecraft.world.entity.animal.chicken
Methods in net.minecraft.world.entity.animal.chicken with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventChicken.getHurtSound(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.animal.cow
Methods in net.minecraft.world.entity.animal.cow with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventAbstractCow.getHurtSound(DamageSource p_479011_) -
Uses of DamageSource in net.minecraft.world.entity.animal.dolphin
Methods in net.minecraft.world.entity.animal.dolphin with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventDolphin.getHurtSound(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.animal.equine
Methods in net.minecraft.world.entity.animal.equine with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanAbstractHorse.causeFallDamage(double p_479211_, float p_480248_, DamageSource p_479929_) booleanLlama.causeFallDamage(double p_479219_, float p_482035_, DamageSource p_478185_) 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_479382_, float p_478845_) booleanAbstractHorse.hurtServer(ServerLevel p_478426_, DamageSource p_478269_, float p_479155_) -
Uses of DamageSource in net.minecraft.world.entity.animal.feline
Methods in net.minecraft.world.entity.animal.feline with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventCat.getHurtSound(DamageSource damageSource) protected SoundEventOcelot.getHurtSound(DamageSource p_479019_) -
Uses of DamageSource in net.minecraft.world.entity.animal.fish
Methods in net.minecraft.world.entity.animal.fish with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventCod.getHurtSound(DamageSource damageSource) protected SoundEventPufferfish.getHurtSound(DamageSource damageSource) protected SoundEventSalmon.getHurtSound(DamageSource damageSource) protected SoundEventTropicalFish.getHurtSound(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.animal.fox
Methods in net.minecraft.world.entity.animal.fox with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidFox.dropAllDeathLoot(ServerLevel p_479911_, DamageSource p_479438_) protected @Nullable SoundEventFox.getHurtSound(DamageSource damageSource) -
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 @Nullable SoundEventFrog.getHurtSound(DamageSource p_218510_) protected @Nullable 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.golem
Methods in net.minecraft.world.entity.animal.golem with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidCopperGolem.actuallyHurt(ServerLevel p_478214_, DamageSource p_480538_, float p_479956_) voidIronGolem.die(DamageSource damageSource) Called when the mob's health reaches 0.protected @Nullable SoundEventAbstractGolem.getHurtSound(DamageSource p_481929_) protected SoundEventCopperGolem.getHurtSound(DamageSource p_480577_) protected SoundEventIronGolem.getHurtSound(DamageSource damageSource) protected @Nullable SoundEventSnowGolem.getHurtSound(DamageSource damageSource) booleanIronGolem.hurtServer(ServerLevel p_480392_, DamageSource p_479023_, float p_479948_) -
Uses of DamageSource in net.minecraft.world.entity.animal.happyghast
Methods in net.minecraft.world.entity.animal.happyghast with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventHappyGhast.getHurtSound(DamageSource p_478380_) -
Uses of DamageSource in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventNautilus.getHurtSound(DamageSource p_455868_) protected SoundEventZombieNautilus.getHurtSound(DamageSource p_456215_) booleanAbstractNautilus.hurtServer(ServerLevel p_456240_, DamageSource p_455867_, float p_454712_) -
Uses of DamageSource in net.minecraft.world.entity.animal.panda
Methods in net.minecraft.world.entity.animal.panda with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected @Nullable SoundEventPanda.getHurtSound(DamageSource damageSource) booleanPanda.hurtServer(ServerLevel p_480184_, DamageSource p_479799_, float p_478083_) -
Uses of DamageSource in net.minecraft.world.entity.animal.parrot
Methods in net.minecraft.world.entity.animal.parrot with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventParrot.getHurtSound(DamageSource damageSource) booleanParrot.hurtServer(ServerLevel p_478766_, DamageSource p_478034_, float p_478531_) -
Uses of DamageSource in net.minecraft.world.entity.animal.pig
Methods in net.minecraft.world.entity.animal.pig with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventPig.getHurtSound(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.animal.polarbear
Methods in net.minecraft.world.entity.animal.polarbear with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventPolarBear.getHurtSound(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.animal.rabbit
Methods in net.minecraft.world.entity.animal.rabbit with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventRabbit.getHurtSound(DamageSource damageSource) -
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.squid
Methods in net.minecraft.world.entity.animal.squid with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventGlowSquid.getHurtSound(DamageSource p_479379_) protected SoundEventSquid.getHurtSound(DamageSource damageSource) booleanGlowSquid.hurtServer(ServerLevel p_481990_, DamageSource p_481192_, float p_478132_) booleanSquid.hurtServer(ServerLevel p_479455_, DamageSource p_478190_, float p_478165_) -
Uses of DamageSource in net.minecraft.world.entity.animal.turtle
Methods in net.minecraft.world.entity.animal.turtle with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected @Nullable SoundEventTurtle.getHurtSound(DamageSource damageSource) -
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.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_) final booleanEnderDragonPart.hurtServer(ServerLevel p_481710_, DamageSource p_479045_, float p_479436_) 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 damageSource, @Nullable Player player) voidDragonHoldingPatternPhase.onCrystalDestroyed(EndCrystal crystal, BlockPos pos, DamageSource damageSource, @Nullable Player player) voidDragonPhaseInstance.onCrystalDestroyed(EndCrystal crystal, BlockPos pos, DamageSource damageSource, @Nullable 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 @Nullable 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 voidEnderMan.dropCustomDeathLoot(ServerLevel p_348556_, DamageSource p_32497_, boolean p_32499_) protected floatWitch.getDamageAfterMagicAbsorb(DamageSource damageSource, float damageAmount) Reduces damage, depending on potionsprotected SoundEventBlaze.getHurtSound(DamageSource damageSource) protected SoundEventCreeper.getHurtSound(DamageSource damageSource) protected SoundEventElderGuardian.getHurtSound(DamageSource damageSource) protected SoundEventEnderMan.getHurtSound(DamageSource damageSource) protected SoundEventEndermite.getHurtSound(DamageSource damageSource) protected SoundEventGhast.getHurtSound(DamageSource damageSource) protected SoundEventGuardian.getHurtSound(DamageSource damageSource) protected SoundEventMagmaCube.getHurtSound(DamageSource damageSource) protected SoundEventMonster.getHurtSound(DamageSource damageSource) protected SoundEventPhantom.getHurtSound(DamageSource damageSource) protected SoundEventRavager.getHurtSound(DamageSource damageSource) protected SoundEventShulker.getHurtSound(DamageSource damageSource) protected SoundEventSilverfish.getHurtSound(DamageSource damageSource) protected SoundEventSlime.getHurtSound(DamageSource damageSource) protected SoundEventStrider.getHurtSound(DamageSource damageSource) protected SoundEventVex.getHurtSound(DamageSource damageSource) protected SoundEventWitch.getHurtSound(DamageSource damageSource) protected SoundEventZoglin.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_) private booleanEnderMan.hurtWithCleanWater(ServerLevel level, DamageSource damageSource, AbstractThrownPotion potion, float amount) booleanGhast.isInvulnerableTo(ServerLevel p_376822_, DamageSource p_238289_) private static booleanGhast.isReflectedFireball(DamageSource damageSource) booleanCreeper.killedEntity(ServerLevel p_434380_, LivingEntity p_434918_, DamageSource p_435170_) -
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.illager
Methods in net.minecraft.world.entity.monster.illager with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventEvoker.getHurtSound(DamageSource damageSource) protected SoundEventIllusioner.getHurtSound(DamageSource damageSource) protected SoundEventPillager.getHurtSound(DamageSource damageSource) protected SoundEventVindicator.getHurtSound(DamageSource p_477988_) -
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.skeleton
Methods in net.minecraft.world.entity.monster.skeleton with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventBogged.getHurtSound(DamageSource p_480674_) protected SoundEventParched.getHurtSound(DamageSource p_480958_) protected SoundEventSkeleton.getHurtSound(DamageSource damageSource) protected SoundEventStray.getHurtSound(DamageSource damageSource) protected SoundEventWitherSkeleton.getHurtSound(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.monster.spider
Methods in net.minecraft.world.entity.monster.spider with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventSpider.getHurtSound(DamageSource damageSource) -
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.monster.zombie
Methods in net.minecraft.world.entity.monster.zombie with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventDrowned.getHurtSound(DamageSource damageSource) protected SoundEventHusk.getHurtSound(DamageSource damageSource) protected SoundEventZombie.getHurtSound(DamageSource damageSource) ZombieVillager.getHurtSound(DamageSource damageSource) protected SoundEventZombifiedPiglin.getHurtSound(DamageSource damageSource) booleanZombie.hurtServer(ServerLevel p_479222_, DamageSource p_478459_, float p_478754_) booleanZombie.killedEntity(ServerLevel p_479575_, LivingEntity p_478394_, DamageSource p_481123_) -
Uses of DamageSource in net.minecraft.world.entity.npc.villager
Methods in net.minecraft.world.entity.npc.villager with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidAbstractVillager.die(DamageSource damageSource) Called when the mob's health reaches 0.voidVillager.die(DamageSource damageSource) Called when the mob's health reaches 0.protected SoundEventVillager.getHurtSound(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.npc.wanderingtrader
Methods in net.minecraft.world.entity.npc.wanderingtrader with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventWanderingTrader.getHurtSound(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return DamageSourceModifier and TypeMethodDescriptionprivate DamageSourcePlayer.createAttackSource(ItemStack stack) 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 damageSource) Called when the mob's health reaches 0.private voidPlayer.doSweepAttack(Entity entity, float damage, DamageSource damageSource, float attackStrengthScale) Deprecated.private voidPlayer.doSweepAttack(Entity entity, float damage, DamageSource damageSource, float attackStrengthScale, AABB sweepHitBox) protected floatPlayer.getEnchantedDamage(Entity entity, float damage, DamageSource damageSource) protected SoundEventPlayer.getHurtSound(DamageSource damageSource) protected voidPlayer.hurtArmor(DamageSource damageSource, float damageAmount) 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_) private voidPlayer.itemAttackInteraction(Entity target, ItemStack stack, DamageSource damageSource, boolean doPostAttack) booleanPlayer.killedEntity(ServerLevel p_219735_, LivingEntity p_219736_, DamageSource p_435371_) -
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 entity, DamageSource damageSource) booleanShulkerBullet.hurtClient(DamageSource p_376754_) 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.projectile.arrow
Methods in net.minecraft.world.entity.projectile.arrow with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidAbstractArrow.doKnockback(LivingEntity entity, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.projectile.hurtingprojectile
Methods in net.minecraft.world.entity.projectile.hurtingprojectile with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanAbstractHurtingProjectile.hurtServer(ServerLevel p_481798_, DamageSource p_482007_, float p_478235_) -
Uses of DamageSource in net.minecraft.world.entity.projectile.throwableitemprojectile
Methods in net.minecraft.world.entity.projectile.throwableitemprojectile with parameters of type DamageSourceModifier and TypeMethodDescriptionit.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairAbstractThrownPotion.calculateHorizontalHurtKnockbackDirection(LivingEntity p_481495_, DamageSource p_478829_) -
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 damageSource) 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
Methods in net.minecraft.world.entity.vehicle with parameters of type DamageSourceModifier and TypeMethodDescriptiondefault voidContainerEntity.chestVehicleDestroyed(DamageSource damageSource, ServerLevel level, Entity entity) protected voidVehicleEntity.destroy(ServerLevel level, DamageSource damageSource) booleanVehicleEntity.hurtClient(DamageSource p_376811_) booleanVehicleEntity.hurtServer(ServerLevel p_376703_, DamageSource p_376603_, float p_376371_) protected booleanVehicleEntity.shouldSourceDestroy(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.entity.vehicle.boat
Methods in net.minecraft.world.entity.vehicle.boat with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidAbstractChestBoat.destroy(ServerLevel p_480863_, DamageSource p_479168_) -
Uses of DamageSource in net.minecraft.world.entity.vehicle.minecart
Fields in net.minecraft.world.entity.vehicle.minecart declared as DamageSourceMethods in net.minecraft.world.entity.vehicle.minecart with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanMinecartTNT.causeFallDamage(double p_478008_, float p_478914_, DamageSource p_479523_) private static booleanMinecartTNT.damageSourceIgnitesTnt(DamageSource damageSource) voidAbstractMinecartContainer.destroy(ServerLevel p_479068_, DamageSource p_479600_) voidMinecartTNT.destroy(ServerLevel p_478732_, DamageSource p_481785_) protected voidMinecartTNT.explode(@Nullable DamageSource damageSource, double radiusModifier) booleanMinecartTNT.hurtServer(ServerLevel p_481888_, DamageSource p_478515_, float p_478708_) voidMinecartTNT.primeFuse(@Nullable DamageSource damageSource) protected booleanMinecartTNT.shouldSourceDestroy(DamageSource p_479055_) -
Uses of DamageSource in net.minecraft.world.item
Methods in net.minecraft.world.item that return DamageSourceModifier and TypeMethodDescriptionItemStack.getDamageSource(LivingEntity attacker, Supplier<DamageSource> defaultGetter) @Nullable DamageSourceItem.getItemDamageSource(LivingEntity entity) Deprecated.@Nullable DamageSourceMaceItem.getItemDamageSource(LivingEntity p_454928_) Methods in net.minecraft.world.item with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanItemStack.canBeHurtBy(DamageSource damageSource) floatItem.getAttackDamageBonus(Entity target, float damageAmount, DamageSource damageSource) floatMaceItem.getAttackDamageBonus(Entity p_344900_, float p_335575_, DamageSource p_344972_) Method parameters in net.minecraft.world.item with type arguments of type DamageSourceModifier and TypeMethodDescriptionItemStack.getDamageSource(LivingEntity attacker, Supplier<DamageSource> defaultGetter) -
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, @Nullable ItemStack itemSource) static voidEnchantmentHelper.doPostAttackEffectsWithItemSourceOnBreak(ServerLevel level, Entity entity, DamageSource damageSource, @Nullable ItemStack itemSource, @Nullable 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>>> component, 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 entity, 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 @Nullable 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, @Nullable Entity source) Methods in net.minecraft.world.level with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidLevel.broadcastDamageEvent(Entity entity, DamageSource damageSource) voidLevel.explode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) abstract voidLevel.explode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, WeightedList<ExplosionParticleInfo> blockParticles, Holder<SoundEvent> explosionSound) voidLevel.explode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, Vec3 pos, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) Constructors in net.minecraft.world.level with parameters of type DamageSourceModifierConstructorDescriptionServerExplosion(ServerLevel level, @Nullable Entity source, @Nullable DamageSource damageSource, @Nullable 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(@Nullable 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 damageSource) -
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 DamageSourceArmorHurtEvent.sourceprivate final DamageSourceLivingDamageEvent.Post.sourceprivate final DamageSourceLivingDeathEvent.sourceprivate final DamageSourceLivingDropsEvent.sourceprivate final DamageSourceLivingUseTotemEvent.sourceMethods in net.neoforged.neoforge.event.entity.living that return DamageSourceModifier and TypeMethodDescriptionArmorHurtEvent.getDamageSource()Returns theDamageSourcecausing the damage.LivingShieldBlockEvent.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 DamageSourceModifierConstructorDescriptionArmorHurtEvent(EnumMap<EquipmentSlot, ArmorHurtEvent.ArmorEntry> armorMap, LivingEntity player, DamageSource source) LivingDeathEvent(LivingEntity entity, DamageSource source) LivingDropsEvent(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, boolean recentlyHit) LivingUseTotemEvent(LivingEntity entity, DamageSource source, ItemStack totem, InteractionHand hand)