类 ExpBottleEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.ProjectileHitEvent
org.bukkit.event.entity.ExpBottleEvent
Called when a ThrownExpBottle hits and releases experience.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result
-
字段概要
从类继承的字段 org.bukkit.event.entity.EntityEvent
entity
-
构造器概要
-
方法概要
修饰符和类型方法说明返回这个事件所涉及的实体.int
This method retrieves the amount of experience to be created.static HandlerList
boolean
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, getHitEntity
从类继承的方法 org.bukkit.event.entity.EntityEvent
getEntityType
从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
ExpBottleEvent
-
-
方法详细资料
-
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
- 覆盖:
getHandlers
在类中ProjectileHitEvent
-
getHandlerList
-