Uses of Class
net.minecraft.entity.damage.DamageSource
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
-
Uses of DamageSource in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionboolean
EntityHurtPlayerCriterion.Conditions.matches
(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) boolean
PlayerHurtEntityCriterion.Conditions.matches
(ServerPlayerEntity player, LootContext entityContext, DamageSource source, float dealt, float taken, boolean blocked) boolean
OnKilledCriterion.Conditions.test
(ServerPlayerEntity player, LootContext killedEntityContext, DamageSource killingBlow) void
EntityHurtPlayerCriterion.trigger
(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) void
OnKilledCriterion.trigger
(ServerPlayerEntity player, Entity entity, DamageSource killingDamage) void
PlayerHurtEntityCriterion.trigger
(ServerPlayerEntity player, Entity entity, DamageSource damage, float dealt, float taken, boolean blocked) -
Uses of DamageSource in net.minecraft.block
Modifier and TypeMethodDescriptionAnvilBlock.getDamageSource()
default DamageSource
LandingBlock.getDamageSource()
PointedDripstoneBlock.getDamageSource()
-
Uses of DamageSource in net.minecraft.client.network
Modifier and TypeMethodDescriptionprotected void
ClientPlayerEntity.applyDamage
(DamageSource source, float amount) boolean
ClientPlayerEntity.damage
(DamageSource source, float amount) boolean
OtherClientPlayerEntity.damage
(DamageSource source, float amount) -
Uses of DamageSource in net.minecraft.enchantment
Modifier and TypeMethodDescriptionint
Enchantment.getProtectionAmount
(int level, DamageSource source) static int
EnchantmentHelper.getProtectionAmount
(Iterable<ItemStack> equipment, DamageSource source) int
ProtectionEnchantment.getProtectionAmount
(int level, DamageSource source) -
Uses of DamageSource in net.minecraft.entity
Modifier and TypeMethodDescriptionprotected float
LivingEntity.applyArmorToDamage
(DamageSource source, float amount) protected void
LivingEntity.applyDamage
(DamageSource source, float amount) protected float
LivingEntity.applyEnchantmentsToDamage
(DamageSource source, float amount) boolean
LivingEntity.blockedByShield
(DamageSource source) boolean
Entity.damage
(DamageSource source, float amount) boolean
ExperienceOrbEntity.damage
(DamageSource source, float amount) boolean
ItemEntity.damage
(DamageSource source, float amount) boolean
LivingEntity.damage
(DamageSource source, float amount) protected void
LivingEntity.damageArmor
(DamageSource source, float amount) protected void
LivingEntity.damageHelmet
(DamageSource source, float amount) protected void
LivingEntity.drop
(DamageSource source) protected void
LivingEntity.dropEquipment
(DamageSource source, int lootingMultiplier, boolean allowDrops) protected void
LivingEntity.dropLoot
(DamageSource source, boolean causedByPlayer) protected @Nullable SoundEvent
LivingEntity.getHurtSound
(DamageSource source) protected LootContext.Builder
LivingEntity.getLootContextBuilder
(boolean causedByPlayer, DamageSource source) boolean
Entity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
FallingBlockEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
LivingEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
Entity.isInvulnerableTo
(DamageSource damageSource) void
LivingEntity.onDeath
(DamageSource source) protected void
LivingEntity.playHurtSound
(DamageSource source) private boolean
LivingEntity.tryUseTotem
(DamageSource source) void
Entity.updateKilledAdvancementCriterion
(Entity killer, int score, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.entity.ai.brain
Modifier and TypeFieldDescriptionstatic final MemoryModuleType<DamageSource>
MemoryModuleType.HURT_BY
-
Uses of DamageSource in net.minecraft.entity.boss
Modifier and TypeMethodDescriptionboolean
WitherEntity.damage
(DamageSource source, float amount) protected void
WitherEntity.dropEquipment
(DamageSource source, int lootingMultiplier, boolean allowDrops) protected SoundEvent
WitherEntity.getHurtSound
(DamageSource source) boolean
WitherEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.entity.boss.dragon
Modifier and TypeMethodDescriptionvoid
EnderDragonEntity.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source) void
EnderDragonFight.crystalDestroyed
(EndCrystalEntity enderCrystal, DamageSource source) boolean
EnderDragonEntity.damage
(DamageSource source, float amount) boolean
EnderDragonPart.damage
(DamageSource source, float amount) boolean
EnderDragonEntity.damagePart
(EnderDragonPart part, DamageSource source, float amount) protected SoundEvent
EnderDragonEntity.getHurtSound
(DamageSource source) protected boolean
EnderDragonEntity.parentDamage
(DamageSource source, float amount) -
Uses of DamageSource in net.minecraft.entity.boss.dragon.phase
Modifier and TypeMethodDescriptionvoid
AbstractPhase.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) void
HoldingPatternPhase.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) void
Phase.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) float
AbstractPhase.modifyDamageTaken
(DamageSource damageSource, float damage) float
AbstractSittingPhase.modifyDamageTaken
(DamageSource damageSource, float damage) float
Phase.modifyDamageTaken
(DamageSource damageSource, float damage) -
Uses of DamageSource in net.minecraft.entity.damage
Modifier and TypeClassDescriptionclass
class
class
Modifier and TypeFieldDescriptionstatic final DamageSource
DamageSource.ANVIL
static final DamageSource
DamageSource.CACTUS
static final DamageSource
DamageSource.CRAMMING
private final DamageSource
DamageRecord.damageSource
static final DamageSource
DamageSource.DRAGON_BREATH
static final DamageSource
DamageSource.DROWN
static final DamageSource
DamageSource.DRYOUT
static final DamageSource
DamageSource.FALL
static final DamageSource
DamageSource.FALLING_BLOCK
static final DamageSource
DamageSource.FALLING_STALACTITE
static final DamageSource
DamageSource.FLY_INTO_WALL
static final DamageSource
DamageSource.FREEZE
static final DamageSource
DamageSource.GENERIC
static final DamageSource
DamageSource.HOT_FLOOR
static final DamageSource
DamageSource.IN_FIRE
static final DamageSource
DamageSource.IN_WALL
static final DamageSource
DamageSource.LAVA
static final DamageSource
DamageSource.LIGHTNING_BOLT
static final DamageSource
DamageSource.MAGIC
static final DamageSource
DamageSource.ON_FIRE
static final DamageSource
DamageSource.OUT_OF_WORLD
static final DamageSource
DamageSource.STALAGMITE
static final DamageSource
DamageSource.STARVE
static final DamageSource
DamageSource.SWEET_BERRY_BUSH
static final DamageSource
DamageSource.WITHER
Modifier and TypeMethodDescriptionstatic DamageSource
DamageSource.arrow
(PersistentProjectileEntity projectile, @Nullable Entity attacker) static DamageSource
DamageSource.badRespawnPoint()
static DamageSource
DamageSource.explosion
(@Nullable LivingEntity attacker) static DamageSource
static DamageSource
DamageSource.fireball
(AbstractFireballEntity fireball, @Nullable Entity attacker) static DamageSource
DamageSource.firework
(FireworkRocketEntity firework, @Nullable Entity attacker) DamageRecord.getDamageSource()
static DamageSource
static DamageSource
DamageSource.mob
(LivingEntity attacker) static DamageSource
DamageSource.mobProjectile
(Entity projectile, @Nullable LivingEntity attacker) static DamageSource
DamageSource.player
(PlayerEntity attacker) protected DamageSource
DamageSource.setBypassesArmor()
DamageSource.setExplosive()
protected DamageSource
DamageSource.setFallingBlock()
protected DamageSource
DamageSource.setFire()
DamageSource.setFromFalling()
DamageSource.setNeutral()
protected DamageSource
DamageSource.setOutOfWorld()
DamageSource.setProjectile()
DamageSource.setScaledWithDifficulty()
protected DamageSource
DamageSource.setUnblockable()
DamageSource.setUsesMagic()
static DamageSource
DamageSource.sting
(LivingEntity attacker) static DamageSource
static DamageSource
DamageSource.thrownProjectile
(Entity projectile, @Nullable Entity attacker) static DamageSource
static DamageSource
DamageSource.witherSkull
(WitherSkullEntity witherSkull, Entity attacker) Modifier and TypeMethodDescriptionvoid
DamageTracker.onDamage
(DamageSource damageSource, float originalHealth, float damage) ModifierConstructorDescriptionDamageRecord
(DamageSource damageSource, int entityAge, float entityOriginalHealth, float damage, @Nullable String fallDeathSuffix, float fallDistance) -
Uses of DamageSource in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionprivate void
ArmorStandEntity.breakAndDropItem
(DamageSource damageSource) private void
EndCrystalEntity.crystalDestroyed
(DamageSource source) boolean
AbstractDecorationEntity.damage
(DamageSource source, float amount) boolean
ArmorStandEntity.damage
(DamageSource source, float amount) boolean
EndCrystalEntity.damage
(DamageSource source, float amount) boolean
ItemFrameEntity.damage
(DamageSource source, float amount) protected @Nullable SoundEvent
ArmorStandEntity.getHurtSound
(DamageSource source) private void
ArmorStandEntity.onBreak
(DamageSource damageSource) private void
ArmorStandEntity.updateHealth
(DamageSource damageSource, float amount) -
Uses of DamageSource in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionprotected float
WitchEntity.applyEnchantmentsToDamage
(DamageSource source, float amount) boolean
EndermanEntity.damage
(DamageSource source, float amount) boolean
GhastEntity.damage
(DamageSource source, float amount) boolean
GuardianEntity.damage
(DamageSource source, float amount) boolean
HoglinEntity.damage
(DamageSource source, float amount) boolean
PiglinBruteEntity.damage
(DamageSource source, float amount) boolean
PiglinEntity.damage
(DamageSource source, float amount) boolean
ShulkerEntity.damage
(DamageSource source, float amount) boolean
SilverfishEntity.damage
(DamageSource source, float amount) boolean
ZoglinEntity.damage
(DamageSource source, float amount) boolean
ZombieEntity.damage
(DamageSource source, float amount) private boolean
EndermanEntity.damageFromPotion
(DamageSource source, PotionEntity potion, float amount) protected void
CreeperEntity.dropEquipment
(DamageSource source, int lootingMultiplier, boolean allowDrops) protected void
EndermanEntity.dropEquipment
(DamageSource source, int lootingMultiplier, boolean allowDrops) protected void
MobEntity.dropEquipment
(DamageSource source, int lootingMultiplier, boolean allowDrops) protected void
PiglinEntity.dropEquipment
(DamageSource source, int lootingMultiplier, boolean allowDrops) protected void
SkeletonEntity.dropEquipment
(DamageSource source, int lootingMultiplier, boolean allowDrops) protected void
WitherSkeletonEntity.dropEquipment
(DamageSource source, int lootingMultiplier, boolean allowDrops) protected void
ZombieEntity.dropEquipment
(DamageSource source, int lootingMultiplier, boolean allowDrops) protected void
MobEntity.dropLoot
(DamageSource source, boolean causedByPlayer) protected SoundEvent
BlazeEntity.getHurtSound
(DamageSource source) protected SoundEvent
CreeperEntity.getHurtSound
(DamageSource source) protected SoundEvent
DrownedEntity.getHurtSound
(DamageSource source) protected SoundEvent
ElderGuardianEntity.getHurtSound
(DamageSource source) protected SoundEvent
EndermanEntity.getHurtSound
(DamageSource source) protected SoundEvent
EndermiteEntity.getHurtSound
(DamageSource source) protected SoundEvent
EvokerEntity.getHurtSound
(DamageSource source) protected SoundEvent
GhastEntity.getHurtSound
(DamageSource source) protected SoundEvent
GuardianEntity.getHurtSound
(DamageSource source) protected SoundEvent
HoglinEntity.getHurtSound
(DamageSource source) protected SoundEvent
HostileEntity.getHurtSound
(DamageSource source) protected SoundEvent
HuskEntity.getHurtSound
(DamageSource source) protected SoundEvent
IllusionerEntity.getHurtSound
(DamageSource source) protected SoundEvent
MagmaCubeEntity.getHurtSound
(DamageSource source) protected SoundEvent
PhantomEntity.getHurtSound
(DamageSource source) protected SoundEvent
PiglinBruteEntity.getHurtSound
(DamageSource source) protected SoundEvent
PiglinEntity.getHurtSound
(DamageSource source) protected SoundEvent
PillagerEntity.getHurtSound
(DamageSource source) protected SoundEvent
RavagerEntity.getHurtSound
(DamageSource source) protected SoundEvent
ShulkerEntity.getHurtSound
(DamageSource source) protected SoundEvent
SilverfishEntity.getHurtSound
(DamageSource source) protected SoundEvent
SkeletonEntity.getHurtSound
(DamageSource source) protected SoundEvent
SkeletonHorseEntity.getHurtSound
(DamageSource source) protected SoundEvent
SlimeEntity.getHurtSound
(DamageSource source) protected SoundEvent
SpiderEntity.getHurtSound
(DamageSource source) protected SoundEvent
StrayEntity.getHurtSound
(DamageSource source) protected SoundEvent
VexEntity.getHurtSound
(DamageSource source) protected SoundEvent
VindicatorEntity.getHurtSound
(DamageSource source) protected SoundEvent
WitchEntity.getHurtSound
(DamageSource source) protected SoundEvent
WitherSkeletonEntity.getHurtSound
(DamageSource source) protected SoundEvent
ZoglinEntity.getHurtSound
(DamageSource source) protected SoundEvent
ZombieEntity.getHurtSound
(DamageSource source) protected SoundEvent
ZombieHorseEntity.getHurtSound
(DamageSource source) ZombieVillagerEntity.getHurtSound
(DamageSource source) protected SoundEvent
ZombifiedPiglinEntity.getHurtSound
(DamageSource source) protected LootContext.Builder
MobEntity.getLootContextBuilder
(boolean causedByPlayer, DamageSource source) boolean
BlazeEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
CreeperEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
FlyingEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
MagmaCubeEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) protected void
MobEntity.playHurtSound
(DamageSource source) -
Uses of DamageSource in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionboolean
AnimalEntity.damage
(DamageSource source, float amount) boolean
AxolotlEntity.damage
(DamageSource source, float amount) boolean
BatEntity.damage
(DamageSource source, float amount) boolean
BeeEntity.damage
(DamageSource source, float amount) boolean
GlowSquidEntity.damage
(DamageSource source, float amount) boolean
IronGolemEntity.damage
(DamageSource source, float amount) boolean
PandaEntity.damage
(DamageSource source, float amount) boolean
ParrotEntity.damage
(DamageSource source, float amount) boolean
SquidEntity.damage
(DamageSource source, float amount) boolean
WolfEntity.damage
(DamageSource source, float amount) protected void
FoxEntity.drop
(DamageSource source) protected SoundEvent
AxolotlEntity.getHurtSound
(DamageSource source) protected SoundEvent
BatEntity.getHurtSound
(DamageSource source) protected SoundEvent
BeeEntity.getHurtSound
(DamageSource source) protected SoundEvent
CatEntity.getHurtSound
(DamageSource source) protected SoundEvent
ChickenEntity.getHurtSound
(DamageSource source) protected SoundEvent
CodEntity.getHurtSound
(DamageSource source) protected SoundEvent
CowEntity.getHurtSound
(DamageSource source) protected SoundEvent
DolphinEntity.getHurtSound
(DamageSource source) protected SoundEvent
DonkeyEntity.getHurtSound
(DamageSource source) protected @Nullable SoundEvent
FoxEntity.getHurtSound
(DamageSource source) protected SoundEvent
GlowSquidEntity.getHurtSound
(DamageSource source) protected SoundEvent
GoatEntity.getHurtSound
(DamageSource source) protected @Nullable SoundEvent
GolemEntity.getHurtSound
(DamageSource source) protected @Nullable SoundEvent
HorseBaseEntity.getHurtSound
(DamageSource source) protected SoundEvent
HorseEntity.getHurtSound
(DamageSource source) protected SoundEvent
IronGolemEntity.getHurtSound
(DamageSource source) protected SoundEvent
LlamaEntity.getHurtSound
(DamageSource source) protected SoundEvent
MuleEntity.getHurtSound
(DamageSource source) protected SoundEvent
OcelotEntity.getHurtSound
(DamageSource source) protected @Nullable SoundEvent
PandaEntity.getHurtSound
(DamageSource source) protected SoundEvent
ParrotEntity.getHurtSound
(DamageSource source) protected SoundEvent
PigEntity.getHurtSound
(DamageSource source) protected SoundEvent
PolarBearEntity.getHurtSound
(DamageSource source) protected SoundEvent
PufferfishEntity.getHurtSound
(DamageSource source) protected SoundEvent
RabbitEntity.getHurtSound
(DamageSource source) protected SoundEvent
SalmonEntity.getHurtSound
(DamageSource source) protected SoundEvent
SheepEntity.getHurtSound
(DamageSource source) protected @Nullable SoundEvent
SnowGolemEntity.getHurtSound
(DamageSource source) protected SoundEvent
SquidEntity.getHurtSound
(DamageSource source) protected SoundEvent
StriderEntity.getHurtSound
(DamageSource source) protected SoundEvent
TropicalFishEntity.getHurtSound
(DamageSource source) protected @Nullable SoundEvent
TurtleEntity.getHurtSound
(DamageSource source) protected SoundEvent
VillagerEntity.getHurtSound
(DamageSource source) protected SoundEvent
WanderingTraderEntity.getHurtSound
(DamageSource source) protected SoundEvent
WolfEntity.getHurtSound
(DamageSource source) boolean
BatEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
BeeEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
CatEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
ChickenEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
GolemEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
HorseBaseEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
LlamaEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
OcelotEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
ParrotEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) void
IronGolemEntity.onDeath
(DamageSource source) void
MerchantEntity.onDeath
(DamageSource source) void
TameableEntity.onDeath
(DamageSource source) void
VillagerEntity.onDeath
(DamageSource source) void
WolfEntity.onDeath
(DamageSource source) -
Uses of DamageSource in net.minecraft.entity.player
Modifier and TypeMethodDescriptionprotected void
PlayerEntity.applyDamage
(DamageSource source, float amount) boolean
PlayerEntity.damage
(DamageSource source, float amount) protected void
PlayerEntity.damageArmor
(DamageSource source, float amount) void
PlayerInventory.damageArmor
(DamageSource damageSource, float amount, int[] slots) protected void
PlayerEntity.damageHelmet
(DamageSource source, float amount) protected SoundEvent
PlayerEntity.getHurtSound
(DamageSource source) boolean
PlayerEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) boolean
PlayerEntity.isInvulnerableTo
(DamageSource damageSource) void
PlayerEntity.onDeath
(DamageSource source) -
Uses of DamageSource in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionboolean
DragonFireballEntity.damage
(DamageSource source, float amount) boolean
ExplosiveProjectileEntity.damage
(DamageSource source, float amount) boolean
ShulkerBulletEntity.damage
(DamageSource source, float amount) boolean
SmallFireballEntity.damage
(DamageSource source, float amount) boolean
WitherSkullEntity.damage
(DamageSource source, float amount) -
Uses of DamageSource in net.minecraft.entity.raid
Modifier and TypeMethodDescriptionboolean
RaiderEntity.damage
(DamageSource source, float amount) void
RaiderEntity.onDeath
(DamageSource source) -
Uses of DamageSource in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionboolean
AbstractMinecartEntity.damage
(DamageSource source, float amount) boolean
BoatEntity.damage
(DamageSource source, float amount) boolean
TntMinecartEntity.damage
(DamageSource source, float amount) void
AbstractMinecartEntity.dropItems
(DamageSource damageSource) void
ChestMinecartEntity.dropItems
(DamageSource damageSource) void
FurnaceMinecartEntity.dropItems
(DamageSource damageSource) void
HopperMinecartEntity.dropItems
(DamageSource damageSource) void
StorageMinecartEntity.dropItems
(DamageSource damageSource) void
TntMinecartEntity.dropItems
(DamageSource damageSource) boolean
TntMinecartEntity.handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.item
Modifier and TypeMethodDescriptionboolean
Item.damage
(DamageSource source) Returns whether this item can be damaged by the givensource
. -
Uses of DamageSource in net.minecraft.loot.context
Modifier and TypeFieldDescriptionstatic final LootContextParameter<DamageSource>
LootContextParameters.DAMAGE_SOURCE
-
Uses of DamageSource in net.minecraft.predicate
Modifier and TypeMethodDescriptionboolean
DamagePredicate.test
(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) -
Uses of DamageSource in net.minecraft.predicate.entity
Modifier and TypeMethodDescriptionboolean
DamageSourcePredicate.test
(ServerPlayerEntity player, DamageSource damageSource) boolean
DamageSourcePredicate.test
(ServerWorld world, Vec3d pos, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.server.network
Modifier and TypeMethodDescriptionboolean
ServerPlayerEntity.damage
(DamageSource source, float amount) boolean
ServerPlayerEntity.isInvulnerableTo
(DamageSource damageSource) void
ServerPlayerEntity.onDeath
(DamageSource source) void
ServerPlayerEntity.updateKilledAdvancementCriterion
(Entity killer, int score, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.server.world
Modifier and TypeMethodDescriptionServerWorld.createExplosion
(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) -
Uses of DamageSource in net.minecraft.world
Modifier and TypeMethodDescriptionWorld.createExplosion
(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) -
Uses of DamageSource in net.minecraft.world.explosion
ModifierConstructorDescriptionExplosion
(World world, @Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType)