EntityPortalExitEvent
EntityPortalExitEvent
=> org.bukkit.event.Event
=> org.bukkit.event.entity.EntityEvent
=> org.bukkit.event.entity.EntityTeleportEvent
=> org.bukkit.event.entity.EntityPortalExitEvent
Called before an entity exits a portal.This event allows you to modify the velocity of the entity after they havesuccessfully exited the portal.当实体自传送门中走出时触发。通过监听本事件,可以修改实体走出传送门时的速度向量。
方法声明: public Vector getBefore()
方法签名: ()Lorg/bukkit/util/Vector;
Gets a copy of the velocity that the entity has before entering theportal.@return velocity of entity before entering the portal该方法用于获取涉事实体进入传送门前的速度向量的副本。@return 涉事实 体进入传送门前的速度向量。
方法声明: public Vector getAfter()
方法签名: ()Lorg/bukkit/util/Vector;
Gets a copy of the velocity that the entity will have after exiting theportal.@return velocity of entity after exiting the portal该方法用于获取涉事实体走出传送门后的速度向量的副本。@return 涉事实体走出传送门后的速度向量。
方法声明: public void setAfter(@NotNull Vector after)
方法签名: (Lorg/bukkit/util/Vector;)V
Sets the velocity that the entity will have after exiting the portal.@param after the velocity after exiting the portal该方法用于设置涉事实体走出传送门后的速度向量。@param after 涉事实体走出传送门后的速度向量。
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago