# 接口的使用
org.bukkit.damage.DamageType

使用DamageType的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.
org.bukkit.damage
Classes concerning damage types and sources applicable to living entities.

- ## org.bukkit中DamageType的使用

  类型参数类型为DamageType的org.bukkit中的字段
  修饰符和类型
  字段
  说明
  `static final Registry<DamageType>`
  Registry.`DAMAGE_TYPE`
  Damage types.
  参数类型为DamageType的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `DamageSource.Builder`
  UnsafeValues.`createDamageSourceBuilder(@NotNull DamageType damageType)`
  已过时。
  Create a new `DamageSource.Builder`.

- ## org.bukkit.damage中DamageType的使用

  声明为DamageType的org.bukkit.damage中的字段
  修饰符和类型
  字段
  说明
  `static final DamageType`
  DamageType.`ARROW`
  `static final DamageType`
  DamageType.`BAD_RESPAWN_POINT`
  `static final DamageType`
  DamageType.`CACTUS`
  `static final DamageType`
  DamageType.`CAMPFIRE`
  `static final DamageType`
  DamageType.`CRAMMING`
  `static final DamageType`
  DamageType.`DRAGON_BREATH`
  `static final DamageType`
  DamageType.`DROWN`
  `static final DamageType`
  DamageType.`DRY_OUT`
  `static final DamageType`
  DamageType.`EXPLOSION`
  `static final DamageType`
  DamageType.`FALL`
  `static final DamageType`
  DamageType.`FALLING_ANVIL`
  `static final DamageType`
  DamageType.`FALLING_BLOCK`
  `static final DamageType`
  DamageType.`FALLING_STALACTITE`
  `static final DamageType`
  DamageType.`FIREBALL`
  `static final DamageType`
  DamageType.`FIREWORKS`
  `static final DamageType`
  DamageType.`FLY_INTO_WALL`
  `static final DamageType`
  DamageType.`FREEZE`
  `static final DamageType`
  DamageType.`GENERIC`
  `static final DamageType`
  DamageType.`GENERIC_KILL`
  `static final DamageType`
  DamageType.`HOT_FLOOR`
  `static final DamageType`
  DamageType.`IN_FIRE`
  `static final DamageType`
  DamageType.`IN_WALL`
  `static final DamageType`
  DamageType.`INDIRECT_MAGIC`
  `static final DamageType`
  DamageType.`LAVA`
  `static final DamageType`
  DamageType.`LIGHTNING_BOLT`
  `static final DamageType`
  DamageType.`MAGIC`
  `static final DamageType`
  DamageType.`MOB_ATTACK`
  `static final DamageType`
  DamageType.`MOB_ATTACK_NO_AGGRO`
  `static final DamageType`
  DamageType.`MOB_PROJECTILE`
  `static final DamageType`
  DamageType.`ON_FIRE`
  `static final DamageType`
  DamageType.`OUT_OF_WORLD`
  `static final DamageType`
  DamageType.`OUTSIDE_BORDER`
  `static final DamageType`
  DamageType.`PLAYER_ATTACK`
  `static final DamageType`
  DamageType.`PLAYER_EXPLOSION`
  `static final DamageType`
  DamageType.`SONIC_BOOM`
  `static final DamageType`
  DamageType.`SPIT`
  `static final DamageType`
  DamageType.`STALAGMITE`
  `static final DamageType`
  DamageType.`STARVE`
  `static final DamageType`
  DamageType.`STING`
  `static final DamageType`
  DamageType.`SWEET_BERRY_BUSH`
  `static final DamageType`
  DamageType.`THORNS`
  `static final DamageType`
  DamageType.`THROWN`
  `static final DamageType`
  DamageType.`TRIDENT`
  `static final DamageType`
  DamageType.`UNATTRIBUTED_FIREBALL`
  `static final DamageType`
  DamageType.`WITHER`
  `static final DamageType`
  DamageType.`WITHER_SKULL`
  返回DamageType的org.bukkit.damage中的方法
  修饰符和类型
  方法
  说明
  `@NotNull DamageType`
  DamageSource.`getDamageType()`
  Get the `DamageType`.
  参数类型为DamageType的org.bukkit.damage中的方法
  修饰符和类型
  方法
  说明
  `static @NotNull DamageSource.Builder`
  DamageSource.`builder(@NotNull DamageType damageType)`
  Create a new `DamageSource.Builder`.