Uses of Interface
org.bukkit.damage.DamageSource
Packages that use DamageSource
Package
Description
Classes concerning damage types and sources applicable to living entities.
Interfaces for non-voxel objects that can exist in a
world, including all players, monsters, projectiles, etc.Events relating to entities that hang.Events relating to vehicular entities.-
Uses of DamageSource in io.papermc.paper
Methods in io.papermc.paper with parameters of type DamageSourceModifier and TypeMethodDescriptionInternalAPIBridge.createCombatEntry(DamageSource damageSource, float damage, @Nullable FallLocationType fallLocationType, float fallDistance) Creates a new combat entryInternalAPIBridge.createCombatEntry(LivingEntity entity, DamageSource damageSource, float damage) Creates a new combat entry. -
Uses of DamageSource in io.papermc.paper.world.damagesource
Methods in io.papermc.paper.world.damagesource that return DamageSourceMethods in io.papermc.paper.world.damagesource with parameters of type DamageSourceModifier and TypeMethodDescriptionstatic CombatEntryCombatEntry.combatEntry(DamageSource damageSource, float damage, @Nullable FallLocationType fallLocationType, float fallDistance) Creates a new combat entrystatic CombatEntryCombatEntry.combatEntry(LivingEntity entity, DamageSource damageSource, float damage) Creates a new combat entry. -
Uses of DamageSource in org.bukkit.damage
Methods in org.bukkit.damage that return DamageSourceModifier and TypeMethodDescriptionDamageSource.Builder.build()Create a newDamageSourceinstance using the supplied parameters. -
Uses of DamageSource in org.bukkit.entity
Methods in org.bukkit.entity with parameters of type DamageSourceModifier and TypeMethodDescriptionvoidDamageable.damage(double amount, DamageSource damageSource) Deals the given amount of damage to this entity from a specifiedDamageSource.voidDamageable.kill(DamageSource damageSource) Sets the entity's health to 0 and kill the entity with the specified DamageSource. -
Uses of DamageSource in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return DamageSourceModifier and TypeMethodDescriptionEntityDamageByEntityEvent.getDamageSource()Get the source of damage.EntityDamageEvent.getDamageSource()Get the source of damage.EntityDeathEvent.getDamageSource()Gets the source of damage which caused the death.Constructors in org.bukkit.event.entity with parameters of type DamageSourceModifierConstructorDescriptionEntityDamageByBlockEvent(@Nullable Block damager, @Nullable BlockState damagerState, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage) EntityDamageByBlockEvent(@Nullable Block damager, @Nullable BlockState damagerState, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions, boolean critical) EntityDamageEvent(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage) EntityDamageEvent(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDeathEvent(@NotNull LivingEntity livingEntity, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops) EntityDeathEvent(@NotNull LivingEntity livingEntity, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp) PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, @Nullable String deathMessage) Deprecated, for removal: This API element is subject to removal in a future version.PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, @Nullable String deathMessage, boolean doExpDrop) Deprecated, for removal: This API element is subject to removal in a future version.PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, @Nullable Component deathMessage, boolean showDeathMessages) PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, @Nullable Component deathMessage, boolean showDeathMessages, boolean doExpDrop) PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, @Nullable String deathMessage) Deprecated, for removal: This API element is subject to removal in a future version.PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, @Nullable Component deathMessage, boolean showDeathMessages) PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, @Nullable String deathMessage) Deprecated, for removal: This API element is subject to removal in a future version.PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, @Nullable Component deathMessage, boolean showDeathMessages) -
Uses of DamageSource in org.bukkit.event.hanging
Methods in org.bukkit.event.hanging that return DamageSourceModifier and TypeMethodDescriptionHangingBreakByEntityEvent.getDamageSource()Gets theDamageSourcethat caused the hanging entity to be removed.Constructors in org.bukkit.event.hanging with parameters of type DamageSourceModifierConstructorDescriptionHangingBreakByEntityEvent(Hanging hanging, Entity remover, DamageSource damageSource) HangingBreakByEntityEvent(Hanging hanging, Entity remover, DamageSource damageSource, HangingBreakEvent.RemoveCause cause) -
Uses of DamageSource in org.bukkit.event.vehicle
Methods in org.bukkit.event.vehicle that return DamageSourceModifier and TypeMethodDescriptionVehicleDamageEvent.getDamageSource()Gets the DamageSource that caused the damage.VehicleDestroyEvent.getDamageSource()Gets the DamageSource that has destroyed the vehicle.Constructors in org.bukkit.event.vehicle with parameters of type DamageSourceModifierConstructorDescriptionVehicleDamageEvent(@NotNull Vehicle vehicle, @NotNull DamageSource damageSource, @Nullable Entity attacker, double damage) VehicleDestroyEvent(@NotNull Vehicle vehicle, @NotNull DamageSource damageSource, @Nullable Entity attacker)