程序包 org.bukkit
类 GameEvent
java.lang.Object
org.bukkit.GameEvent
- 所有已实现的接口:
Keyed
代表 Mojang 通用游戏事件.
译注:这些事件非 Bukkit 框架内提供的事件, 而是 Mojang 在原游戏引入的事件, 目前已知原版游戏用于幽匿感测体中.
不过 Bukkit 框架提供了一个新的事件: GenericGameEvent
, 使得监听 Mojang 游戏事件成为可能.
原文:Represents a generic Mojang game event.
- 从以下版本开始:
- 1.17
-
字段概要
修饰符和类型字段说明static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
已过时。static final GameEvent
已过时。static final GameEvent
已过时。static final GameEvent
已过时。static final GameEvent
static final GameEvent
static final GameEvent
已过时。static final GameEvent
static final GameEvent
已过时。static final GameEvent
static final GameEvent
已过时。static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
已过时。static final GameEvent
static final GameEvent
static final GameEvent
已过时。static final GameEvent
static final GameEvent
已过时。static final GameEvent
static final GameEvent
static final GameEvent
已过时。static final GameEvent
已过时。static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
已过时。static final GameEvent
static final GameEvent
已过时。static final GameEvent
已过时。static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
已过时。static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
已过时。static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
已过时。static final GameEvent
已过时。static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
已过时。 -
构造器概要
-
方法概要
修饰符和类型方法说明getByKey
(@NotNull NamespacedKey namespacedKey) 已过时。static @NotNull Collection<GameEvent>
values()
已过时。
-
字段详细资料
-
BLOCK_ACTIVATE
-
BLOCK_ATTACH
-
BLOCK_CHANGE
-
BLOCK_CLOSE
-
BLOCK_DEACTIVATE
-
BLOCK_DESTROY
-
BLOCK_DETACH
-
BLOCK_OPEN
-
BLOCK_PLACE
-
BLOCK_PRESS
已过时。 -
BLOCK_SWITCH
已过时。 -
BLOCK_UNPRESS
已过时。 -
BLOCK_UNSWITCH
已过时。 -
CONTAINER_CLOSE
-
CONTAINER_OPEN
-
DISPENSE_FAIL
已过时。 -
DRINK
-
DRINKING_FINISH
已过时。 -
EAT
-
ELYTRA_FREE_FALL
已过时。 -
ELYTRA_GLIDE
-
ENTITY_DAMAGE
-
ENTITY_DAMAGED
已过时。 -
ENTITY_DIE
-
ENTITY_DISMOUNT
-
ENTITY_DYING
已过时。 -
ENTITY_INTERACT
-
ENTITY_MOUNT
-
ENTITY_KILLED
已过时。 -
ENTITY_PLACE
-
ENTITY_ACTION
-
ENTITY_ROAR
已过时。 -
ENTITY_SHAKE
已过时。 -
EQUIP
-
EXPLODE
-
FLAP
-
FLUID_PICKUP
-
FLUID_PLACE
-
HIT_GROUND
-
INSTRUMENT_PLAY
-
ITEM_INTERACT_FINISH
-
ITEM_INTERACT_START
-
JUKEBOX_PLAY
-
JUKEBOX_STOP_PLAY
-
LIGHTNING_STRIKE
-
MOB_INTERACT
已过时。 -
NOTE_BLOCK_PLAY
-
PISTON_CONTRACT
已过时。 -
PISTON_EXTEND
已过时。 -
PRIME_FUSE
-
PROJECTILE_LAND
-
PROJECTILE_SHOOT
-
RAVAGER_ROAR
已过时。 -
RING_BELL
已过时。 -
SCULK_SENSOR_TENDRILS_CLICKING
-
SHEAR
-
SHRIEK
-
SHULKER_CLOSE
已过时。 -
SHULKER_OPEN
已过时。 -
SPLASH
-
STEP
-
SWIM
-
TELEPORT
-
UNEQUIP
-
WOLF_SHAKING
已过时。 -
RESONATE_1
-
RESONATE_2
-
RESONATE_3
-
RESONATE_4
-
RESONATE_5
-
RESONATE_6
-
RESONATE_7
-
RESONATE_8
-
RESONATE_9
-
RESONATE_10
-
RESONATE_11
-
RESONATE_12
-
RESONATE_13
-
RESONATE_14
-
RESONATE_15
-
-
构造器详细资料
-
GameEvent
public GameEvent()
-
-
方法详细资料
-
getByKey
@Nullable @Deprecated public static @Nullable GameEvent getByKey(@NotNull @NotNull NamespacedKey namespacedKey) 已过时。- 参数:
namespacedKey
- the key- 返回:
- 游戏事件, 如果 key 不存在则返回 null
-
values
已过时。返回所有游戏事件的集合.原文:Returns the set of all GameEvents.
- 返回:
- 游戏事件键的集合
-
Registry.get(NamespacedKey)