Uses of Interface
org.bukkit.damage.DamageSource.Builder
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes concerning damage types and sources applicable to living entities.
-
Uses of DamageSource.Builder in org.bukkit
Modifier and TypeMethodDescriptionUnsafeValues.createDamageSourceBuilder
(DamageType damageType) Deprecated.Create a newDamageSource.Builder
. -
Uses of DamageSource.Builder in org.bukkit.damage
Modifier and TypeMethodDescriptionstatic DamageSource.Builder
DamageSource.builder
(DamageType damageType) Create a newDamageSource.Builder
.DamageSource.Builder.withCausingEntity
(Entity entity) Set theEntity
that caused the damage.DamageSource.Builder.withDamageLocation
(Location location) Set theLocation
of the source of damage.DamageSource.Builder.withDirectEntity
(Entity entity) Set theEntity
that directly inflicted the damage.