Uses of Interface
org.bukkit.damage.DamageSource
Packages that use DamageSource
Package
Description
The root package of the Bukkit API, contains generalized API classes.
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 moe.caramel.daydream.world
Methods in moe.caramel.daydream.world that return DamageSourceModifier and TypeMethodDescriptionDamageContext.getDamageSource()
DamageSource를 가져옵니다.Explosion.getDamageSource()
DamageSource
를 가져옵니다. -
Uses of DamageSource in org.bukkit
Methods in org.bukkit with parameters of type DamageSourceModifier and TypeMethodDescription<T> Explosion
World.explosion
(double x, double y, double z, float power, boolean setFire, @NotNull World.ExplosionAction explosionAction, @NotNull Particle largeParticle, T largeData, @NotNull Particle smallParticle, T smallData, @NotNull String sound, DamageSource damageSource, @Nullable Entity source) Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.<T> Explosion
World.explosion
(double x, double y, double z, float power, boolean setFire, @NotNull World.ExplosionAction explosionAction, @NotNull Particle largeParticle, T largeData, @NotNull Particle smallParticle, T smallData, @NotNull Sound sound, DamageSource damageSource, @Nullable Entity source) Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks. -
Uses of DamageSource in org.bukkit.damage
Methods in org.bukkit.damage that return DamageSourceModifier and TypeMethodDescriptionDamageSource.Builder.build()
Create a newDamageSource
instance using the supplied parameters. -
Uses of DamageSource in org.bukkit.entity
Methods in org.bukkit.entity with parameters of type DamageSourceModifier and TypeMethodDescriptionvoid
Damageable.damage
(double amount, @NotNull DamageSource damageSource) Deals the given amount of damage to this entity from a specifiedDamageSource
. -
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.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.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 entity, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops) EntityDeathEvent
(@NotNull LivingEntity what, @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.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.PlayerDeathEvent
(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, Component deathMessage) PlayerDeathEvent
(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, Component deathMessage, boolean doExpDrop) PlayerDeathEvent
(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, @Nullable String deathMessage) Deprecated.PlayerDeathEvent
(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, Component deathMessage) PlayerDeathEvent
(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, @Nullable String deathMessage) Deprecated.PlayerDeathEvent
(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, Component deathMessage)