public class PortalCreateEvent extends WorldEvent implements Cancellable
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
PortalCreateEvent.CreateReason
An enum to specify the various reasons for a portal's creation
|
Event.Result| コンストラクタと説明 |
|---|
PortalCreateEvent(Collection<Block> blocks,
World world,
PortalCreateEvent.CreateReason reason) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
ArrayList<Block> |
getBlocks()
Gets an array list of all the blocks associated with the created portal
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
PortalCreateEvent.CreateReason |
getReason()
Gets the reason for the portal's creation
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
getWorldgetEventName, isAsynchronouspublic PortalCreateEvent(Collection<Block> blocks, World world, PortalCreateEvent.CreateReason reason)
public ArrayList<Block> getBlocks()
public boolean isCancelled()
CancellableisCancelled インタフェース内 Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled インタフェース内 Cancellablecancel - true if you wish to cancel this eventpublic PortalCreateEvent.CreateReason getReason()
public HandlerList getHandlers()
getHandlers クラス内 Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.