程序包 org.bukkit.event.player

# 类 PlayerBucketFishEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerBucketEntityEvent
org.bukkit.event.player.PlayerBucketFishEvent

所有已实现的接口:
  `Cancellable`

@Deprecated public class PlayerBucketFishEvent extends PlayerBucketEntityEvent
已过时。
Use the more generic `PlayerBucketEntityEvent`
This event is called whenever a player attempts to put a fish in a bucket.

- ## 嵌套类概要

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

  `Event.Result`

- ## 字段概要

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

  `player`

- ## 构造器概要

  构造器
  构造器
  说明
  `PlayerBucketFishEvent(@NotNull Player player, @NotNull Fish fish, @NotNull ItemStack waterBucket, @NotNull ItemStack fishBucket, @NotNull EquipmentSlot hand)`
  已过时。

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Fish`
  `getEntity()`
  已过时。
  Gets the fish involved with this event.
  `@NotNull ItemStack`
  `getFishBucket()`
  已过时。
  Use `PlayerBucketEntityEvent.getEntityBucket()`
  `@NotNull ItemStack`
  `getWaterBucket()`
  已过时。
  Use `PlayerBucketEntityEvent.getOriginalBucket()`

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

  `getEntityBucket, getHand, getHandlerList, getHandlers, getOriginalBucket, isCancelled, setCancelled`

  ### 从类继承的方法 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`

- ## 构造器详细资料

  - ### PlayerBucketFishEvent

    public PlayerBucketFishEvent(@NotNull @NotNull Player player, @NotNull @NotNull Fish fish, @NotNull @NotNull ItemStack waterBucket, @NotNull @NotNull ItemStack fishBucket, @NotNull @NotNull EquipmentSlot hand)
    已过时。

- ## 方法详细资料

  - ### getEntity

    @NotNull public @NotNull Fish getEntity()
    已过时。
    Gets the fish involved with this event.
    覆盖:
      `getEntity` 在类中 `PlayerBucketEntityEvent`
    返回:
      The fish involved with this event

  - ### getWaterBucket

    @NotNull @Deprecated public @NotNull ItemStack getWaterBucket()
    已过时。
    Use `PlayerBucketEntityEvent.getOriginalBucket()`
    Gets the bucket used. This refers to the bucket clicked with, ie `Material.WATER_BUCKET`.
    返回:
      The used bucket

  - ### getFishBucket

    @NotNull @Deprecated public @NotNull ItemStack getFishBucket()
    已过时。
    Use `PlayerBucketEntityEvent.getEntityBucket()`
    Gets the bucket that the fish will be put into. This refers to the bucket with the fish, ie `Material.PUFFERFISH_BUCKET`.
    返回:
      The bucket that the fish will be put into