Uses of Class
net.minecraft.entity.damage.DamageSource
Packages that use 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
Methods in net.minecraft.advancement.criterion with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanEntityHurtPlayerCriterion.Conditions.matches(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) booleanPlayerHurtEntityCriterion.Conditions.matches(ServerPlayerEntity player, LootContext entityContext, DamageSource source, float dealt, float taken, boolean blocked) booleanOnKilledCriterion.Conditions.test(ServerPlayerEntity player, LootContext killedEntityContext, DamageSource killingBlow) voidEntityHurtPlayerCriterion.trigger(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) voidOnKilledCriterion.trigger(ServerPlayerEntity player, Entity entity, DamageSource killingDamage) voidPlayerHurtEntityCriterion.trigger(ServerPlayerEntity player, Entity entity, DamageSource damage, float dealt, float taken, boolean blocked) -
Uses of DamageSource in net.minecraft.block
Methods in net.minecraft.block that return DamageSourceModifier and TypeMethodDescriptionAnvilBlock.getDamageSource(Entity attacker) default DamageSourceLandingBlock.getDamageSource(Entity attacker) PointedDripstoneBlock.getDamageSource(Entity attacker) -
Uses of DamageSource in net.minecraft.client.network
Methods in net.minecraft.client.network with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidClientPlayerEntity.applyDamage(DamageSource source, float amount) booleanClientPlayerEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanOtherClientPlayerEntity.damage(DamageSource source, float amount) Applies a damage to this entity. -
Uses of DamageSource in net.minecraft.enchantment
Methods in net.minecraft.enchantment with parameters of type DamageSourceModifier and TypeMethodDescriptionintEnchantment.getProtectionAmount(int level, DamageSource source) static intEnchantmentHelper.getProtectionAmount(Iterable<ItemStack> equipment, DamageSource source) intProtectionEnchantment.getProtectionAmount(int level, DamageSource source) -
Uses of DamageSource in net.minecraft.entity
Fields in net.minecraft.entity declared as DamageSourceMethods in net.minecraft.entity that return DamageSourceMethods in net.minecraft.entity with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected floatLivingEntity.applyArmorToDamage(DamageSource source, float amount) protected voidLivingEntity.applyDamage(DamageSource source, float amount) booleanLivingEntity.blockedByShield(DamageSource source) booleanEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanExperienceOrbEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanItemEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanLivingEntity.damage(DamageSource source, float amount) Applies a damage to this entity.protected voidLivingEntity.damageArmor(DamageSource source, float amount) protected voidLivingEntity.damageHelmet(DamageSource source, float amount) protected voidLivingEntity.drop(DamageSource source) protected voidLivingEntity.dropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected voidLivingEntity.dropLoot(DamageSource source, boolean causedByPlayer) protected @Nullable SoundEventLivingEntity.getHurtSound(DamageSource source) protected LootContext.BuilderLivingEntity.getLootContextBuilder(boolean causedByPlayer, DamageSource source) booleanEntity.handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.booleanFallingBlockEntity.handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.booleanLivingEntity.handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.booleanEntity.isInvulnerableTo(DamageSource damageSource) Returns whether the entity is invulnerable todamageSource.protected floatLivingEntity.modifyAppliedDamage(DamageSource source, float amount) Returns the modified damage value for the applieddamage.voidEntity.onDamaged(DamageSource damageSource) voidLivingEntity.onDamaged(DamageSource damageSource) voidLivingEntity.onDeath(DamageSource damageSource) protected voidLivingEntity.playHurtSound(DamageSource source) private booleanLivingEntity.tryUseTotem(DamageSource source) voidEntity.updateKilledAdvancementCriterion(Entity entityKilled, int score, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain with type parameters of type DamageSourceModifier and TypeFieldDescriptionstatic final MemoryModuleType<DamageSource>MemoryModuleType.HURT_BY -
Uses of DamageSource in net.minecraft.entity.boss
Methods in net.minecraft.entity.boss with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanWitherEntity.damage(DamageSource source, float amount) Applies a damage to this entity.protected voidWitherEntity.dropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected SoundEventWitherEntity.getHurtSound(DamageSource source) -
Uses of DamageSource in net.minecraft.entity.boss.dragon
Methods in net.minecraft.entity.boss.dragon with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidEnderDragonEntity.crystalDestroyed(EndCrystalEntity endCrystal, BlockPos pos, DamageSource source) voidEnderDragonFight.crystalDestroyed(EndCrystalEntity enderCrystal, DamageSource source) booleanEnderDragonEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanEnderDragonPart.damage(DamageSource source, float amount) Applies a damage to this entity.booleanEnderDragonEntity.damagePart(EnderDragonPart part, DamageSource source, float amount) protected SoundEventEnderDragonEntity.getHurtSound(DamageSource source) protected booleanEnderDragonEntity.parentDamage(DamageSource source, float amount) -
Uses of DamageSource in net.minecraft.entity.boss.dragon.phase
Methods in net.minecraft.entity.boss.dragon.phase with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidAbstractPhase.crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) voidHoldingPatternPhase.crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) voidPhase.crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) floatAbstractPhase.modifyDamageTaken(DamageSource damageSource, float damage) floatAbstractSittingPhase.modifyDamageTaken(DamageSource damageSource, float damage) floatPhase.modifyDamageTaken(DamageSource damageSource, float damage) -
Uses of DamageSource in net.minecraft.entity.damage
Fields in net.minecraft.entity.damage declared as DamageSourceModifier and TypeFieldDescriptionprivate final DamageSourceDamageSources.cactusprivate final DamageSourceDamageSources.crammingprivate final DamageSourceDamageRecord.damageSourceprivate final DamageSourceDamageSources.dragonBreathprivate final DamageSourceDamageSources.drownprivate final DamageSourceDamageSources.dryOutprivate final DamageSourceDamageSources.fallprivate final DamageSourceDamageSources.flyIntoWallprivate final DamageSourceDamageSources.freezeprivate final DamageSourceDamageSources.genericprivate final DamageSourceDamageSources.hotFloorprivate final DamageSourceDamageSources.inFireprivate final DamageSourceDamageSources.inWallprivate final DamageSourceDamageSources.lavaprivate final DamageSourceDamageSources.lightningBoltprivate final DamageSourceDamageSources.magicprivate final DamageSourceDamageSources.onFireprivate final DamageSourceDamageSources.outOfWorldprivate final DamageSourceDamageSources.stalagmiteprivate final DamageSourceDamageSources.starveprivate final DamageSourceDamageSources.sweetBerryBushprivate final DamageSourceDamageSources.witherMethods in net.minecraft.entity.damage that return DamageSourceModifier and TypeMethodDescriptionDamageSources.arrow(PersistentProjectileEntity source, @Nullable Entity attacker) DamageSources.badRespawnPoint(Vec3d position) DamageSources.cactus()DamageSources.cramming()private DamageSourceDamageSources.create(RegistryKey<DamageType> key) private DamageSourceDamageSources.create(RegistryKey<DamageType> key, @Nullable Entity attacker) private DamageSourceDamageSources.create(RegistryKey<DamageType> key, @Nullable Entity source, @Nullable Entity attacker) DamageSources.dragonBreath()DamageSources.drown()DamageSources.dryOut()DamageSources.fall()DamageSources.fallingAnvil(Entity attacker) DamageSources.fallingBlock(Entity attacker) DamageSources.fallingStalactite(Entity attacker) DamageSources.fireball(AbstractFireballEntity source, @Nullable Entity attacker) DamageSources.fireworks(FireworkRocketEntity source, @Nullable Entity attacker) DamageSources.flyIntoWall()DamageSources.freeze()DamageSources.generic()DamageRecord.getDamageSource()DamageSources.hotFloor()DamageSources.indirectMagic(Entity source, @Nullable Entity attacker) DamageSources.inFire()DamageSources.inWall()DamageSources.lava()DamageSources.lightningBolt()DamageSources.magic()DamageSources.mobAttack(LivingEntity attacker) DamageSources.mobAttackNoAggro(LivingEntity attacker) DamageSources.mobProjectile(Entity source, @Nullable LivingEntity attacker) DamageSources.onFire()DamageSources.outOfWorld()DamageSources.playerAttack(PlayerEntity attacker) DamageSources.stalagmite()DamageSources.starve()DamageSources.sting(LivingEntity attacker) DamageSources.sweetBerryBush()DamageSources.wither()DamageSources.witherSkull(WitherSkullEntity source, Entity attacker) Methods in net.minecraft.entity.damage with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidDamageTracker.onDamage(DamageSource damageSource, float originalHealth, float damage) Constructors in net.minecraft.entity.damage with parameters of type DamageSourceModifierConstructorDescriptionDamageRecord(DamageSource damageSource, int entityAge, float entityOriginalHealth, float damage, @Nullable String fallDeathSuffix, float fallDistance) -
Uses of DamageSource in net.minecraft.entity.decoration
Methods in net.minecraft.entity.decoration with parameters of type DamageSourceModifier and TypeMethodDescriptionprivate voidArmorStandEntity.breakAndDropItem(DamageSource damageSource) private voidEndCrystalEntity.crystalDestroyed(DamageSource source) booleanAbstractDecorationEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanArmorStandEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanEndCrystalEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanItemFrameEntity.damage(DamageSource source, float amount) Applies a damage to this entity.protected @Nullable SoundEventArmorStandEntity.getHurtSound(DamageSource source) private voidArmorStandEntity.onBreak(DamageSource damageSource) private voidArmorStandEntity.updateHealth(DamageSource damageSource, float amount) -
Uses of DamageSource in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanEndermanEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanGhastEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanGuardianEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanHoglinEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanPiglinBruteEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanPiglinEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanShulkerEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanSilverfishEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanWardenEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanZoglinEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanZombieEntity.damage(DamageSource source, float amount) Applies a damage to this entity.private booleanEndermanEntity.damageFromPotion(DamageSource source, PotionEntity potion, float amount) protected voidCreeperEntity.dropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected voidEndermanEntity.dropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected voidMobEntity.dropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected voidPiglinEntity.dropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected voidSkeletonEntity.dropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected voidWitherSkeletonEntity.dropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected voidZombieEntity.dropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected voidMobEntity.dropLoot(DamageSource source, boolean causedByPlayer) protected SoundEventBlazeEntity.getHurtSound(DamageSource source) protected SoundEventCreeperEntity.getHurtSound(DamageSource source) protected SoundEventDrownedEntity.getHurtSound(DamageSource source) protected SoundEventElderGuardianEntity.getHurtSound(DamageSource source) protected SoundEventEndermanEntity.getHurtSound(DamageSource source) protected SoundEventEndermiteEntity.getHurtSound(DamageSource source) protected SoundEventEvokerEntity.getHurtSound(DamageSource source) protected SoundEventGhastEntity.getHurtSound(DamageSource source) protected SoundEventGuardianEntity.getHurtSound(DamageSource source) protected SoundEventHoglinEntity.getHurtSound(DamageSource source) protected SoundEventHostileEntity.getHurtSound(DamageSource source) protected SoundEventHuskEntity.getHurtSound(DamageSource source) protected SoundEventIllusionerEntity.getHurtSound(DamageSource source) protected SoundEventMagmaCubeEntity.getHurtSound(DamageSource source) protected SoundEventPhantomEntity.getHurtSound(DamageSource source) protected SoundEventPiglinBruteEntity.getHurtSound(DamageSource source) protected SoundEventPiglinEntity.getHurtSound(DamageSource source) protected SoundEventPillagerEntity.getHurtSound(DamageSource source) protected SoundEventRavagerEntity.getHurtSound(DamageSource source) protected SoundEventShulkerEntity.getHurtSound(DamageSource source) protected SoundEventSilverfishEntity.getHurtSound(DamageSource source) protected SoundEventSkeletonEntity.getHurtSound(DamageSource source) protected SoundEventSkeletonHorseEntity.getHurtSound(DamageSource source) protected SoundEventSlimeEntity.getHurtSound(DamageSource source) protected SoundEventSpiderEntity.getHurtSound(DamageSource source) protected SoundEventStrayEntity.getHurtSound(DamageSource source) protected SoundEventVexEntity.getHurtSound(DamageSource source) protected SoundEventVindicatorEntity.getHurtSound(DamageSource source) protected SoundEventWardenEntity.getHurtSound(DamageSource source) protected SoundEventWitchEntity.getHurtSound(DamageSource source) protected SoundEventWitherSkeletonEntity.getHurtSound(DamageSource source) protected SoundEventZoglinEntity.getHurtSound(DamageSource source) protected SoundEventZombieEntity.getHurtSound(DamageSource source) protected SoundEventZombieHorseEntity.getHurtSound(DamageSource source) ZombieVillagerEntity.getHurtSound(DamageSource source) protected SoundEventZombifiedPiglinEntity.getHurtSound(DamageSource source) protected LootContext.BuilderMobEntity.getLootContextBuilder(boolean causedByPlayer, DamageSource source) booleanCreeperEntity.handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.private static booleanGhastEntity.isFireballFromPlayer(DamageSource damageSource) Returns whetherdamageSourceis caused by a player's fireball.booleanGhastEntity.isInvulnerableTo(DamageSource damageSource) Returns whether the entity is invulnerable todamageSource.booleanWardenEntity.isInvulnerableTo(DamageSource damageSource) Returns whether the entity is invulnerable todamageSource.protected floatWitchEntity.modifyAppliedDamage(DamageSource source, float amount) Returns the modified damage value for the applieddamage.protected voidMobEntity.playHurtSound(DamageSource source) -
Uses of DamageSource in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidCamelEntity.applyDamage(DamageSource source, float amount) booleanAbstractHorseEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanAllayEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanAnimalEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanAxolotlEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanBatEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanBeeEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanGlowSquidEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanIronGolemEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanPandaEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanParrotEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanSquidEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanWolfEntity.damage(DamageSource source, float amount) Applies a damage to this entity.protected voidFoxEntity.drop(DamageSource source) protected SoundEventAllayEntity.getHurtSound(DamageSource source) protected SoundEventAxolotlEntity.getHurtSound(DamageSource source) protected SoundEventBatEntity.getHurtSound(DamageSource source) protected SoundEventBeeEntity.getHurtSound(DamageSource source) protected SoundEventCamelEntity.getHurtSound(DamageSource source) protected SoundEventCatEntity.getHurtSound(DamageSource source) protected SoundEventChickenEntity.getHurtSound(DamageSource source) protected SoundEventCodEntity.getHurtSound(DamageSource source) protected SoundEventCowEntity.getHurtSound(DamageSource source) protected SoundEventDolphinEntity.getHurtSound(DamageSource source) protected SoundEventDonkeyEntity.getHurtSound(DamageSource source) protected @Nullable SoundEventFoxEntity.getHurtSound(DamageSource source) protected @Nullable SoundEventFrogEntity.getHurtSound(DamageSource source) protected SoundEventGlowSquidEntity.getHurtSound(DamageSource source) protected SoundEventGoatEntity.getHurtSound(DamageSource source) protected @Nullable SoundEventGolemEntity.getHurtSound(DamageSource source) protected SoundEventHorseEntity.getHurtSound(DamageSource source) protected SoundEventIronGolemEntity.getHurtSound(DamageSource source) protected SoundEventLlamaEntity.getHurtSound(DamageSource source) protected SoundEventMuleEntity.getHurtSound(DamageSource source) protected SoundEventOcelotEntity.getHurtSound(DamageSource source) protected @Nullable SoundEventPandaEntity.getHurtSound(DamageSource source) protected SoundEventParrotEntity.getHurtSound(DamageSource source) protected SoundEventPigEntity.getHurtSound(DamageSource source) protected SoundEventPolarBearEntity.getHurtSound(DamageSource source) protected SoundEventPufferfishEntity.getHurtSound(DamageSource source) protected SoundEventRabbitEntity.getHurtSound(DamageSource source) protected SoundEventSalmonEntity.getHurtSound(DamageSource source) protected SoundEventSheepEntity.getHurtSound(DamageSource source) protected SoundEventSnifferEntity.getHurtSound(DamageSource source) protected @Nullable SoundEventSnowGolemEntity.getHurtSound(DamageSource source) protected SoundEventSquidEntity.getHurtSound(DamageSource source) protected SoundEventStriderEntity.getHurtSound(DamageSource source) protected @Nullable SoundEventTadpoleEntity.getHurtSound(DamageSource source) protected SoundEventTropicalFishEntity.getHurtSound(DamageSource source) protected @Nullable SoundEventTurtleEntity.getHurtSound(DamageSource source) protected SoundEventVillagerEntity.getHurtSound(DamageSource source) protected SoundEventWanderingTraderEntity.getHurtSound(DamageSource source) protected SoundEventWolfEntity.getHurtSound(DamageSource source) booleanAbstractHorseEntity.handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.booleanLlamaEntity.handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.voidIronGolemEntity.onDeath(DamageSource damageSource) voidMerchantEntity.onDeath(DamageSource damageSource) voidSnifferEntity.onDeath(DamageSource damageSource) voidTameableEntity.onDeath(DamageSource damageSource) voidVillagerEntity.onDeath(DamageSource damageSource) voidWolfEntity.onDeath(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.entity.player
Methods in net.minecraft.entity.player with parameters of type DamageSourceModifier and TypeMethodDescriptionprotected voidPlayerEntity.applyDamage(DamageSource source, float amount) booleanPlayerEntity.damage(DamageSource source, float amount) Applies a damage to this entity.protected voidPlayerEntity.damageArmor(DamageSource source, float amount) voidPlayerInventory.damageArmor(DamageSource damageSource, float amount, int[] slots) protected voidPlayerEntity.damageHelmet(DamageSource source, float amount) protected SoundEventPlayerEntity.getHurtSound(DamageSource source) booleanPlayerEntity.handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.booleanPlayerEntity.isInvulnerableTo(DamageSource damageSource) Returns whether the entity is invulnerable todamageSource.voidPlayerEntity.onDeath(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanDragonFireballEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanExplosiveProjectileEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanShulkerBulletEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanSmallFireballEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanWitherSkullEntity.damage(DamageSource source, float amount) Applies a damage to this entity. -
Uses of DamageSource in net.minecraft.entity.raid
Methods in net.minecraft.entity.raid with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanRaiderEntity.damage(DamageSource source, float amount) Applies a damage to this entity.voidRaiderEntity.onDeath(DamageSource damageSource) -
Uses of DamageSource in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanAbstractMinecartEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanBoatEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanTntMinecartEntity.damage(DamageSource source, float amount) Applies a damage to this entity.voidAbstractMinecartEntity.dropItems(DamageSource damageSource) protected voidBoatEntity.dropItems(DamageSource source) voidChestBoatEntity.dropItems(DamageSource source) voidStorageMinecartEntity.dropItems(DamageSource damageSource) voidTntMinecartEntity.dropItems(DamageSource damageSource) protected voidTntMinecartEntity.explode(@Nullable DamageSource damageSource, double power) booleanTntMinecartEntity.handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.default voidVehicleInventory.onBroken(DamageSource source, World world, Entity vehicle) -
Uses of DamageSource in net.minecraft.item
Methods in net.minecraft.item with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanItem.damage(DamageSource source) Returns whether this item can be damaged by the givensource. -
Uses of DamageSource in net.minecraft.loot.context
Fields in net.minecraft.loot.context with type parameters of type DamageSourceModifier and TypeFieldDescriptionstatic final LootContextParameter<DamageSource>LootContextParameters.DAMAGE_SOURCE -
Uses of DamageSource in net.minecraft.network.packet.s2c.play
Methods in net.minecraft.network.packet.s2c.play that return DamageSourceConstructors in net.minecraft.network.packet.s2c.play with parameters of type DamageSource -
Uses of DamageSource in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanDamagePredicate.test(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) -
Uses of DamageSource in net.minecraft.predicate.entity
Methods in net.minecraft.predicate.entity with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanDamageSourcePredicate.test(ServerPlayerEntity player, DamageSource damageSource) booleanDamageSourcePredicate.test(ServerWorld world, Vec3d pos, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type DamageSourceModifier and TypeMethodDescriptionprivate static intDamageCommand.execute(ServerCommandSource source, Entity target, float amount, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type DamageSourceModifier and TypeMethodDescriptionbooleanServerPlayerEntity.damage(DamageSource source, float amount) Applies a damage to this entity.booleanServerPlayerEntity.isInvulnerableTo(DamageSource damageSource) Returns whether the entity is invulnerable todamageSource.voidServerPlayerEntity.onDeath(DamageSource damageSource) voidServerPlayerEntity.updateKilledAdvancementCriterion(Entity entityKilled, int score, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.server.world
Methods in net.minecraft.server.world with parameters of type DamageSourceModifier and TypeMethodDescriptionServerWorld.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.voidServerWorld.sendEntityDamage(Entity entity, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world
Methods in net.minecraft.world with parameters of type DamageSourceModifier and TypeMethodDescriptionWorld.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.World.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType, boolean particles) World.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, Vec3d pos, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.voidWorld.sendEntityDamage(Entity entity, DamageSource damageSource) -
Uses of DamageSource in net.minecraft.world.explosion
Fields in net.minecraft.world.explosion declared as DamageSourceMethods in net.minecraft.world.explosion that return DamageSourceConstructors in net.minecraft.world.explosion with parameters of type DamageSourceModifierConstructorDescriptionExplosion(World world, @Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType)