程序包 | 说明 |
---|---|
org.bukkit.event.player |
限定符和类型 | 类和说明 |
---|---|
class |
AsyncPlayerChatEvent
当玩家聊天时触发这个事件.
|
class |
PlayerAchievementAwardedEvent
已过时。
未来版本的Minecraft将不会有成就(取而代之的是进度).
|
class |
PlayerAdvancementDoneEvent
Called when a player has completed all criteria in an advancement.
|
class |
PlayerAnimationEvent
玩家动作事件.
|
class |
PlayerArmorStandManipulateEvent
Called when a player interacts with an armor stand and will either swap, retrieve or place an item.
|
class |
PlayerBedEnterEvent
玩家躺在床上时触发此事件.
|
class |
PlayerBedLeaveEvent
玩家离开床时触发此事件.
|
class |
PlayerBucketEmptyEvent
玩家用完一只桶后触发此事件.
|
class |
PlayerBucketEvent
当玩家使用桶时触发本事件.
|
class |
PlayerBucketFillEvent
水桶装满水事件.
|
class |
PlayerChangedMainHandEvent
当玩家在客户端设置改变主手时触发本事件.
|
class |
PlayerChangedWorldEvent
当玩家切换到另一个世界时触发此事件.
|
class |
PlayerChannelEvent
当玩家注册/注销一个新的插件通道时触发本事件
|
class |
PlayerChatEvent
已过时。
这个事件将被主线程触发,允许使用所有的 Bukkit API,不像
AsyncPlayerChatEvent .
监听这个事件迫使聊天等待主线程,会导致聊天消息延迟展现。建议使用线程安全的 |
class |
PlayerChatTabCompleteEvent
当玩家尝试补全聊天消息时触发本事件
|
class |
PlayerCommandPreprocessEvent
这个事件是,当一个玩家执行一个命令的时候将会被触发(也就是在聊天框里面输入信息以/开头的时候,算作命令,就会触发此事件)。
|
class |
PlayerDropItemEvent
玩家丢出物品事件.
|
class |
PlayerEditBookEvent
当玩家编辑或签名书与笔时触发。
|
class |
PlayerEggThrowEvent
玩家抛出鸡蛋时触发本事件,鸡蛋可能孵化.
|
class |
PlayerExpChangeEvent
当玩家经验值发生变化时调用此事件.
|
class |
PlayerFishEvent
当玩家钓鱼时触发本事件.
|
class |
PlayerGameModeChangeEvent
当玩家游戏模式发生变化时调用此事件.
|
class |
PlayerInteractAtEntityEvent
当玩家在实体上点击某实体上的某位置时触发此事件.
|
class |
PlayerInteractEntityEvent
当玩家点击一个实体时调用此事件.
|
class |
PlayerInteractEvent
当玩家对一个对象或空气进行交互时触发本事件, 可能在左右手交互时也会被触发
你可以使用
PlayerInteractEvent.getHand() 方法来确定是哪只手
如果是原版行为触发了本事件, 则本事件将会被取消(例如与空气进行交互)
原文:Represents an event that is called when a player interacts with an object or
air, potentially fired once for each hand. |
class |
PlayerItemBreakEvent
某玩家工具耐久消耗完毕时触发(比如铲子,打火石,铁制工具).
|
class |
PlayerItemConsumeEvent
This event will fire when a player is finishing consuming an item (food,
potion, milk bucket).
|
class |
PlayerItemHeldEvent
玩家手持某物品事件.
|
class |
PlayerItemMendEvent
Represents when a player has an item repaired via the Mending enchantment.
|
class |
PlayerJoinEvent
玩家进入服务器事件.
|
class |
PlayerKickEvent
玩家被服务器踢出事件.
|
class |
PlayerLevelChangeEvent
玩家等级改变事件.
|
class |
PlayerLocaleChangeEvent
当玩家改变他们的语言设置时触发本事件.
|
class |
PlayerLoginEvent
玩家尝试登录的事件
|
class |
PlayerMoveEvent
玩家移动事件.
|
class |
PlayerPickupArrowEvent
当玩家从地上捡起箭时触发本事件.
|
class |
PlayerPickupItemEvent
|
class |
PlayerPortalEvent
玩家将要被传送门传送的事件.
|
class |
PlayerQuitEvent
玩家离开服务器事件.
|
class |
PlayerRegisterChannelEvent
玩家注册通信通道之后立即触发此事件.
|
class |
PlayerResourcePackStatusEvent
当玩家对通过
Player.setResourcePack(java.lang.String) 发起的资源包请求采取动作时触发本事件. |
class |
PlayerRespawnEvent
玩家重生事件.
|
class |
PlayerShearEntityEvent
玩家剪羊毛时调用此事件.
|
class |
PlayerStatisticIncrementEvent
当玩家统计信息增长时触发本事件.
|
class |
PlayerSwapHandItemsEvent
玩家用快捷键互换主手和副手的物品时触发本事件.
|
class |
PlayerTeleportEvent
玩家传送事件.
|
class |
PlayerToggleFlightEvent
玩家切换飞行状态则调用此事件.
|
class |
PlayerToggleSneakEvent
玩家切换潜行状态则调用此事件.
|
class |
PlayerToggleSprintEvent
玩家切换疾跑状态时调用此事件
|
class |
PlayerUnregisterChannelEvent
当玩家注销插件通道时触发事件.
|
class |
PlayerVelocityEvent
玩家移动速度变化事件.
|