Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.EntityCreatePortalEvent Class Reference
Inheritance diagram for org.bukkit.event.entity.EntityCreatePortalEvent:
org.bukkit.event.entity.EntityEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 EntityCreatePortalEvent (final LivingEntity what, final List< BlockState > blocks, final PortalType type)
 
LivingEntity getEntity ()
 
List< BlockStategetBlocks ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
PortalType getPortalType ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityEvent
 EntityEvent (final Entity what)
 
Entity getEntity ()
 
EntityType getEntityType ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.entity.EntityEvent
Entity entity
 

Detailed Description

Thrown when a Living Entity creates a portal in a world.

Definition at line 13 of file EntityCreatePortalEvent.java.

Member Function Documentation

List<BlockState> org.bukkit.event.entity.EntityCreatePortalEvent.getBlocks ( )

Gets a list of all blocks associated with the portal.

Returns
List of blocks that will be changed.

Definition at line 36 of file EntityCreatePortalEvent.java.

36  {
37  return blocks;
38  }
PortalType org.bukkit.event.entity.EntityCreatePortalEvent.getPortalType ( )

Gets the type of portal that is trying to be created.

Returns
Type of portal.

Definition at line 53 of file EntityCreatePortalEvent.java.

53  {
54  return type;
55  }
boolean org.bukkit.event.entity.EntityCreatePortalEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 40 of file EntityCreatePortalEvent.java.

40  {
41  return cancelled;
42  }
void org.bukkit.event.entity.EntityCreatePortalEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 44 of file EntityCreatePortalEvent.java.

44  {
45  this.cancelled = cancel;
46  }

The documentation for this class was generated from the following file: