类 EntityPortalEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityTeleportEvent
org.bukkit.event.entity.EntityPortalEvent
- 所有已实现的接口:
Cancellable
当一个非玩家的实体被传送门传送时触发本事件
对于玩家请看 PlayerPortalEvent
原文:
Called when a non-player entity is about to teleport because it is in
contact with a portal.
For players see PlayerPortalEvent
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result -
字段概要
从类继承的字段 org.bukkit.event.entity.EntityEvent
entity -
构造器概要
构造器构造器说明EntityPortalEvent(Entity entity, Location from, Location to) EntityPortalEvent(Entity entity, Location from, Location to, int searchRadius) -
方法概要
修饰符和类型方法说明static HandlerListintGets the search radius value for finding an available portal.voidsetSearchRadius(int searchRadius) Set the Block radius to search in for available portals.从类继承的方法 org.bukkit.event.entity.EntityTeleportEvent
getFrom, getTo, isCancelled, setCancelled, setFrom, setTo从类继承的方法 org.bukkit.event.entity.EntityEvent
getEntity, getEntityType从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
EntityPortalEvent
-
EntityPortalEvent
-
-
方法详细资料
-
setSearchRadius
public void setSearchRadius(int searchRadius) Set the Block radius to search in for available portals.- 参数:
searchRadius- the radius in which to search for a portal from the location
-
getSearchRadius
public int getSearchRadius()Gets the search radius value for finding an available portal.- 返回:
- the currently set search radius
-
getHandlers
- 覆盖:
getHandlers在类中EntityTeleportEvent
-
getHandlerList
-