类 EntityPortalEnterEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityPortalEnterEvent

public class EntityPortalEnterEvent extends EntityEvent
当一个实体与传送门接触时触发本事件.
  • 构造器详细资料

    • EntityPortalEnterEvent

      public EntityPortalEnterEvent(Entity entity, Location location)
  • 方法详细资料

    • getLocation

      public Location getLocation()
      获取实体接触的传送门方块.

      原文:Gets the portal block the entity is touching

      返回:
      实体接触的传送门方块
    • getHandlers

      public HandlerList getHandlers()
      指定者:
      getHandlers 在类中 Event
    • getHandlerList

      public static HandlerList getHandlerList()