程序包 org.bukkit.event.player

# 类 PlayerRiptideEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerRiptideEvent

public class PlayerRiptideEvent extends PlayerEvent
当玩家在使用三叉戟上的激流附魔推动它们在空中飞行(需要在雨天才能在空中飞行)时触发本事件
什么是激流:

- 是三叉戟上的一个附魔
- 最高等级为III
- 用于三叉戟上, 可以在水中或下雨时投掷后推进玩家.
- 激流不会使三叉戟被抛出, 而会使玩家向前推进.
- 如果玩家未处在水中或所处地未下雨, 则玩家将无法投掷激流附魔的三叉戟

注意: 激流动作在客户端执行, 因此在此事件中操纵玩家可能会产生所不期望的影响.

原文: This event is fired when the player activates the riptide enchantment, using their trident to propel them through the air.
N.B. the riptide action is currently performed client side, so manipulating the player in this event may have undesired effects.

- ## 嵌套类概要

  ## 从类继承的嵌套类/接口 org.bukkit.event.Event

  `Event.Result`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.event.player.PlayerEvent

  `player`

- ## 构造器概要

  构造器
  构造器
  说明
  `PlayerRiptideEvent(@NotNull Player who, @NotNull ItemStack item)`
  已过时。
  `PlayerRiptideEvent(@NotNull Player who, @NotNull ItemStack item, @NotNull Vector velocity)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `static @NotNull HandlerList`
  `getHandlerList()`
  `@NotNull HandlerList`
  `getHandlers()`
  `@NotNull ItemStack`
  `getItem()`
  获取玩家使用的带激流附魔的三叉戟.
  `@NotNull Vector`
  `getVelocity()`
  Get the velocity applied to the player as a result of this riptide.

  ### 从类继承的方法 org.bukkit.event.player.PlayerEvent

  `getPlayer`

  ### 从类继承的方法 org.bukkit.event.Event

  `getEventName, isAsynchronous`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### PlayerRiptideEvent

    public PlayerRiptideEvent(@NotNull @NotNull Player who, @NotNull @NotNull ItemStack item, @NotNull @NotNull Vector velocity)

  - ### PlayerRiptideEvent

    @Deprecated public PlayerRiptideEvent(@NotNull @NotNull Player who, @NotNull @NotNull ItemStack item)
    已过时。

- ## 方法详细资料

  - ### getItem

    @NotNull public @NotNull ItemStack getItem()
    获取玩家使用的带激流附魔的三叉戟.

    原文: Gets the item containing the used enchantment.

    返回:
      包含激流附魔的 `三叉戟物品堆`.

  - ### getVelocity

    @NotNull public @NotNull Vector getVelocity()
    Get the velocity applied to the player as a result of this riptide.
    返回:
      the riptide velocity

  - ### getHandlers

    @NotNull public @NotNull HandlerList getHandlers()
    指定者:
      `getHandlers` 在类中 `Event`

  - ### getHandlerList

    @NotNull public static @NotNull HandlerList getHandlerList()