Package org.bukkit
Class GameEvent
java.lang.Object
org.bukkit.GameEvent
- All Implemented Interfaces:
- Keyed,- RegistryAware
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 GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventDeprecated.static final GameEventstatic final GameEventstatic final GameEventDeprecated.static 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 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 GameEventstatic final GameEventDeprecated.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic GameEventgetByKey(NamespacedKey namespacedKey) Deprecated.abstract NamespacedKeygetKey()Deprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()instead.static Collection<GameEvent> values()Deprecated.useIterable.iterator().Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.registry.RegistryAwaregetKeyOrNull, getKeyOrThrow, isRegistered
- 
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_ACTION
- 
ENTITY_ROARDeprecated.
- 
ENTITY_SHAKEDeprecated.
- 
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
- 
UNEQUIP
- 
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- 
getKeyDeprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Return the namespaced identifier for this object.
- 
getByKey@Nullable @Deprecated(since="1.20.1") public static GameEvent getByKey(@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.