Uses of Class
org.bukkit.event.Event
| Package | Description |
|---|---|
| org.bukkit.event.block | |
| org.bukkit.event.enchantment |
Events triggered from an enchantment table. |
| org.bukkit.event.entity | |
| org.bukkit.event.hanging |
Events relating to entities that hang. |
| org.bukkit.event.inventory | |
| org.bukkit.event.painting | |
| org.bukkit.event.player | |
| org.bukkit.event.server |
Events relating to programmatic state
changes on the server. |
| org.bukkit.event.vehicle |
Events relating to vehicular entities. |
| org.bukkit.event.weather |
Events relating to weather. |
| org.bukkit.event.world | |
| org.bukkit.plugin |
Classes specifically relating to loading software modules at runtime.
|
| org.bukkit.plugin.java |
Classes for handling
plugins written in
java. |
| org.spigotmc.event.entity | |
| org.spigotmc.event.player |
-
Uses of Event in org.bukkit.event.block
Subclasses of Event in org.bukkit.event.block Modifier and Type Class Description classBlockBreakEventCalled when a block is broken by a player.classBlockBurnEventCalled when a block is destroyed as a result of being burnt by fire.classBlockCanBuildEventCalled when we try to place a block, to see if we can build it here or not.classBlockDamageEventCalled when a block is damaged by a player.classBlockDispenseEventCalled when an item is dispensed from a block.classBlockEventRepresents a block related event.classBlockExpEventAn event that's called when a block yields experience.classBlockExplodeEventCalled when a block explodesclassBlockFadeEventCalled when a block fades, melts or disappears based on world conditionsclassBlockFormEventCalled when a block is formed or spreads based on world conditions.classBlockFromToEventRepresents events with a source block and a destination block, currently only applies to liquid (lava and water) and teleporting dragon eggs.classBlockGrowEventCalled when a block grows naturally in the world.classBlockIgniteEventCalled when a block is ignited.classBlockMultiPlaceEventFired when a single block placement action of a player triggers the creation of multiple blocks(e.g.classBlockPhysicsEventThrown when a block physics check is calledclassBlockPistonEventCalled when a piston block is triggeredclassBlockPistonExtendEventCalled when a piston extendsclassBlockPistonRetractEventCalled when a piston retractsclassBlockPlaceEventCalled when a block is placed by a player.classBlockRedstoneEventCalled when a redstone current changesclassBlockSpreadEventCalled when a block spreads based on world conditions.classEntityBlockFormEventCalled when a block is formed by entities.classLeavesDecayEventCalled when leaves are decaying naturally.classNotePlayEventCalled when a note block is being played through player interaction or a redstone current.classSignChangeEventCalled when a sign is changed by a player. -
Uses of Event in org.bukkit.event.enchantment
Subclasses of Event in org.bukkit.event.enchantment Modifier and Type Class Description classEnchantItemEventCalled when an ItemStack is successfully enchanted (currently at enchantment table)classPrepareItemEnchantEventCalled when an ItemStack is inserted in an enchantment table - can be called multiple times -
Uses of Event in org.bukkit.event.entity
Subclasses of Event in org.bukkit.event.entity Modifier and Type Class Description classCreatureSpawnEventCalled when a creature is spawned into a world.classCreeperPowerEventCalled when a Creeper is struck by lightning.classEntityBreakDoorEventCalled when anEntitybreaks a doorclassEntityChangeBlockEventCalled when any Entity, excluding players, changes a block.classEntityCombustByBlockEventCalled when a block causes an entity to combust.classEntityCombustByEntityEventCalled when an entity causes another entity to combust.classEntityCombustEventCalled when an entity combusts.classEntityCreatePortalEventThrown when a Living Entity creates a portal in a world.classEntityDamageByBlockEventCalled when an entity is damaged by a blockclassEntityDamageByEntityEventCalled when an entity is damaged by an entityclassEntityDamageEventStores data for damage eventsclassEntityDeathEventThrown whenever a LivingEntity diesclassEntityEventRepresents an Entity-related eventclassEntityExplodeEventCalled when an entity explodesclassEntityInteractEventCalled when an entity interacts with an objectclassEntityPortalEnterEventCalled when an entity comes into contact with a portalclassEntityPortalEventCalled when a non-player entity is about to teleport because it is in contact with a portal.classEntityPortalExitEventCalled before an entity exits a portal.classEntityRegainHealthEventStores data for health-regain eventsclassEntityShootBowEventCalled when a LivingEntity shoots a bow firing an arrowclassEntitySpawnEventCalled when an entity is spawned into a world.classEntityTameEventThrown when a LivingEntity is tamedclassEntityTargetEventCalled when a creature targets or untargets another entityclassEntityTargetLivingEntityEventCalled when an Entity targets aLivingEntityand can only target LivingEntity's.classEntityTeleportEventThrown when a non-player entity (such as an Enderman) tries to teleport from one location to another.classEntityUnleashEventCalled immediately prior to an entity being unleashed.classExpBottleEventCalled when a ThrownExpBottle hits and releases experience.classExplosionPrimeEventCalled when an entity has made a decision to explode.classFireworkExplodeEventCalled when a firework explodes.classFoodLevelChangeEventCalled when a human entity's food level changesclassHorseJumpEventCalled when a horse jumps.classItemDespawnEventThis event is called when aItemis removed from the world because it has existed for 5 minutes.classItemMergeEventclassItemSpawnEventCalled when an item is spawned into a worldclassPigZapEventStores data for pigs being zappedclassPlayerDeathEventThrown whenever aPlayerdiesclassPlayerLeashEntityEventCalled immediately prior to a creature being leashed by a player.classPotionSplashEventCalled when a splash potion hits an areaclassProjectileHitEventCalled when a projectile hits an objectclassProjectileLaunchEventCalled when a projectile is launched.classSheepDyeWoolEventCalled when a sheep's wool is dyedclassSheepRegrowWoolEventCalled when a sheep regrows its woolclassSlimeSplitEventCalled when a Slime splits into smaller Slimes upon deathclassSpawnerSpawnEventCalled when an entity is spawned into a world by a spawner. -
Uses of Event in org.bukkit.event.hanging
Subclasses of Event in org.bukkit.event.hanging Modifier and Type Class Description classHangingBreakByEntityEventTriggered when a hanging entity is removed by an entityclassHangingBreakEventTriggered when a hanging entity is removedclassHangingEventRepresents a hanging entity-related event.classHangingPlaceEventTriggered when a hanging entity is created in the world -
Uses of Event in org.bukkit.event.inventory
Subclasses of Event in org.bukkit.event.inventory Modifier and Type Class Description classBrewEventCalled when the brewing of the contents inside the Brewing Stand is complete.classCraftItemEventCalled when the recipe of an Item is completed inside a crafting matrix.classFurnaceBurnEventCalled when an ItemStack is successfully burned as fuel in a furnace.classFurnaceExtractEventThis event is called when a player takes items out of the furnaceclassFurnaceSmeltEventCalled when an ItemStack is successfully smelted in a furnace.classInventoryClickEventThis event is called when a player clicks a slot in an inventory.classInventoryCloseEventRepresents a player related inventory eventclassInventoryCreativeEventThis event is called when a player in creative mode puts down or picks up an item in their inventory / hotbar and when they drop items from their Inventory while in creative mode.classInventoryDragEventThis event is called when the player drags an item in their cursor across the inventory.classInventoryEventRepresents a player related inventory eventclassInventoryInteractEventAn abstract base class for events that describe an interaction between a HumanEntity and the contents of an Inventory.classInventoryMoveItemEventCalled when some entity or block (e.g.classInventoryOpenEventRepresents a player related inventory eventclassInventoryPickupItemEventCalled when a hopper or hopper minecart picks up a dropped item.classPrepareItemCraftEvent -
Uses of Event in org.bukkit.event.painting
Subclasses of Event in org.bukkit.event.painting Modifier and Type Class Description classPaintingBreakByEntityEventDeprecated.UseHangingBreakByEntityEventinstead.classPaintingBreakEventDeprecated.UseHangingBreakEventinstead.classPaintingEventDeprecated.UseHangingEventinstead.classPaintingPlaceEventDeprecated.UseHangingPlaceEventinstead. -
Uses of Event in org.bukkit.event.player
Subclasses of Event in org.bukkit.event.player Modifier and Type Class Description classAsyncPlayerChatEventThis event will sometimes fire synchronously, depending on how it was triggered.classAsyncPlayerPreLoginEventStores details for players attempting to log in.classPlayerAchievementAwardedEventCalled when a player earns an achievement.classPlayerAnimationEventRepresents a player animation eventclassPlayerArmorStandManipulateEventCalled when a player interacts with an armor stand and will either swap, retrieve or place an item.classPlayerBedEnterEventThis event is fired when the player is almost about to enter the bed.classPlayerBedLeaveEventThis event is fired when the player is leaving a bed.classPlayerBucketEmptyEventCalled when a player empties a bucketclassPlayerBucketEventCalled when a player interacts with a BucketclassPlayerBucketFillEventCalled when a player fills a bucketclassPlayerChangedWorldEventCalled when a player switches to another world.classPlayerChannelEventThis event is called after a player registers or unregisters a new plugin channel.classPlayerChatEventDeprecated.This event will fire from the main thread and allows the use of all of the Bukkit API, unlike theAsyncPlayerChatEvent.classPlayerChatTabCompleteEventCalled when a player attempts to tab-complete a chat message.classPlayerCommandPreprocessEventThis event is called whenever a player runs a command (by placing a slash at the start of their message).classPlayerDropItemEventThrown when a player drops an item from their inventoryclassPlayerEditBookEventCalled when a player edits or signs a book and quill item.classPlayerEggThrowEventCalled when a player throws an egg and it might hatchclassPlayerEventRepresents a player related eventclassPlayerExpChangeEventCalled when a players experience changes naturallyclassPlayerFishEventThrown when a player is fishingclassPlayerGameModeChangeEventCalled when the GameMode of the player is changed.classPlayerInteractAtEntityEventRepresents an event that is called when a player right clicks an entity with a location on the entity the was clicked.classPlayerInteractEntityEventRepresents an event that is called when a player right clicks an entity.classPlayerInteractEventCalled when a player interacts with an object or air.classPlayerInventoryEventDeprecated.UseInventoryClickEventorInventoryOpenEventinstead, or one of the other inventory events inorg.bukkit.event.inventory.classPlayerItemBreakEventFired when a player's item breaks (such as a shovel or flint and steel).classPlayerItemConsumeEventThis event will fire when a player is finishing consuming an item (food, potion, milk bucket).classPlayerItemDamageEventclassPlayerItemHeldEventFired when a player changes their currently held itemclassPlayerJoinEventCalled when a player joins a serverclassPlayerKickEventCalled when a player gets kicked from the serverclassPlayerLevelChangeEventCalled when a players level changesclassPlayerLoginEventStores details for players attempting to log inclassPlayerMoveEventHolds information for player movement eventsclassPlayerPickupItemEventThrown when a player picks an item up from the groundclassPlayerPortalEventCalled when a player is about to teleport because it is in contact with a portal.classPlayerPreLoginEventDeprecated.This event causes synchronization from the login thread;AsyncPlayerPreLoginEventis preferred to keep the secondary threads asynchronous.classPlayerQuitEventCalled when a player leaves a serverclassPlayerRegisterChannelEventThis is called immediately after a player registers for a plugin channel.classPlayerResourcePackStatusEventCalled when a player takes action on a resource pack request sent viaPlayer.setResourcePack(java.lang.String).classPlayerRespawnEventCalled when a player respawns.classPlayerShearEntityEventCalled when a player shears an entityclassPlayerStatisticIncrementEventCalled when a player statistic is incremented.classPlayerTeleportEventHolds information for player teleport eventsclassPlayerToggleFlightEventCalled when a player toggles their flying stateclassPlayerToggleSneakEventCalled when a player toggles their sneaking stateclassPlayerToggleSprintEventCalled when a player toggles their sprinting stateclassPlayerUnleashEntityEventCalled prior to an entity being unleashed due to a player's action.classPlayerUnregisterChannelEventThis is called immediately after a player unregisters for a plugin channel.classPlayerVelocityEventCalled when the velocity of a player changes. -
Uses of Event in org.bukkit.event.server
Subclasses of Event in org.bukkit.event.server Modifier and Type Class Description classMapInitializeEventCalled when a map is initialized.classPluginDisableEventCalled when a plugin is disabled.classPluginEnableEventCalled when a plugin is enabled.classPluginEventUsed for plugin enable and disable eventsclassRemoteServerCommandEventThis event is called when a command is recieved over RCON.classServerCommandEventThis event is called when a command is run from the server console.classServerEventMiscellaneous server eventsclassServerListPingEventCalled when a server list ping is coming in.classServiceEventAn event relating to a registered service.classServiceRegisterEventThis event is called when a service is registered.classServiceUnregisterEventThis event is called when a service is unregistered. -
Uses of Event in org.bukkit.event.vehicle
Subclasses of Event in org.bukkit.event.vehicle Modifier and Type Class Description classVehicleBlockCollisionEventRaised when a vehicle collides with a block.classVehicleCollisionEventRaised when a vehicle collides.classVehicleCreateEventRaised when a vehicle is created.classVehicleDamageEventRaised when a vehicle receives damage.classVehicleDestroyEventRaised when a vehicle is destroyed, which could be caused by either a player or the environment.classVehicleEnterEventRaised when an entity enters a vehicle.classVehicleEntityCollisionEventRaised when a vehicle collides with an entity.classVehicleEventRepresents a vehicle-related event.classVehicleExitEventRaised when a living entity exits a vehicle.classVehicleMoveEventRaised when a vehicle moves.classVehicleUpdateEventCalled when a vehicle updates -
Uses of Event in org.bukkit.event.weather
Subclasses of Event in org.bukkit.event.weather Modifier and Type Class Description classLightningStrikeEventStores data for lightning strikingclassThunderChangeEventStores data for thunder state changing in a worldclassWeatherChangeEventStores data for weather changing in a worldclassWeatherEventRepresents a Weather-related event -
Uses of Event in org.bukkit.event.world
Subclasses of Event in org.bukkit.event.world Modifier and Type Class Description classChunkEventRepresents a Chunk related eventclassChunkLoadEventCalled when a chunk is loadedclassChunkPopulateEventThrown when a new chunk has finished being populated.classChunkUnloadEventCalled when a chunk is unloadedclassPortalCreateEventCalled when a portal is createdclassSpawnChangeEventAn event that is called when a world's spawn changes.classStructureGrowEventEvent that is called when an organic structure attempts to grow (Sapling -> Tree), (Mushroom -> Huge Mushroom), naturally or using bonemeal.classWorldEventRepresents events within a worldclassWorldInitEventCalled when a World is initializingclassWorldLoadEventCalled when a World is loadedclassWorldSaveEventCalled when a World is saved.classWorldUnloadEventCalled when a World is unloaded -
Uses of Event in org.bukkit.plugin
Methods in org.bukkit.plugin that return types with arguments of type Event Modifier and Type Method Description java.util.Map<java.lang.Class<? extends Event>,java.util.Set<RegisteredListener>>PluginLoader. createRegisteredListeners(Listener listener, Plugin plugin)Creates and returns registered listeners for the event classes used in this listenerjava.lang.Class<? extends Event>TimedRegisteredListener. getEventClass()Gets the class of the events this listener handled.Methods in org.bukkit.plugin with parameters of type Event Modifier and Type Method Description voidPluginManager. callEvent(Event event)Calls an event with the given detailsvoidRegisteredListener. callEvent(Event event)Calls the event executorvoidSimplePluginManager. callEvent(Event event)Calls an event with the given details.voidTimedRegisteredListener. callEvent(Event event)voidEventExecutor. execute(Listener listener, Event event)Method parameters in org.bukkit.plugin with type arguments of type Event Modifier and Type Method Description voidPluginManager. registerEvent(java.lang.Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin)Registers the specified executor to the given event classvoidPluginManager. registerEvent(java.lang.Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled)Registers the specified executor to the given event classvoidSimplePluginManager. registerEvent(java.lang.Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin)voidSimplePluginManager. registerEvent(java.lang.Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled)Registers the given event to the specified listener using a directly passed EventExecutor -
Uses of Event in org.bukkit.plugin.java
Methods in org.bukkit.plugin.java that return types with arguments of type Event Modifier and Type Method Description java.util.Map<java.lang.Class<? extends Event>,java.util.Set<RegisteredListener>>JavaPluginLoader. createRegisteredListeners(Listener listener, Plugin plugin) -
Uses of Event in org.spigotmc.event.entity
Subclasses of Event in org.spigotmc.event.entity Modifier and Type Class Description classEntityDismountEventCalled when an entity stops riding another entity.classEntityMountEventCalled when an entity attempts to ride another entity. -
Uses of Event in org.spigotmc.event.player
Subclasses of Event in org.spigotmc.event.player Modifier and Type Class Description classPlayerSpawnLocationEventCalled when player is about to spawn in a world after joining the server.