接口的使用
org.bukkit.damage.DamageSource.Builder
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
Classes concerning damage types and sources applicable to living entities.
-
org.bukkit中DamageSource.Builder的使用
修饰符和类型方法说明UnsafeValues.createDamageSourceBuilder
(@NotNull DamageType damageType) 已过时。Create a newDamageSource.Builder
. -
org.bukkit.damage中DamageSource.Builder的使用
修饰符和类型方法说明static @NotNull DamageSource.Builder
DamageSource.builder
(@NotNull DamageType damageType) Create a newDamageSource.Builder
.DamageSource.Builder.withCausingEntity
(@NotNull Entity entity) Set theEntity
that caused the damage.DamageSource.Builder.withDamageLocation
(@NotNull Location location) Set theLocation
of the source of damage.DamageSource.Builder.withDirectEntity
(@NotNull Entity entity) Set theEntity
that directly inflicted the damage.