Uses of Interface
org.bukkit.damage.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.-
Uses of DamageSource in org.bukkit.damage
Modifier and TypeMethodDescriptionDamageSource.Builder.build()
Create a newDamageSource
instance using the supplied parameters. -
Uses of DamageSource in org.bukkit.entity
Modifier and TypeMethodDescriptionvoid
Damageable.damage
(double amount, DamageSource damageSource) Deals the given amount of damage to this entity from a specifiedDamageSource
. -
Uses of DamageSource in org.bukkit.event.entity
Modifier and TypeMethodDescriptionEntityDamageEvent.getDamageSource()
Get the source of damage.EntityDeathEvent.getDamageSource()
Gets the source of damage which caused the death.ModifierConstructorDescriptionEntityDamageByBlockEvent
(Block damager, BlockState damagerState, Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, double damage) EntityDamageByBlockEvent
(Block damager, BlockState damagerState, Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDamageByEntityEvent
(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, double damage) EntityDamageByEntityEvent
(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDamageEvent
(Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, double damage) EntityDamageEvent
(Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDeathEvent
(LivingEntity entity, DamageSource damageSource, List<ItemStack> drops) EntityDeathEvent
(LivingEntity what, DamageSource damageSource, List<ItemStack> drops, int droppedExp) PlayerDeathEvent
(Player player, DamageSource damageSource, List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, String deathMessage) PlayerDeathEvent
(Player player, DamageSource damageSource, List<ItemStack> drops, int droppedExp, int newExp, String deathMessage) PlayerDeathEvent
(Player player, DamageSource damageSource, List<ItemStack> drops, int droppedExp, String deathMessage)