Package org.bukkit
Class GameEvent
java.lang.Object
org.bukkit.GameEvent
Represents a generic Mojang game event.
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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
Deprecated.static final GameEvent
Deprecated.static final GameEvent
Deprecated.static final GameEvent
Deprecated.static final GameEvent
static final GameEvent
static final GameEvent
Deprecated.static final GameEvent
static final GameEvent
Deprecated.static final GameEvent
static final GameEvent
Deprecated.static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
Deprecated.static final GameEvent
static final GameEvent
static final GameEvent
Deprecated.static final GameEvent
static final GameEvent
Deprecated.static final GameEvent
static final GameEvent
static final GameEvent
Deprecated.static final GameEvent
Deprecated.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
Deprecated.static final GameEvent
static final GameEvent
Deprecated.static final GameEvent
Deprecated.static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
Deprecated.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
Deprecated.static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
Deprecated.static final GameEvent
Deprecated.static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
static final GameEvent
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetByKey
(@NotNull NamespacedKey namespacedKey) Deprecated.abstract int
getRange()
Gets the range of the event which is used to notify listeners of the event.abstract int
Gets the vibration level of the game event for vibration listeners.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_PRESS
Deprecated. -
BLOCK_SWITCH
Deprecated. -
BLOCK_UNPRESS
Deprecated. -
BLOCK_UNSWITCH
Deprecated. -
CONTAINER_CLOSE
-
CONTAINER_OPEN
-
DISPENSE_FAIL
Deprecated. -
DRINK
-
DRINKING_FINISH
Deprecated. -
EAT
-
ELYTRA_FREE_FALL
Deprecated. -
ELYTRA_GLIDE
-
ENTITY_DAMAGE
-
ENTITY_DAMAGED
Deprecated. -
ENTITY_DIE
-
ENTITY_DISMOUNT
-
ENTITY_DYING
Deprecated. -
ENTITY_INTERACT
-
ENTITY_MOUNT
-
ENTITY_KILLED
Deprecated. -
ENTITY_PLACE
-
ENTITY_ACTION
-
ENTITY_ROAR
Deprecated. -
ENTITY_SHAKE
Deprecated. -
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
Deprecated. -
NOTE_BLOCK_PLAY
-
PISTON_CONTRACT
Deprecated. -
PISTON_EXTEND
Deprecated. -
PRIME_FUSE
-
PROJECTILE_LAND
-
PROJECTILE_SHOOT
-
RAVAGER_ROAR
Deprecated. -
RING_BELL
Deprecated. -
SCULK_SENSOR_TENDRILS_CLICKING
-
SHEAR
-
SHRIEK
-
SHULKER_CLOSE
Deprecated. -
SHULKER_OPEN
Deprecated. -
SPLASH
-
STEP
-
SWIM
-
TELEPORT
-
UNEQUIP
-
WOLF_SHAKING
Deprecated. -
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
-
GameEvent
public GameEvent()
-
-
Method Details
-
getByKey
@Nullable @Deprecated public static @Nullable GameEvent getByKey(@NotNull @NotNull NamespacedKey namespacedKey) Deprecated.UseRegistry.get(NamespacedKey)
instead.Returns aGameEvent
by aNamespacedKey
.- Parameters:
namespacedKey
- the key- Returns:
- the event or null
-
values
Deprecated.useIterable.iterator()
.Returns the set of all GameEvents.- Returns:
- the memoryKeys
-
getRange
public abstract int getRange()Gets the range of the event which is used to notify listeners of the event.- Returns:
- the range
-
getVibrationLevel
public abstract int getVibrationLevel()Gets the vibration level of the game event for vibration listeners. Not all events have vibration levels, and a level of 0 means it won't cause any vibrations.- Returns:
- the vibration level
-
Registry.get(NamespacedKey)
instead.