Uses of Class
net.minecraft.world.damagesource.DamageSource
Packages that use DamageSource
Package
Description
-
Uses of DamageSource in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanDamagePredicate.matches(ServerPlayer p_24918_, DamageSource p_24919_, float p_24920_, float p_24921_, boolean p_24922_) booleanDamageSourcePredicate.matches(ServerLevel p_25445_, Vec3 p_25446_, DamageSource p_25447_) booleanDamageSourcePredicate.matches(ServerPlayer p_25449_, DamageSource p_25450_) booleanEntityHurtPlayerTrigger.TriggerInstance.matches(ServerPlayer p_35201_, DamageSource p_35202_, float p_35203_, float p_35204_, boolean p_35205_) booleanKilledTrigger.TriggerInstance.matches(ServerPlayer p_48131_, LootContext p_48132_, DamageSource p_48133_) booleanPlayerHurtEntityTrigger.TriggerInstance.matches(ServerPlayer p_60143_, LootContext p_60144_, DamageSource p_60145_, float p_60146_, float p_60147_, boolean p_60148_) voidEntityHurtPlayerTrigger.trigger(ServerPlayer p_35175_, DamageSource p_35176_, float p_35177_, float p_35178_, boolean p_35179_) voidKilledTrigger.trigger(ServerPlayer p_48105_, Entity p_48106_, DamageSource p_48107_) voidPlayerHurtEntityTrigger.trigger(ServerPlayer p_60113_, Entity p_60114_, DamageSource p_60115_, float p_60116_, float p_60117_, boolean p_60118_) -
Uses of DamageSource in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidLocalPlayer.actuallyHurt(DamageSource p_108729_, float p_108730_) booleanLocalPlayer.hurt(DamageSource p_108662_, float p_108663_) booleanRemotePlayer.hurt(DamageSource p_108772_, float p_108773_) -
Uses of DamageSource in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidServerPlayer.awardKillScore(Entity p_9050_, int p_9051_, DamageSource p_9052_) voidServerPlayer.die(DamageSource p_9035_) ServerLevel.explode(Entity p_256039_, DamageSource p_255778_, ExplosionDamageCalculator p_256002_, double p_256067_, double p_256370_, double p_256153_, float p_256045_, boolean p_255686_, Level.ExplosionInteraction p_255827_) booleanServerPlayer.hurt(DamageSource p_9037_, float p_9038_) booleanServerPlayer.isInvulnerableTo(DamageSource p_9182_) -
Uses of DamageSource in net.minecraft.world.damagesource
Subclasses of DamageSource in net.minecraft.world.damagesourceModifier and TypeClassDescriptionclassclassclassclassFields in net.minecraft.world.damagesource declared as DamageSourceModifier and TypeFieldDescriptionstatic final DamageSourceDamageSource.CACTUSstatic final DamageSourceDamageSource.CRAMMINGstatic final DamageSourceDamageSource.DRAGON_BREATHstatic final DamageSourceDamageSource.DROWNstatic final DamageSourceDamageSource.DRY_OUTstatic final DamageSourceDamageSource.FALLstatic final DamageSourceDamageSource.FLY_INTO_WALLstatic final DamageSourceDamageSource.FREEZEstatic final DamageSourceDamageSource.GENERICstatic final DamageSourceDamageSource.HOT_FLOORstatic final DamageSourceDamageSource.IN_FIREstatic final DamageSourceDamageSource.IN_WALLstatic final DamageSourceDamageSource.LAVAstatic final DamageSourceDamageSource.LIGHTNING_BOLTstatic final DamageSourceDamageSource.MAGICstatic final DamageSourceDamageSource.ON_FIREstatic final DamageSourceDamageSource.OUT_OF_WORLDprivate final DamageSourceCombatEntry.sourcestatic final DamageSourceDamageSource.STALAGMITEstatic final DamageSourceDamageSource.STARVEstatic final DamageSourceDamageSource.SWEET_BERRY_BUSHstatic final DamageSourceDamageSource.WITHERMethods in net.minecraft.world.damagesource that return DamageSourceModifier and TypeMethodDescriptionstatic DamageSourcestatic DamageSourceDamageSource.arrow(AbstractArrow p_19347_, Entity p_19348_) static DamageSourceDamageSource.badRespawnPointExplosion(Vec3 p_253714_) DamageSource.bypassArmor()DamageSource.bypassEnchantments()DamageSource.bypassInvul()DamageSource.bypassMagic()DamageSource.damageHelmet()static DamageSourcestatic DamageSourcestatic DamageSourceDamageSource.fallingBlock(Entity p_254272_) static DamageSourceDamageSource.fallingStalactite(Entity p_253863_) static DamageSourcestatic DamageSourceDamageSource.fireworks(FireworkRocketEntity p_19353_, Entity p_19354_) CombatEntry.getSource()static DamageSourceDamageSource.indirectMagic(Entity p_19368_, Entity p_19369_) static DamageSourceDamageSource.indirectMobAttack(Entity p_19341_, LivingEntity p_19342_) static DamageSourceDamageSource.mobAttack(LivingEntity p_19371_) static DamageSourceDamageSource.playerAttack(Player p_19345_) DamageSource.setExplosion()DamageSource.setIsFall()DamageSource.setIsFire()DamageSource.setMagic()DamageSource.setNoAggro()DamageSource.setProjectile()DamageSource.setScalesWithDifficulty()static DamageSourcestatic DamageSourceDamageSource.sting(LivingEntity p_19365_) static DamageSourcestatic DamageSourcestatic DamageSourcestatic DamageSourceDamageSource.witherSkull(WitherSkull p_19356_, Entity p_19357_) Methods in net.minecraft.world.damagesource with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidCombatTracker.recordDamage(DamageSource p_19290_, float p_19291_, float p_19292_) Constructors in net.minecraft.world.damagesource with parameters of type DamageSourceModifierConstructorDescriptionCombatEntry(DamageSource p_19257_, int p_19258_, float p_19259_, float p_19260_, String p_19261_, float p_19262_) -
Uses of DamageSource in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as DamageSourceMethods in net.minecraft.world.entity that return DamageSourceMethods in net.minecraft.world.entity with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidLivingEntity.actuallyHurt(DamageSource p_21240_, float p_21241_) voidEntity.awardKillScore(Entity p_19953_, int p_19954_, DamageSource p_19955_) booleanEntity.causeFallDamage(float p_146828_, float p_146829_, DamageSource p_146830_) booleanFlyingMob.causeFallDamage(float p_147105_, float p_147106_, DamageSource p_147107_) booleanLivingEntity.causeFallDamage(float p_147187_, float p_147188_, DamageSource p_147189_) private booleanLivingEntity.checkTotemDeathProtection(DamageSource p_21263_) protected LootContext.BuilderLivingEntity.createLootContext(boolean p_21105_, DamageSource p_21106_) protected LootContext.BuilderMob.createLootContext(boolean p_21453_, DamageSource p_21454_) voidLivingEntity.die(DamageSource p_21014_) voidTamableAnimal.die(DamageSource p_21809_) protected voidLivingEntity.dropAllDeathLoot(DamageSource p_21192_) protected voidLivingEntity.dropCustomDeathLoot(DamageSource p_21018_, int p_21019_, boolean p_21020_) protected voidMob.dropCustomDeathLoot(DamageSource p_21385_, int p_21386_, boolean p_21387_) protected voidLivingEntity.dropFromLootTable(DamageSource p_21021_, boolean p_21022_) protected voidMob.dropFromLootTable(DamageSource p_21389_, boolean p_21390_) protected floatLivingEntity.getDamageAfterArmorAbsorb(DamageSource p_21162_, float p_21163_) protected floatLivingEntity.getDamageAfterMagicAbsorb(DamageSource p_21193_, float p_21194_) protected SoundEventGlowSquid.getHurtSound(DamageSource p_147124_) protected SoundEventLivingEntity.getHurtSound(DamageSource p_21239_) booleanEntity.hurt(DamageSource p_19946_, float p_19947_) booleanExperienceOrb.hurt(DamageSource p_20785_, float p_20786_) booleanGlowSquid.hurt(DamageSource p_147114_, float p_147115_) booleanLivingEntity.hurt(DamageSource p_21016_, float p_21017_) protected voidLivingEntity.hurtArmor(DamageSource p_21122_, float p_21123_) protected voidLivingEntity.hurtHelmet(DamageSource p_147213_, float p_147214_) booleanLivingEntity.isDamageSourceBlocked(DamageSource p_21276_) booleanEntity.isInvulnerableTo(DamageSource p_20122_) protected voidLivingEntity.playHurtSound(DamageSource p_21160_) protected voidMob.playHurtSound(DamageSource p_21493_) -
Uses of DamageSource in net.minecraft.world.entity.ai.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 TypeMethodDescriptionbooleanBat.causeFallDamage(float p_148702_, float p_148703_, DamageSource p_148704_) protected SoundEventBat.getHurtSound(DamageSource p_27451_) booleanBat.hurt(DamageSource p_27424_, float p_27425_) -
Uses of DamageSource in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanAbstractGolem.causeFallDamage(float p_148711_, float p_148712_, DamageSource p_148713_) booleanBee.causeFallDamage(float p_148750_, float p_148751_, DamageSource p_148752_) booleanCat.causeFallDamage(float p_148859_, float p_148860_, DamageSource p_148861_) booleanChicken.causeFallDamage(float p_148875_, float p_148876_, DamageSource p_148877_) booleanOcelot.causeFallDamage(float p_148949_, float p_148950_, DamageSource p_148951_) booleanParrot.causeFallDamage(float p_148989_, float p_148990_, DamageSource p_148991_) voidIronGolem.die(DamageSource p_28846_) voidWolf.die(DamageSource p_30384_) protected voidFox.dropAllDeathLoot(DamageSource p_28536_) protected SoundEventAbstractGolem.getHurtSound(DamageSource p_27517_) protected SoundEventBee.getHurtSound(DamageSource p_27845_) protected SoundEventCat.getHurtSound(DamageSource p_28160_) protected SoundEventChicken.getHurtSound(DamageSource p_28262_) protected SoundEventCod.getHurtSound(DamageSource p_28281_) protected SoundEventCow.getHurtSound(DamageSource p_28306_) protected SoundEventDolphin.getHurtSound(DamageSource p_28374_) protected SoundEventFox.getHurtSound(DamageSource p_28548_) protected SoundEventIronGolem.getHurtSound(DamageSource p_28872_) protected SoundEventOcelot.getHurtSound(DamageSource p_29035_) protected SoundEventPanda.getHurtSound(DamageSource p_29142_) protected SoundEventParrot.getHurtSound(DamageSource p_29437_) protected SoundEventPig.getHurtSound(DamageSource p_29502_) protected SoundEventPolarBear.getHurtSound(DamageSource p_29559_) protected SoundEventPufferfish.getHurtSound(DamageSource p_29628_) protected SoundEventRabbit.getHurtSound(DamageSource p_29715_) protected SoundEventSalmon.getHurtSound(DamageSource p_29795_) protected SoundEventSheep.getHurtSound(DamageSource p_29872_) protected SoundEventSnowGolem.getHurtSound(DamageSource p_29929_) protected SoundEventSquid.getHurtSound(DamageSource p_29980_) protected SoundEventTropicalFish.getHurtSound(DamageSource p_30039_) protected SoundEventTurtle.getHurtSound(DamageSource p_30202_) protected SoundEventWolf.getHurtSound(DamageSource p_30424_) booleanAnimal.hurt(DamageSource p_27567_, float p_27568_) booleanBee.hurt(DamageSource p_27762_, float p_27763_) booleanIronGolem.hurt(DamageSource p_28848_, float p_28849_) booleanPanda.hurt(DamageSource p_29097_, float p_29098_) booleanParrot.hurt(DamageSource p_29378_, float p_29379_) booleanSquid.hurt(DamageSource p_29963_, float p_29964_) booleanWolf.hurt(DamageSource p_30386_, float p_30387_) -
Uses of DamageSource in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanAllay.causeFallDamage(float p_218321_, float p_218322_, DamageSource p_218323_) protected SoundEventAllay.getHurtSound(DamageSource p_218369_) booleanAllay.hurt(DamageSource p_218339_, float p_218340_) -
Uses of DamageSource in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventAxolotl.getHurtSound(DamageSource p_149161_) booleanAxolotl.hurt(DamageSource p_149115_, float p_149116_) -
Uses of DamageSource in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidCamel.actuallyHurt(DamageSource p_250410_, float p_251451_) protected SoundEventCamel.getHurtSound(DamageSource p_250052_) -
Uses of DamageSource in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventFrog.getHurtSound(DamageSource p_218510_) protected SoundEventTadpole.getHurtSound(DamageSource p_218713_) -
Uses of DamageSource in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type DamageSource -
Uses of DamageSource in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanAbstractHorse.causeFallDamage(float p_149499_, float p_149500_, DamageSource p_149501_) booleanLlama.causeFallDamage(float p_149538_, float p_149539_, DamageSource p_149540_) protected SoundEventDonkey.getHurtSound(DamageSource p_30682_) protected SoundEventHorse.getHurtSound(DamageSource p_30720_) protected SoundEventLlama.getHurtSound(DamageSource p_30803_) protected SoundEventMule.getHurtSound(DamageSource p_30886_) protected SoundEventSkeletonHorse.getHurtSound(DamageSource p_30916_) protected SoundEventZombieHorse.getHurtSound(DamageSource p_31006_) booleanAbstractHorse.hurt(DamageSource p_252258_, float p_250984_) -
Uses of DamageSource in net.minecraft.world.entity.boss
Methods in net.minecraft.world.entity.boss with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanEnderDragonPart.hurt(DamageSource p_31020_, float p_31021_) -
Uses of DamageSource in net.minecraft.world.entity.boss.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventEnderDragon.getHurtSound(DamageSource p_31154_) booleanEndCrystal.hurt(DamageSource p_31050_, float p_31051_) booleanEnderDragon.hurt(DamageSource p_31113_, float p_31114_) booleanEnderDragon.hurt(EnderDragonPart p_31121_, DamageSource p_31122_, float p_31123_) voidEnderDragon.onCrystalDestroyed(EndCrystal p_31125_, BlockPos p_31126_, DamageSource p_31127_) private voidEndCrystal.onDestroyedBy(DamageSource p_31048_) protected booleanEnderDragon.reallyHurt(DamageSource p_31162_, float p_31163_) -
Uses of DamageSource in net.minecraft.world.entity.boss.enderdragon.phases
Methods in net.minecraft.world.entity.boss.enderdragon.phases with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidAbstractDragonPhaseInstance.onCrystalDestroyed(EndCrystal p_31184_, BlockPos p_31185_, DamageSource p_31186_, Player p_31187_) voidDragonHoldingPatternPhase.onCrystalDestroyed(EndCrystal p_31232_, BlockPos p_31233_, DamageSource p_31234_, Player p_31235_) voidDragonPhaseInstance.onCrystalDestroyed(EndCrystal p_31315_, BlockPos p_31316_, DamageSource p_31317_, Player p_31318_) floatAbstractDragonPhaseInstance.onHurt(DamageSource p_31181_, float p_31182_) floatAbstractDragonSittingPhase.onHurt(DamageSource p_31199_, float p_31200_) floatDragonPhaseInstance.onHurt(DamageSource p_31313_, float p_31314_) -
Uses of DamageSource in net.minecraft.world.entity.boss.wither
Methods in net.minecraft.world.entity.boss.wither with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanWitherBoss.causeFallDamage(float p_149589_, float p_149590_, DamageSource p_149591_) protected voidWitherBoss.dropCustomDeathLoot(DamageSource p_31464_, int p_31465_, boolean p_31466_) protected SoundEventWitherBoss.getHurtSound(DamageSource p_31500_) booleanWitherBoss.hurt(DamageSource p_31461_, float p_31462_) -
Uses of DamageSource in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration with parameters of type DamageSourceModifier and TypeMethodDescriptionprivate voidArmorStand.brokenByAnything(DamageSource p_31654_) private voidArmorStand.brokenByPlayer(DamageSource p_31647_) private voidArmorStand.causeDamage(DamageSource p_31649_, float p_31650_) protected SoundEventArmorStand.getHurtSound(DamageSource p_31636_) booleanArmorStand.hurt(DamageSource p_31579_, float p_31580_) booleanHangingEntity.hurt(DamageSource p_31715_, float p_31716_) booleanItemFrame.hurt(DamageSource p_31776_, float p_31777_) -
Uses of DamageSource in net.minecraft.world.entity.item
Methods in net.minecraft.world.entity.item with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanFallingBlockEntity.causeFallDamage(float p_149643_, float p_149644_, DamageSource p_149645_) booleanItemEntity.hurt(DamageSource p_32013_, float p_32014_) -
Uses of DamageSource in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanBlaze.causeFallDamage(float p_149683_, float p_149684_, DamageSource p_149685_) booleanCreeper.causeFallDamage(float p_149687_, float p_149688_, DamageSource p_149689_) booleanMagmaCube.causeFallDamage(float p_149717_, float p_149718_, DamageSource p_149719_) protected voidCreeper.dropCustomDeathLoot(DamageSource p_32292_, int p_32293_, boolean p_32294_) protected voidEnderMan.dropCustomDeathLoot(DamageSource p_32497_, int p_32498_, boolean p_32499_) protected voidSkeleton.dropCustomDeathLoot(DamageSource p_33574_, int p_33575_, boolean p_33576_) protected voidWitherSkeleton.dropCustomDeathLoot(DamageSource p_34174_, int p_34175_, boolean p_34176_) protected voidZombie.dropCustomDeathLoot(DamageSource p_34291_, int p_34292_, boolean p_34293_) protected floatWitch.getDamageAfterMagicAbsorb(DamageSource p_34149_, float p_34150_) protected SoundEventBlaze.getHurtSound(DamageSource p_32235_) protected SoundEventCreeper.getHurtSound(DamageSource p_32309_) protected SoundEventDrowned.getHurtSound(DamageSource p_32386_) protected SoundEventElderGuardian.getHurtSound(DamageSource p_32468_) protected SoundEventEnderMan.getHurtSound(DamageSource p_32527_) protected SoundEventEndermite.getHurtSound(DamageSource p_32615_) protected SoundEventEvoker.getHurtSound(DamageSource p_32654_) protected SoundEventGhast.getHurtSound(DamageSource p_32750_) protected SoundEventGuardian.getHurtSound(DamageSource p_32852_) protected SoundEventHusk.getHurtSound(DamageSource p_32903_) protected SoundEventIllusioner.getHurtSound(DamageSource p_32930_) protected SoundEventMagmaCube.getHurtSound(DamageSource p_32992_) protected SoundEventMonster.getHurtSound(DamageSource p_33034_) protected SoundEventPhantom.getHurtSound(DamageSource p_33152_) protected SoundEventPillager.getHurtSound(DamageSource p_33306_) protected SoundEventRavager.getHurtSound(DamageSource p_33359_) protected SoundEventShulker.getHurtSound(DamageSource p_33457_) protected SoundEventSilverfish.getHurtSound(DamageSource p_33549_) protected SoundEventSkeleton.getHurtSound(DamageSource p_33579_) protected SoundEventSlime.getHurtSound(DamageSource p_33631_) protected SoundEventSpider.getHurtSound(DamageSource p_33814_) protected SoundEventStray.getHurtSound(DamageSource p_33850_) protected SoundEventStrider.getHurtSound(DamageSource p_33934_) protected SoundEventVex.getHurtSound(DamageSource p_34023_) protected SoundEventVindicator.getHurtSound(DamageSource p_34103_) protected SoundEventWitch.getHurtSound(DamageSource p_34154_) protected SoundEventWitherSkeleton.getHurtSound(DamageSource p_34195_) protected SoundEventZoglin.getHurtSound(DamageSource p_34244_) protected SoundEventZombie.getHurtSound(DamageSource p_34327_) ZombieVillager.getHurtSound(DamageSource p_34404_) protected SoundEventZombifiedPiglin.getHurtSound(DamageSource p_34466_) booleanEnderMan.hurt(DamageSource p_32494_, float p_32495_) booleanGhast.hurt(DamageSource p_32730_, float p_32731_) booleanGuardian.hurt(DamageSource p_32820_, float p_32821_) booleanShulker.hurt(DamageSource p_33421_, float p_33422_) booleanSilverfish.hurt(DamageSource p_33527_, float p_33528_) booleanZoglin.hurt(DamageSource p_34214_, float p_34215_) booleanZombie.hurt(DamageSource p_34288_, float p_34289_) private booleanEnderMan.hurtWithCleanWater(DamageSource p_186273_, ThrownPotion p_186274_, float p_186275_) booleanGhast.isInvulnerableTo(DamageSource p_238289_) private static booleanGhast.isReflectedFireball(DamageSource p_238408_) -
Uses of DamageSource in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventHoglin.getHurtSound(DamageSource p_34548_) booleanHoglin.hurt(DamageSource p_34503_, float p_34504_) -
Uses of DamageSource in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidPiglin.dropCustomDeathLoot(DamageSource p_34697_, int p_34698_, boolean p_34699_) protected SoundEventPiglin.getHurtSound(DamageSource p_34767_) protected SoundEventPiglinBrute.getHurtSound(DamageSource p_35072_) booleanPiglin.hurt(DamageSource p_34694_, float p_34695_) booleanPiglinBrute.hurt(DamageSource p_35055_, float p_35056_) -
Uses of DamageSource in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected SoundEventWarden.getHurtSound(DamageSource p_219440_) booleanWarden.hurt(DamageSource p_219381_, float p_219382_) booleanWarden.isInvulnerableTo(DamageSource p_219427_) -
Uses of DamageSource in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidAbstractVillager.die(DamageSource p_35270_) voidVillager.die(DamageSource p_35419_) protected SoundEventVillager.getHurtSound(DamageSource p_35498_) protected SoundEventWanderingTrader.getHurtSound(DamageSource p_35870_) -
Uses of DamageSource in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidPlayer.actuallyHurt(DamageSource p_36312_, float p_36313_) booleanPlayer.causeFallDamage(float p_150093_, float p_150094_, DamageSource p_150095_) voidPlayer.die(DamageSource p_36152_) protected SoundEventPlayer.getHurtSound(DamageSource p_36310_) booleanPlayer.hurt(DamageSource p_36154_, float p_36155_) voidInventory.hurtArmor(DamageSource p_150073_, float p_150074_, int[] p_150075_) protected voidPlayer.hurtArmor(DamageSource p_36251_, float p_36252_) protected voidPlayer.hurtHelmet(DamageSource p_150103_, float p_150104_) booleanPlayer.isInvulnerableTo(DamageSource p_36249_) -
Uses of DamageSource in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanAbstractHurtingProjectile.hurt(DamageSource p_36839_, float p_36840_) booleanDragonFireball.hurt(DamageSource p_36910_, float p_36911_) booleanShulkerBullet.hurt(DamageSource p_37338_, float p_37339_) booleanSmallFireball.hurt(DamageSource p_37381_, float p_37382_) booleanWitherSkull.hurt(DamageSource p_37616_, float p_37617_) -
Uses of DamageSource in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidRaider.die(DamageSource p_37847_) booleanRaider.hurt(DamageSource p_37849_, float p_37850_) -
Uses of DamageSource in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanMinecartTNT.causeFallDamage(float p_150347_, float p_150348_, DamageSource p_150349_) default voidContainerEntity.chestVehicleDestroyed(DamageSource p_219928_, Level p_219929_, Entity p_219930_) voidAbstractMinecart.destroy(DamageSource p_38115_) voidAbstractMinecartContainer.destroy(DamageSource p_38228_) protected voidBoat.destroy(DamageSource p_219862_) voidChestBoat.destroy(DamageSource p_219892_) voidMinecartTNT.destroy(DamageSource p_38664_) protected voidMinecartTNT.explode(DamageSource p_259539_, double p_260287_) booleanAbstractMinecart.hurt(DamageSource p_38117_, float p_38118_) booleanBoat.hurt(DamageSource p_38319_, float p_38320_) booleanMinecartTNT.hurt(DamageSource p_38666_, float p_38667_) -
Uses of DamageSource in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type DamageSource -
Uses of DamageSource in net.minecraft.world.item.enchantment
Methods in net.minecraft.world.item.enchantment with parameters of type DamageSourceModifier and TypeMethodDescriptionintEnchantment.getDamageProtection(int p_44680_, DamageSource p_44681_) static intEnchantmentHelper.getDamageProtection(Iterable<ItemStack> p_44857_, DamageSource p_44858_) intProtectionEnchantment.getDamageProtection(int p_45133_, DamageSource p_45134_) -
Uses of DamageSource in net.minecraft.world.level
Fields in net.minecraft.world.level declared as DamageSourceMethods in net.minecraft.world.level that return DamageSourceMethods in net.minecraft.world.level with parameters of type DamageSourceModifier and TypeMethodDescriptionLevel.explode(Entity p_256145_, DamageSource p_256004_, ExplosionDamageCalculator p_255696_, double p_256208_, double p_256036_, double p_255746_, float p_256647_, boolean p_256098_, Level.ExplosionInteraction p_256104_) Level.explode(Entity p_256233_, DamageSource p_255861_, ExplosionDamageCalculator p_255867_, double p_256447_, double p_255732_, double p_255717_, float p_256013_, boolean p_256228_, Level.ExplosionInteraction p_255784_, boolean p_256377_) Level.explode(Entity p_255653_, DamageSource p_256558_, ExplosionDamageCalculator p_255929_, Vec3 p_256001_, float p_255963_, boolean p_256099_, Level.ExplosionInteraction p_256371_) Constructors in net.minecraft.world.level with parameters of type DamageSourceModifierConstructorDescriptionExplosion(Level p_46051_, Entity p_46052_, DamageSource p_46053_, ExplosionDamageCalculator p_46054_, double p_46055_, double p_46056_, double p_46057_, float p_46058_, boolean p_46059_, Explosion.BlockInteraction p_46060_) -
Uses of DamageSource in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return DamageSourceModifier and TypeMethodDescriptionAnvilBlock.getFallDamageSource(Entity p_254036_) default DamageSourceFallable.getFallDamageSource(Entity p_253907_) PointedDripstoneBlock.getFallDamageSource(Entity p_254432_) -
Uses of DamageSource in net.minecraft.world.level.dimension.end
Methods in net.minecraft.world.level.dimension.end with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidEndDragonFight.onCrystalDestroyed(EndCrystal p_64083_, DamageSource p_64084_) -
Uses of DamageSource in net.minecraft.world.level.storage.loot.parameters
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type DamageSourceModifier and TypeFieldDescriptionstatic final LootContextParam<DamageSource>LootContextParams.DAMAGE_SOURCE -
Uses of DamageSource in net.minecraftforge.common
Methods in net.minecraftforge.common with parameters of type DamageSourceModifier and TypeMethodDescriptionstatic intForgeHooks.getLootingLevel(Entity target, @Nullable Entity killer, @Nullable DamageSource cause) static intForgeHooks.getLootingLevel(LivingEntity target, @Nullable DamageSource cause, int level) static booleanForgeHooks.onLivingAttack(LivingEntity entity, DamageSource src, float amount) static floatForgeHooks.onLivingDamage(LivingEntity entity, DamageSource src, float amount) static booleanForgeHooks.onLivingDeath(LivingEntity entity, DamageSource src) static booleanForgeHooks.onLivingDrops(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, int lootingLevel, boolean recentlyHit) static floatForgeHooks.onLivingHurt(LivingEntity entity, DamageSource src, float amount) static booleanForgeHooks.onLivingUseTotem(LivingEntity entity, DamageSource damageSource, ItemStack totem, InteractionHand hand) static booleanForgeHooks.onPlayerAttack(LivingEntity entity, DamageSource src, float amount) static ShieldBlockEventForgeHooks.onShieldBlock(LivingEntity blocker, DamageSource source, float blocked) -
Uses of DamageSource in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions with parameters of type DamageSourceModifier and TypeMethodDescriptiondefault voidIForgeItem.onDestroyed(ItemEntity itemEntity, DamageSource damageSource) Called when an item entity for this stack is destroyed.default voidIForgeItemStack.onDestroyed(ItemEntity itemEntity, DamageSource damageSource) Called when an item entity for this stack is destroyed. -
Uses of DamageSource in net.minecraftforge.common.util
Methods in net.minecraftforge.common.util with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidFakePlayer.die(DamageSource source) booleanFakePlayer.isInvulnerableTo(DamageSource source) -
Uses of DamageSource in net.minecraftforge.debug.entity
Methods in net.minecraftforge.debug.entity with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanPartEntityTest.TestEntityPart.hurt(DamageSource source, float amount) -
Uses of DamageSource in net.minecraftforge.event.entity.living
Fields in net.minecraftforge.event.entity.living declared as DamageSourceModifier and TypeFieldDescriptionprivate final @Nullable DamageSourceLootingLevelEvent.damageSourceprivate final DamageSourceLivingAttackEvent.sourceprivate final DamageSourceLivingDamageEvent.sourceprivate final DamageSourceLivingDeathEvent.sourceprivate final DamageSourceLivingDropsEvent.sourceprivate final DamageSourceLivingHurtEvent.sourceprivate final DamageSourceLivingUseTotemEvent.sourceprivate final DamageSourceShieldBlockEvent.sourceMethods in net.minecraftforge.event.entity.living that return DamageSourceModifier and TypeMethodDescription@Nullable DamageSourceLootingLevelEvent.getDamageSource()ShieldBlockEvent.getDamageSource()LivingAttackEvent.getSource()LivingDamageEvent.getSource()LivingDeathEvent.getSource()LivingDropsEvent.getSource()LivingHurtEvent.getSource()LivingUseTotemEvent.getSource()Returns the damage source that caused the entity to die.Constructors in net.minecraftforge.event.entity.living with parameters of type DamageSourceModifierConstructorDescriptionLivingAttackEvent(LivingEntity entity, DamageSource source, float amount) LivingDamageEvent(LivingEntity entity, DamageSource source, float amount) LivingDeathEvent(LivingEntity entity, DamageSource source) LivingDropsEvent(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, int lootingLevel, boolean recentlyHit) LivingHurtEvent(LivingEntity entity, DamageSource source, float amount) LivingUseTotemEvent(LivingEntity entity, DamageSource source, ItemStack totem, InteractionHand hand) LootingLevelEvent(LivingEntity entity, @Nullable DamageSource damageSource, int lootingLevel) ShieldBlockEvent(LivingEntity blocker, DamageSource source, float blocked)