类 EntityPortalExitEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityTeleportEvent
org.bukkit.event.entity.EntityPortalExitEvent
- 所有已实现的接口:
Cancellable
Called before an entity exits a portal.
This event allows you to modify the velocity of the entity after they have successfully exited the portal.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result
-
字段概要
从类继承的字段 org.bukkit.event.entity.EntityEvent
entity
-
构造器概要
-
方法概要
修饰符和类型方法说明getAfter()
Gets a copy of the velocity that the entity will have after exiting the portal.Gets a copy of the velocity that the entity has before entering the portal.static HandlerList
void
Sets the velocity that the entity will have after exiting the portal.从类继承的方法 org.bukkit.event.entity.EntityTeleportEvent
getFrom, getTo, isCancelled, setCancelled, setFrom, setTo
从类继承的方法 org.bukkit.event.entity.EntityEvent
getEntity, getEntityType
从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
EntityPortalExitEvent
-
-
方法详细资料
-
getBefore
Gets a copy of the velocity that the entity has before entering the portal.- 返回:
- velocity of entity before entering the portal
-
getAfter
Gets a copy of the velocity that the entity will have after exiting the portal.- 返回:
- velocity of entity after exiting the portal
-
setAfter
Sets the velocity that the entity will have after exiting the portal.- 参数:
after
- the velocity after exiting the portal
-
getHandlers
- 覆盖:
getHandlers
在类中EntityTeleportEvent
-
getHandlerList
-