public class EntityPortalEnterEvent extends Object implements EntityEvent, Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityPortalEnterEvent.PortalType |
| Constructor and Description |
|---|
EntityPortalEnterEvent(Entity entity,
EntityPortalEnterEvent.PortalType type) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getEntity() |
EntityPortalEnterEvent.PortalType |
getPortalType() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
public EntityPortalEnterEvent(Entity entity, EntityPortalEnterEvent.PortalType type)
public EntityPortalEnterEvent.PortalType getPortalType()
public Entity getEntity()
getEntity in interface EntityEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2018 NukkitX. All rights reserved.