程序包 org.bukkit.event.entity

# 类 ExpBottleEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.ProjectileHitEvent
org.bukkit.event.entity.ExpBottleEvent

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

public class ExpBottleEvent extends ProjectileHitEvent
Called when a ThrownExpBottle hits and releases experience.

- ## 嵌套类概要

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

  `Event.Result`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.event.entity.EntityEvent

  `entity`

- ## 构造器概要

  构造器
  构造器
  说明
  `ExpBottleEvent(@NotNull ThrownExpBottle bottle, int exp)`
  已过时。
  `ExpBottleEvent(@NotNull ThrownExpBottle bottle, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, int exp)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull ThrownExpBottle`
  `getEntity()`
  返回这个事件所涉及的实体.
  `int`
  `getExperience()`
  This method retrieves the amount of experience to be created.
  `static @NotNull HandlerList`
  `getHandlerList()`
  `@NotNull HandlerList`
  `getHandlers()`
  `boolean`
  `getShowEffect()`
  This method indicates if the particle effect should be shown.
  `void`
  `setExperience(int exp)`
  This method sets the amount of experience to be created.
  `void`
  `setShowEffect(boolean showEffect)`
  This method sets if the particle effect will be shown.

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

  `getHitBlock, getHitBlockFace, getHitEntity, isCancelled, setCancelled`

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

  `getEntityType`

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

  `getEventName, isAsynchronous`

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

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

- ## 构造器详细资料

  - ### ExpBottleEvent

    @Deprecated public ExpBottleEvent(@NotNull @NotNull ThrownExpBottle bottle, int exp)
    已过时。

  - ### ExpBottleEvent

    public ExpBottleEvent(@NotNull @NotNull ThrownExpBottle bottle, @Nullable @Nullable Entity hitEntity, @Nullable @Nullable Block hitBlock, @Nullable @Nullable BlockFace hitFace, int exp)

- ## 方法详细资料

  - ### getEntity

    @NotNull public @NotNull ThrownExpBottle getEntity()
    从类复制的说明: `EntityEvent`
    返回这个事件所涉及的实体.

    原文: Returns the Entity involved in this event

    覆盖:
      `getEntity` 在类中 `ProjectileHitEvent`
    返回:
      涉及这个事件的实体

  - ### getShowEffect

    public boolean getShowEffect()
    This method indicates if the particle effect should be shown.
    返回:
      true if the effect will be shown, false otherwise

  - ### setShowEffect

    public void setShowEffect(boolean showEffect)
    This method sets if the particle effect will be shown.

    This does not change the experience created.

    参数:
      `showEffect` - true indicates the effect will be shown, false indicates no effect will be shown

  - ### getExperience

    public int getExperience()
    This method retrieves the amount of experience to be created.

    The number indicates a total amount to be divided into orbs.

    返回:
      the total amount of experience to be created

  - ### setExperience

    public void setExperience(int exp)
    This method sets the amount of experience to be created.

    The number indicates a total amount to be divided into orbs.

    参数:
      `exp` - the total amount of experience to be created

  - ### getHandlers

    @NotNull public @NotNull HandlerList getHandlers()
    覆盖:
      `getHandlers` 在类中 `ProjectileHitEvent`

  - ### getHandlerList

    @NotNull public static @NotNull HandlerList getHandlerList()