Event List
- cn.nukkit.event.Event Collectively, all events
- cn.nukkit.event.block.AnvilDamageEvent Anvil receives damage (durability reduced)
- cn.nukkit.event.server.BatchPacketsEvent Send packets in batches
- cn.nukkit.event.block.BellRingEvent Ring the bell
- cn.nukkit.event.block.BigDripleafTiltChangeEvent Change of falling state of large drooping leaf
- cn.nukkit.event.block.BlockBreakEvent The block is broken
- cn.nukkit.event.block.BlockBurnEvent Block burned
- cn.nukkit.event.block.BlockEvent Collectively, all block events
- cn.nukkit.event.block.BlockExplodeEvent The block was blown up
- cn.nukkit.event.block.BlockExplosionPrimeEvent Block explosion
- cn.nukkit.event.block.BlockFadeEvent Block disappears (leaves wither, etc.)
- cn.nukkit.event.block.BlockFallEvent Block falling (sand, gravel, anvil, etc.)
- cn.nukkit.event.block.BlockFormEvent Block formation
- cn.nukkit.event.block.BlockFromToEvent Block movement
- cn.nukkit.event.block.BlockGrowEvent Block growth
- cn.nukkit.event.block.BlockHarvestEvent Block is harvested
- cn.nukkit.event.block.BlockIgniteEvent The block is ignited
- cn.nukkit.event.block.BlockPistonChangeEvent Piston state change
- cn.nukkit.event.block.BlockPistonEvent Piston event (abandoned)
- cn.nukkit.event.block.BlockPlaceEvent Block is prevented
- cn.nukkit.event.block.BlockRedstoneEvent Red stone state change
- cn.nukkit.event.block.BlockSpreadEvent Block spread
- cn.nukkit.event.blockstate.BlockStateRepairEvent Bad blockstate fixed
- cn.nukkit.event.blockstate.BlockStateRepairFinishEvent Bad blockstate completed repair
- cn.nukkit.event.block.BlockUpdateEvent Block update
- cn.nukkit.event.inventory.BrewEvent Brewing table work
- cn.nukkit.event.inventory.CampfireSmeltEvent Campfire work
- cn.nukkit.event.block.CauldronFilledByDrippingLiquidEvent The medicine refining pot is filled with water dripping from the dripping stone cone
- cn.nukkit.event.level.ChunkEvent Collectively, block events
- cn.nukkit.event.level.ChunkLoadEvent Block loading
- cn.nukkit.event.level.ChunkPopulateEvent The populate phase of block generation is completed
- cn.nukkit.event.level.ChunkUnloadEvent Block unloading
- cn.nukkit.event.command.CommandBlockExecuteEvent Command block execute command
- cn.nukkit.event.block.ComposterEmptyEvent Compost bucket empty
- cn.nukkit.event.block.ComposterFillEvent Fill compost bucket
- cn.nukkit.event.block.ConduitActivateEvent Surge core activation
- cn.nukkit.event.block.ConduitDeactivateEvent Surge core stop
- cn.nukkit.event.inventory.CraftItemEvent Synthetic item
- cn.nukkit.event.entity.CreatureSpawnEvent Biogenesis
- cn.nukkit.event.entity.CreeperPowerEvent Coolie is afraid of charging
- cn.nukkit.event.server.DataPacketReceiveEvent Receive packets from clients
- cn.nukkit.event.server.DataPacketSendEvent Send packets to clients
- cn.nukkit.event.block.DoorToggleEvent Open and close the door
- cn.nukkit.event.inventory.EnchantItemEvent Enchant item
- cn.nukkit.event.entity.EntityArmorChangeEvent Entity replacement armor
- cn.nukkit.event.entity.EntityBlockChangeEvent Entity replacement block
- cn.nukkit.event.entity.EntityCombustByBlockEvent Entity ignited by block
- cn.nukkit.event.entity.EntityCombustByEntityEvent Entity is ignited by another entity
- cn.nukkit.event.entity.EntityCombustEvent General term of entity ignition event
- cn.nukkit.event.entity.EntityDamageBlockedEvent Entity is blocked by shield
- cn.nukkit.event.entity.EntityDamageByBlockEvent Entity is damaged by block damage
- cn.nukkit.event.entity.EntityDamageByChildEntityEvent Entity is injured by young entity damage
- cn.nukkit.event.entity.EntityDamageByEntityEvent Entity is damage by another entity
- cn.nukkit.event.entity.EntityDamageEvent A general term for events in which entity are damage
- cn.nukkit.event.entity.EntityDeathEvent Death of entity
- cn.nukkit.event.entity.EntityDespawnEvent Entity disappears (unloaded or dead)
- cn.nukkit.event.entity.EntityEffectRemoveEvent Entity remove potion effect
- cn.nukkit.event.entity.EntityEffectUpdateEvent Entity potion effect update
- cn.nukkit.event.vehicle.EntityEnterVehicleEvent Player enters the vehicle
- cn.nukkit.event.entity.EntityEvent Collectively, all entity events
- cn.nukkit.event.vehicle.EntityExitVehicleEvent Player exits the vehicle
- cn.nukkit.event.entity.EntityExplodeEvent Entity explosion
- cn.nukkit.event.entity.EntityExplosionPrimeEvent Entity starts to explode
- cn.nukkit.event.entity.EntityFallEvent Entity falling
- cn.nukkit.event.entity.EntityInteractEvent Entity interacts with other entity or block
- cn.nukkit.event.entity.EntityInventoryChangeEvent Entity inventory change
- cn.nukkit.event.entity.EntityLevelChangeEvent Entity level change
- cn.nukkit.event.entity.EntityMotionEvent Entity motion
- cn.nukkit.event.entity.EntityMoveByPistonEvent The entity is pushed by the piston
- cn.nukkit.event.entity.EntityPortalEnterEvent Entity enters the portal
- cn.nukkit.event.entity.EntityRegainHealthEvent Entity reincarnation
- cn.nukkit.event.entity.EntityShootBowEvent Entity uses bow to shoot arrows
- cn.nukkit.event.entity.EntityShootCrossbowEvent Entity uses crossbow archery
- cn.nukkit.event.entity.EntitySpawnEvent Entity generation
- cn.nukkit.event.entity.EntityTeleportEvent Entity transmission
- cn.nukkit.event.entity.EntityVehicleEnterEvent Entity entry vehicle
- cn.nukkit.event.entity.EntityVehicleExitEvent Entity exiting vehicle
- cn.nukkit.event.entity.ExplosionPrimeEvent Entity explosion
- cn.nukkit.event.inventory.FurnaceBurnEvent Furnace combustion
- cn.nukkit.event.inventory.FurnaceSmeltEvent Furnace synthesis
- cn.nukkit.event.inventory.GrindstoneEvent Stone cutter synthesis
- cn.nukkit.event.inventory.InventoryClickEvent Player clicks on the inventory
- cn.nukkit.event.inventory.InventoryCloseEvent Player closes inventory
- cn.nukkit.event.inventory.InventoryEvent A general term for events in the inventory
- cn.nukkit.event.inventory.InventoryMoveItemEvent Not a player moves item in inventory
- cn.nukkit.event.inventory.InventoryOpenEvent Player opens inventory
- cn.nukkit.event.inventory.InventoryPickupArrowEvent Inventory pick up arrow
- cn.nukkit.event.inventory.InventoryPickupItemEvent Inventory pick up item
- cn.nukkit.event.inventory.InventoryPickupTridentEvent Pick up Trident in inventory
- cn.nukkit.event.inventory.InventoryTransactionEvent Inventory item moved
- cn.nukkit.event.entity.ItemDespawnEvent Item entity disappears (for reasons such as too long)
- cn.nukkit.event.block.ItemFrameDropItemEvent The item in the item display box falls out as a entity
- cn.nukkit.event.entity.ItemSpawnEvent Item entity generation
- cn.nukkit.event.block.LeavesDecayEvent Leaf rot
- cn.nukkit.event.block.LecternDropBookEvent Books falling out of the platform are entity
- cn.nukkit.event.block.LecternPageChangeEvent Podium change page
- cn.nukkit.event.block.LecternPlaceBookEvent Books are placed on the platform
- cn.nukkit.event.level.LevelEvent General term of world events
- cn.nukkit.event.level.LevelInitEvent World initialization
- cn.nukkit.event.level.LevelLoadEvent World load
- cn.nukkit.event.level.LevelSaveEvent World preservation
- cn.nukkit.event.level.LevelUnloadEvent World uninstall
- cn.nukkit.event.weather.LightningStrikeEvent Thunder
- cn.nukkit.event.block.LiquidFlowEvent Fluid flow
- cn.nukkit.event.player.PlayerAchievementAwardedEvent Player gains achievements
- cn.nukkit.event.player.PlayerAnimationEvent Player plays animation or expression
- cn.nukkit.event.player.PlayerAsyncPreLoginEvent Player login asynchronously
- cn.nukkit.event.player.PlayerBedEnterEvent Player goes to bed
- cn.nukkit.event.player.PlayerBedLeaveEvent Player gets out of bed
- cn.nukkit.event.player.PlayerBlockPickEvent Player picks up block
- cn.nukkit.event.player.PlayerBucketEmptyEvent Player empties the bucket
- cn.nukkit.event.player.PlayerBucketFillEvent Player fills the bucket
- cn.nukkit.event.player.PlayerChangeSkinEvent Player changes skin
- cn.nukkit.event.player.PlayerChatEvent Player chat
- cn.nukkit.event.player.PlayerChunkRequestEvent Client requests a block data
- cn.nukkit.event.player.PlayerCommandPreprocessEvent Player command processing
- cn.nukkit.event.player.PlayerCreationEvent Player creation
- cn.nukkit.event.server.PlayerDataSerializeEvent Serialize player data
- cn.nukkit.event.player.PlayerDeathEvent Player dies
- cn.nukkit.event.player.PlayerDialogRespondedEvent Player response dialog box
- cn.nukkit.event.player.PlayerDropItemEvent Player throws out item
- cn.nukkit.event.player.PlayerEatFoodEvent Player eats
- cn.nukkit.event.player.PlayerEditBookEvent Player edits books
- cn.nukkit.event.player.PlayerEvent All player worlds collectively
- cn.nukkit.event.player.PlayerExperienceChangeEvent Player experience value change
- cn.nukkit.event.player.PlayerFishEvent Player fishing
- cn.nukkit.event.player.PlayerFoodLevelChangeEvent Player hunger value changes
- cn.nukkit.event.player.PlayerFormRespondedEvent Player response form
- cn.nukkit.event.player.PlayerFreezeEvent Player is frozen (light snow)
- cn.nukkit.event.player.PlayerGameModeChangeEvent Player switches game mode
- cn.nukkit.event.player.PlayerGlassBottleFillEvent Player fills the glass bottle
- cn.nukkit.event.player.PlayerInteractEntityEvent Player interacts with entity
- cn.nukkit.event.player.PlayerInteractEvent Player interacts with block (long press air, right click stand-alone, left click damage, right click air, etc.)
- cn.nukkit.event.player.PlayerInvalidMoveEvent Player moves illegally
- cn.nukkit.event.player.PlayerItemConsumeEvent Player consumes item (eating, drinking potions, etc.)
- cn.nukkit.event.player.PlayerItemHeldEvent Player picks up item (change handheld item)
- cn.nukkit.event.player.PlayerJoinEvent Player enters the game
- cn.nukkit.event.player.PlayerJumpEvent Player jumps
- cn.nukkit.event.player.PlayerKickEvent Player is kicked out of the game
- cn.nukkit.event.player.PlayerLocallyInitializedEvent The client is loaded when player enters the server
- cn.nukkit.event.player.PlayerLoginEvent Player login
- cn.nukkit.event.player.PlayerMapInfoRequestEvent Player requests map (item) data
- cn.nukkit.event.player.PlayerMessageEvent Player send messages (chat or command)
- cn.nukkit.event.player.PlayerMouseOverEntityEvent Player mouse on entity
- cn.nukkit.event.player.PlayerMoveEvent Player Mobile
- cn.nukkit.event.player.PlayerPreLoginEvent Player pre login
- cn.nukkit.event.player.PlayerQuitEvent Player exit
- cn.nukkit.event.player.PlayerRespawnEvent Player rebirth
- cn.nukkit.event.player.PlayerServerSettingsRequestEvent Player requests server settings on the setup page
- cn.nukkit.event.player.PlayerSettingsRespondedEvent Player responds to server settings on the settings page
- cn.nukkit.event.player.PlayerShowCreditsEvent Player requests to display the information of another player
- cn.nukkit.event.player.PlayerTeleportEvent Player Teleport
- cn.nukkit.event.player.PlayerToggleFlightEvent Player switches flight status
- cn.nukkit.event.player.PlayerToggleGlideEvent Player switches glide status
- cn.nukkit.event.player.PlayerToggleSneakEvent Player switches stealth status
- cn.nukkit.event.player.PlayerToggleSpinAttackEvent Player switches the rotation attack form
- cn.nukkit.event.player.PlayerToggleSprintEvent Player switches sprint status
- cn.nukkit.event.player.PlayerToggleSwimEvent Player switches swimming status
- cn.nukkit.event.inventory.PlayerTypingAnvilInventoryEvent Player is typing on the anvil inventory
- cn.nukkit.event.plugin.PluginDisableEvent Plugin uninstall
- cn.nukkit.event.plugin.PluginEnableEvent Plugin startup
- cn.nukkit.event.plugin.PluginEvent A general term for player events
- cn.nukkit.event.potion.PotionApplyEvent Entity is added with potion effect
- cn.nukkit.event.potion.PotionCollideEvent Potion effect conflict
- cn.nukkit.event.potion.PotionEvent General term of potion effect events
- cn.nukkit.event.entity.ProjectileHitEvent Projectile concentration entity
- cn.nukkit.event.entity.ProjectileLaunchEvent The projectile was launched
- cn.nukkit.event.server.QueryRegenerateEvent MotdInformation regeneration
- cn.nukkit.event.redstone.RedstoneUpdateEvent Redstone renewal
- cn.nukkit.event.server.RemoteServerCommandEvent Remote rcon command
- cn.nukkit.event.inventory.RepairItemEvent Item is repaired
- cn.nukkit.event.command.ScoreboardEvent A general term for scoreboard events
- cn.nukkit.event.command.ScoreboardObjectiveChangeEvent Scoreboard objective object change
- cn.nukkit.event.command.ScoreboardScoreChangeEvent Scoreboard score change
- cn.nukkit.event.server.ServerCommandEvent Server commands (console)
- cn.nukkit.event.server.ServerEvent Collectively, server events
- cn.nukkit.event.server.ServerStartedEvent Server started
- cn.nukkit.event.server.ServerStopEvent Server stop
- cn.nukkit.event.block.SignChangeEvent Text change of notice board
- cn.nukkit.event.block.SignColorChangeEvent Color change of notice board
- cn.nukkit.event.block.SignGlowEvent Brightness change of notice board (luminous ink bag)
- cn.nukkit.event.inventory.SmithingTableEvent Forging table synthesis
- cn.nukkit.event.level.SpawnChangeEvent Rebirth point change
- cn.nukkit.event.inventory.StartBrewEvent Brewing table starts brewing
- cn.nukkit.event.level.StructureGrowEvent Structural growth (seedlings grow into trees, etc.)
- cn.nukkit.event.level.ThunderChangeEvent Thunderstorm change
- cn.nukkit.event.block.TurtleEggHatchEvent Hatching of turtle eggs completed
- cn.nukkit.event.vehicle.VehicleCreateEvent Vehicle created
- cn.nukkit.event.vehicle.VehicleDamageByEntityEvent Vehicle attacked by entity
- cn.nukkit.event.vehicle.VehicleDamageEvent A general term for vehicle damage events
- cn.nukkit.event.vehicle.VehicleDestroyByEntityEvent Vehicle destroyed by entity
- cn.nukkit.event.vehicle.VehicleDestroyEvent A general term for the destruction of vehicles
- cn.nukkit.event.vehicle.VehicleEvent General term of vehicle events
- cn.nukkit.event.vehicle.VehicleMoveEvent Vehicle movement
- cn.nukkit.event.vehicle.VehicleUpdateEvent Vehicle update
- cn.nukkit.event.block.WaterFrostEvent Water freezes to ice
- cn.nukkit.event.level.WeatherChangeEvent Weather change
- cn.nukkit.event.level.WeatherEvent General term of weather events
If an event does not exist
Usually, the events you want to find exist in the above list. Please make good use of the search function to find patiently.
If you are sure you cannot find it, please consider the following points:
- Whether the event you are looking for is a derivative or variant of an event, for example, right-click the block event is
PlayerInteractEvent
You only need to listen to this event and judgegetAction()
The return value of the function - Whether the event you are looking for is provided by a plugin. If so, you can directly listen to the complete class name of the event of the corresponding plugin
- Do you really need relevant events for your purpose? Can you use timed polling, delay detection and other methods to replace them
If the above steps are considered, pls give us feedback at PNX issue .
© PowerNukkitX Dev team