Uses of Class
org.bukkit.event.Event
-
Packages that use Event Package Description org.bukkit.event.block org.bukkit.event.enchantment Eventstriggered from anenchantment table.org.bukkit.event.entity org.bukkit.event.hanging Eventsrelating toentities that hang.org.bukkit.event.inventory org.bukkit.event.player org.bukkit.event.raid org.bukkit.event.server Eventsrelating to programmatic state changes on the server.org.bukkit.event.vehicle Eventsrelating tovehicular entities.org.bukkit.event.weather Eventsrelating to weather.org.bukkit.event.world org.bukkit.plugin Classes specifically relating to loading software modules at runtime.org.bukkit.plugin.java Classes for handlingpluginswritten 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.classBlockCookEventCalled when an ItemStack is successfully cooked in a block.classBlockDamageEventCalled when a block is damaged by a player.classBlockDispenseArmorEventCalled when an equippable item is dispensed from a block and equipped on a nearby entity.classBlockDispenseEventCalled when an item is dispensed from a block.classBlockDropItemEventCalled if a block broken by a player drops an item.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 conditionsclassBlockFertilizeEventCalled with the block changes resulting from a player fertilizing a given block with bonemeal.classBlockFormEventCalled 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. placing a bed block).classBlockPhysicsEventThrown when a block physics check is called.classBlockPistonEventCalled 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 changesclassBlockShearEntityEventEvent fired when a dispenser shears a nearby sheep.classBlockSpreadEventCalled when a block spreads based on world conditions.classCauldronLevelChangeEventclassEntityBlockFormEventCalled when a block is formed by entities.classFluidLevelChangeEventCalled when the fluid level of a block changes due to changes in adjacent blocks.classLeavesDecayEventCalled when leaves are decaying naturally.classMoistureChangeEventCalled when the moisture level of a soil block changes.classNotePlayEventCalled when a note block is being played through player interaction or a redstone current.classSignChangeEventCalled when a sign is changed by a player.classSpongeAbsorbEventCalled when a sponge absorbs water from the world. -
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 classAreaEffectCloudApplyEventCalled when a lingering potion applies it's effects.classBatToggleSleepEventCalled when a bat attempts to sleep or wake up from its slumber.classCreatureSpawnEventCalled when a creature is spawned into a world.classCreeperPowerEventCalled when a Creeper is struck by lightning.classEnderDragonChangePhaseEventCalled when an EnderDragon switches controller phase.classEntityAirChangeEventCalled when the amount of air an entity has remaining changes.classEntityBreakDoorEventCalled when anEntitybreaks a doorclassEntityBreedEventCalled when one Entity breeds with another Entity.classEntityChangeBlockEventCalled 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.classEntityCreatePortalEventDeprecated.classEntityDamageByBlockEventCalled when an entity is damaged by a blockclassEntityDamageByEntityEventCalled when an entity is damaged by an entityclassEntityDamageEventStores data for damage eventsclassEntityDeathEventThrown whenever a LivingEntity diesclassEntityDropItemEventThrown when an entity creates an item drop.classEntityEventRepresents an Entity-related eventclassEntityExplodeEventCalled when an entity explodesclassEntityInteractEventCalled when an entity interacts with an objectclassEntityPickupItemEventThrown when a entity picks an item up from the groundclassEntityPlaceEventDeprecated.draft APIclassEntityPortalEnterEventCalled 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.classEntityPoseChangeEventCalled when an entity changes its pose.classEntityPotionEffectEventCalled when a potion effect is modified on an entity.classEntityRegainHealthEventStores data for health-regain eventsclassEntityResurrectEventCalled when an entity dies and may have the opportunity to be resurrected.classEntityShootBowEventCalled 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 is teleported from one location to another.classEntityToggleGlideEventSent when an entity's gliding status is toggled with an Elytra.classEntityToggleSwimEventSent when an entity's swimming status is toggled.classEntityTransformEventCalled when an entity is about to be replaced by another entity.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 worldclassLingeringPotionSplashEventCalled when a splash potion hits an areaclassPigZapEventStores data for pigs being zappedclassPigZombieAngerEventCalled when a Pig Zombie is angered by another entity.classPlayerDeathEventThrown 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.classVillagerAcquireTradeEventCalled whenever a villager acquires a new trade.classVillagerCareerChangeEventclassVillagerReplenishTradeEventCalled when a villager's trade's maximum uses is increased, due to a player's trade. -
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.classBrewingStandFuelEventCalled when an ItemStack is about to increase the fuel level of a brewing stand.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. hopper) tries to move items directly from one inventory to another.classInventoryOpenEventRepresents a player related inventory eventclassInventoryPickupItemEventCalled when a hopper or hopper minecart picks up a dropped item.classPrepareAnvilEventCalled when an item is put in a slot for repair by an anvil.classPrepareItemCraftEventclassTradeSelectEventThis event is called whenever a player clicks a new trade on the trades sidebar. -
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.classPlayerAchievementAwardedEventDeprecated.future versions of Minecraft do not have achievementsclassPlayerAdvancementDoneEventCalled when a player has completed all criteria in an advancement.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 bucketclassPlayerChangedMainHandEventCalled when a player changes their main hand in the client settings.classPlayerChangedWorldEventCalled 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.classPlayerChatTabCompleteEventDeprecated.This event is no longer fired due to client changesclassPlayerCommandPreprocessEventThis event is called whenever a player runs a command (by placing a slash at the start of their message).classPlayerCommandSendEventThis event is called when the list of available server commands is sent to the player.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 that also contains the location where the entity was clicked.classPlayerInteractEntityEventRepresents an event that is called when a player right clicks an entity.classPlayerInteractEventRepresents an event that is called when a player interacts with an object or air, potentially fired once for each hand.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).classPlayerItemDamageEventCalled when an item used by the player takes durability damage as a result of being used.classPlayerItemHeldEventFired when a player changes their currently held itemclassPlayerItemMendEventRepresents when a player has an item repaired via the Mending enchantment.classPlayerJoinEventCalled when a player joins a serverclassPlayerKickEventCalled when a player gets kicked from the serverclassPlayerLevelChangeEventCalled when a players level changesclassPlayerLocaleChangeEventCalled when a player changes their locale in the client settings.classPlayerLoginEventStores details for players attempting to log in.classPlayerMoveEventHolds information for player movement eventsclassPlayerPickupArrowEventThrown when a player picks up an arrow from the ground.classPlayerPickupItemEventDeprecated.classPlayerPortalEventCalled 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 serverclassPlayerRecipeDiscoverEventCalled when a player discovers a new recipe in the recipe book.classPlayerRegisterChannelEventThis 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.classPlayerRiptideEventThis event is fired when the player activates the riptide enchantment, using their trident to propel them through the air.classPlayerShearEntityEventCalled when a player shears an entityclassPlayerStatisticIncrementEventCalled when a player statistic is incremented.classPlayerSwapHandItemsEventCalled when a player swap items between main hand and off hand using the hotkey.classPlayerTakeLecternBookEventThis event is called when a player clicks the button to take a book of a Lectern.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.raid
Subclasses of Event in org.bukkit.event.raid Modifier and Type Class Description classRaidEventRepresents events related to raids.classRaidFinishEventThis event is called when aRaidwas complete with a clear result.classRaidSpawnWaveEventCalled when a raid wave spawns.classRaidStopEventCalled when aRaidis stopped.classRaidTriggerEventCalled when aRaidis triggered (e.g: a player with Bad Omen effect enters a village). -
Uses of Event in org.bukkit.event.server
Subclasses of Event in org.bukkit.event.server Modifier and Type Class Description classBroadcastMessageEventEvent triggered for server broadcast messages such as fromServer.broadcast(String, String).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 received over RCON.classServerCommandEventThis event is called when a command is run by a non-player.classServerEventMiscellaneous server eventsclassServerListPingEventCalled when a server list ping is coming in.classServerLoadEventThis event is called when either the server startup or reload has completed.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.classTabCompleteEventCalled when aCommandSenderof any description (ie: player or console) attempts to tab complete. -
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 Map<Class<? extends Event>,Set<RegisteredListener>>PluginLoader. createRegisteredListeners(Listener listener, Plugin plugin)Creates and returns registered listeners for the event classes used in this listenerClass<? 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(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin)Registers the specified executor to the given event classvoidPluginManager. registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled)Registers the specified executor to the given event classvoidSimplePluginManager. registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin)voidSimplePluginManager. registerEvent(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 Map<Class<? extends Event>,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.
-