# 类的使用
org.bukkit.GameEvent

使用GameEvent的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.
org.bukkit.event.block
与`方块`被改变或与`世界`进行交互等情况相关的`事件`.
org.bukkit.event.world
与`世界`状态和变化有关的`事件`.

- ## org.bukkit中GameEvent的使用

  声明为GameEvent的org.bukkit中的字段
  修饰符和类型
  字段
  说明
  `static final GameEvent`
  GameEvent.`BLOCK_ACTIVATE`
  `static final GameEvent`
  GameEvent.`BLOCK_ATTACH`
  `static final GameEvent`
  GameEvent.`BLOCK_CHANGE`
  `static final GameEvent`
  GameEvent.`BLOCK_CLOSE`
  `static final GameEvent`
  GameEvent.`BLOCK_DEACTIVATE`
  `static final GameEvent`
  GameEvent.`BLOCK_DESTROY`
  `static final GameEvent`
  GameEvent.`BLOCK_DETACH`
  `static final GameEvent`
  GameEvent.`BLOCK_OPEN`
  `static final GameEvent`
  GameEvent.`BLOCK_PLACE`
  `static final GameEvent`
  GameEvent.`BLOCK_PRESS`
  已过时。
  `static final GameEvent`
  GameEvent.`BLOCK_SWITCH`
  已过时。
  `static final GameEvent`
  GameEvent.`BLOCK_UNPRESS`
  已过时。
  `static final GameEvent`
  GameEvent.`BLOCK_UNSWITCH`
  已过时。
  `static final GameEvent`
  GameEvent.`CONTAINER_CLOSE`
  `static final GameEvent`
  GameEvent.`CONTAINER_OPEN`
  `static final GameEvent`
  GameEvent.`DISPENSE_FAIL`
  已过时。
  `static final GameEvent`
  GameEvent.`DRINK`
  `static final GameEvent`
  GameEvent.`DRINKING_FINISH`
  已过时。
  `static final GameEvent`
  GameEvent.`EAT`
  `static final GameEvent`
  GameEvent.`ELYTRA_FREE_FALL`
  已过时。
  `static final GameEvent`
  GameEvent.`ELYTRA_GLIDE`
  `static final GameEvent`
  GameEvent.`ENTITY_ACTION`
  `static final GameEvent`
  GameEvent.`ENTITY_DAMAGE`
  `static final GameEvent`
  GameEvent.`ENTITY_DAMAGED`
  已过时。
  `static final GameEvent`
  GameEvent.`ENTITY_DIE`
  `static final GameEvent`
  GameEvent.`ENTITY_DISMOUNT`
  `static final GameEvent`
  GameEvent.`ENTITY_DYING`
  已过时。
  `static final GameEvent`
  GameEvent.`ENTITY_INTERACT`
  `static final GameEvent`
  GameEvent.`ENTITY_KILLED`
  已过时。
  `static final GameEvent`
  GameEvent.`ENTITY_MOUNT`
  `static final GameEvent`
  GameEvent.`ENTITY_PLACE`
  `static final GameEvent`
  GameEvent.`ENTITY_ROAR`
  已过时。
  `static final GameEvent`
  GameEvent.`ENTITY_SHAKE`
  已过时。
  `static final GameEvent`
  GameEvent.`EQUIP`
  `static final GameEvent`
  GameEvent.`EXPLODE`
  `static final GameEvent`
  GameEvent.`FLAP`
  `static final GameEvent`
  GameEvent.`FLUID_PICKUP`
  `static final GameEvent`
  GameEvent.`FLUID_PLACE`
  `static final GameEvent`
  GameEvent.`HIT_GROUND`
  `static final GameEvent`
  GameEvent.`INSTRUMENT_PLAY`
  `static final GameEvent`
  GameEvent.`ITEM_INTERACT_FINISH`
  `static final GameEvent`
  GameEvent.`ITEM_INTERACT_START`
  `static final GameEvent`
  GameEvent.`JUKEBOX_PLAY`
  `static final GameEvent`
  GameEvent.`JUKEBOX_STOP_PLAY`
  `static final GameEvent`
  GameEvent.`LIGHTNING_STRIKE`
  `static final GameEvent`
  GameEvent.`MOB_INTERACT`
  已过时。
  `static final GameEvent`
  GameEvent.`NOTE_BLOCK_PLAY`
  `static final GameEvent`
  GameEvent.`PISTON_CONTRACT`
  已过时。
  `static final GameEvent`
  GameEvent.`PISTON_EXTEND`
  已过时。
  `static final GameEvent`
  GameEvent.`PRIME_FUSE`
  `static final GameEvent`
  GameEvent.`PROJECTILE_LAND`
  `static final GameEvent`
  GameEvent.`PROJECTILE_SHOOT`
  `static final GameEvent`
  GameEvent.`RAVAGER_ROAR`
  已过时。
  `static final GameEvent`
  GameEvent.`RESONATE_1`
  `static final GameEvent`
  GameEvent.`RESONATE_10`
  `static final GameEvent`
  GameEvent.`RESONATE_11`
  `static final GameEvent`
  GameEvent.`RESONATE_12`
  `static final GameEvent`
  GameEvent.`RESONATE_13`
  `static final GameEvent`
  GameEvent.`RESONATE_14`
  `static final GameEvent`
  GameEvent.`RESONATE_15`
  `static final GameEvent`
  GameEvent.`RESONATE_2`
  `static final GameEvent`
  GameEvent.`RESONATE_3`
  `static final GameEvent`
  GameEvent.`RESONATE_4`
  `static final GameEvent`
  GameEvent.`RESONATE_5`
  `static final GameEvent`
  GameEvent.`RESONATE_6`
  `static final GameEvent`
  GameEvent.`RESONATE_7`
  `static final GameEvent`
  GameEvent.`RESONATE_8`
  `static final GameEvent`
  GameEvent.`RESONATE_9`
  `static final GameEvent`
  GameEvent.`RING_BELL`
  已过时。
  `static final GameEvent`
  GameEvent.`SCULK_SENSOR_TENDRILS_CLICKING`
  `static final GameEvent`
  GameEvent.`SHEAR`
  `static final GameEvent`
  GameEvent.`SHRIEK`
  `static final GameEvent`
  GameEvent.`SHULKER_CLOSE`
  已过时。
  `static final GameEvent`
  GameEvent.`SHULKER_OPEN`
  已过时。
  `static final GameEvent`
  GameEvent.`SPLASH`
  `static final GameEvent`
  GameEvent.`STEP`
  `static final GameEvent`
  GameEvent.`SWIM`
  `static final GameEvent`
  GameEvent.`TELEPORT`
  `static final GameEvent`
  GameEvent.`UNEQUIP`
  `static final GameEvent`
  GameEvent.`WOLF_SHAKING`
  已过时。
  类型参数类型为GameEvent的org.bukkit中的字段
  修饰符和类型
  字段
  说明
  `static final Registry<GameEvent>`
  Registry.`GAME_EVENT`
  Game events.
  返回GameEvent的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `static @Nullable GameEvent`
  GameEvent.`getByKey(@NotNull NamespacedKey namespacedKey)`
  已过时。
  请使用 `Registry.get(NamespacedKey)`
  返回变量类型为GameEvent的类型的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `static @NotNull Collection<GameEvent>`
  GameEvent.`values()`
  已过时。
  请使用 `Iterable.iterator()`

- ## org.bukkit.event.block中GameEvent的使用

  返回GameEvent的org.bukkit.event.block中的方法
  修饰符和类型
  方法
  说明
  `@NotNull GameEvent`
  BlockReceiveGameEvent.`getEvent()`
  获取底层事件.
  参数类型为GameEvent的org.bukkit.event.block中的构造器
  限定符
  构造器
  说明
  ``
  `BlockReceiveGameEvent(@NotNull GameEvent event, @NotNull Block block, @Nullable Entity entity)`

- ## org.bukkit.event.world中GameEvent的使用

  返回GameEvent的org.bukkit.event.world中的方法
  修饰符和类型
  方法
  说明
  `@NotNull GameEvent`
  GenericGameEvent.`getEvent()`
  获取本事件的底层事件.
  参数类型为GameEvent的org.bukkit.event.world中的构造器
  限定符
  构造器
  说明
  ``
  `GenericGameEvent(@NotNull GameEvent event, @NotNull Location location, @Nullable Entity entity, int radius, boolean isAsync)`