Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.hanging.HangingPlaceEvent Class Reference
Inheritance diagram for org.bukkit.event.hanging.HangingPlaceEvent:
org.bukkit.event.hanging.HangingEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 HangingPlaceEvent (final Hanging hanging, final Player player, final Block block, final BlockFace blockFace)
 
Player getPlayer ()
 
Block getBlock ()
 
BlockFace getBlockFace ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.hanging.HangingEvent
Hanging getEntity ()
 
- 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 Member Functions inherited from org.bukkit.event.hanging.HangingEvent
 HangingEvent (final Hanging painting)
 
- Protected Attributes inherited from org.bukkit.event.hanging.HangingEvent
Hanging hanging
 

Detailed Description

Triggered when a hanging entity is created in the world

Definition at line 13 of file HangingPlaceEvent.java.

Member Function Documentation

Block org.bukkit.event.hanging.HangingPlaceEvent.getBlock ( )

Returns the block that the hanging entity was placed on

Returns
the block that the hanging entity was placed on

Definition at line 41 of file HangingPlaceEvent.java.

41  {
42  return block;
43  }
BlockFace org.bukkit.event.hanging.HangingPlaceEvent.getBlockFace ( )

Returns the face of the block that the hanging entity was placed on

Returns
the face of the block that the hanging entity was placed on

Definition at line 50 of file HangingPlaceEvent.java.

50  {
51  return blockFace;
52  }
Player org.bukkit.event.hanging.HangingPlaceEvent.getPlayer ( )

Returns the player placing the hanging entity

Returns
the player placing the hanging entity

Definition at line 32 of file HangingPlaceEvent.java.

32  {
33  return player;
34  }
boolean org.bukkit.event.hanging.HangingPlaceEvent.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 54 of file HangingPlaceEvent.java.

54  {
55  return cancelled;
56  }
void org.bukkit.event.hanging.HangingPlaceEvent.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 58 of file HangingPlaceEvent.java.

58  {
59  this.cancelled = cancel;
60  }

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