Package org.bukkit
Class GameEvent
java.lang.Object
org.bukkit.GameEvent
- All Implemented Interfaces:
- net.kyori.adventure.key.Keyed,- Keyed
Represents a generic Mojang game event.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventDeprecated.static final GameEventDeprecated.static final GameEventDeprecated.static final GameEventDeprecated.static final GameEventstatic final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventDeprecated.static final GameEventDeprecated.static final GameEventstatic final GameEventstatic final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventstatic final GameEventstatic final GameEventDeprecated.static final GameEventDeprecated.static final GameEventstatic final GameEventstatic final GameEventstatic final GameEventstatic final GameEventDeprecated.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetByKey(@NotNull NamespacedKey namespacedKey) Deprecated.static @NotNull Collection<GameEvent>values()Deprecated.useIterable.iterator().
- 
Field Details- 
BLOCK_ACTIVATE
- 
BLOCK_ATTACH
- 
BLOCK_CHANGE
- 
BLOCK_CLOSE
- 
BLOCK_DEACTIVATE
- 
BLOCK_DESTROY
- 
BLOCK_DETACH
- 
BLOCK_OPEN
- 
BLOCK_PLACE
- 
BLOCK_PRESSDeprecated.
- 
BLOCK_SWITCHDeprecated.
- 
BLOCK_UNPRESSDeprecated.
- 
BLOCK_UNSWITCHDeprecated.
- 
CONTAINER_CLOSE
- 
CONTAINER_OPEN
- 
DISPENSE_FAILDeprecated.
- 
DRINK
- 
DRINKING_FINISHDeprecated.
- 
EAT
- 
ELYTRA_FREE_FALLDeprecated.
- 
ELYTRA_GLIDE
- 
ENTITY_DAMAGE
- 
ENTITY_DAMAGEDDeprecated.
- 
ENTITY_DIE
- 
ENTITY_DISMOUNT
- 
ENTITY_DYINGDeprecated.
- 
ENTITY_INTERACT
- 
ENTITY_MOUNT
- 
ENTITY_KILLEDDeprecated.
- 
ENTITY_PLACE
- 
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_INTERACTDeprecated.
- 
NOTE_BLOCK_PLAY
- 
PISTON_CONTRACTDeprecated.
- 
PISTON_EXTENDDeprecated.
- 
PRIME_FUSE
- 
PROJECTILE_LAND
- 
PROJECTILE_SHOOT
- 
RAVAGER_ROARDeprecated.
- 
RING_BELLDeprecated.
- 
SCULK_SENSOR_TENDRILS_CLICKING
- 
SHEAR
- 
SHRIEK
- 
SHULKER_CLOSEDeprecated.
- 
SHULKER_OPENDeprecated.
- 
SPLASH
- 
STEP
- 
SWIM
- 
TELEPORT
- 
WOLF_SHAKINGDeprecated.
- 
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
 
- 
- 
Constructor Details- 
GameEventpublic GameEvent()
 
- 
- 
Method Details- 
getByKey@Nullable @Deprecated public static @Nullable GameEvent getByKey(@NotNull @NotNull NamespacedKey namespacedKey) Deprecated.UseRegistry.get(NamespacedKey)instead.Returns aGameEventby aNamespacedKey.- Parameters:
- namespacedKey- the key
- Returns:
- the event or null
 
- 
valuesDeprecated.useIterable.iterator().Returns the set of all GameEvents.- Returns:
- the memoryKeys
 
 
- 
Registry.get(NamespacedKey)instead.