Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.painting.PaintingPlaceEvent Class Reference
Inheritance diagram for org.bukkit.event.painting.PaintingPlaceEvent:
org.bukkit.event.painting.PaintingEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 PaintingPlaceEvent (final Painting painting, 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.painting.PaintingEvent
Painting getPainting ()
 
- 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.painting.PaintingEvent
 PaintingEvent (final Painting painting)
 
- Protected Attributes inherited from org.bukkit.event.painting.PaintingEvent
Painting painting
 

Detailed Description

Triggered when a painting is created in the world

Deprecated:
Use org.bukkit.event.hanging.HangingPlaceEvent instead.

Definition at line 18 of file PaintingPlaceEvent.java.

Member Function Documentation

Block org.bukkit.event.painting.PaintingPlaceEvent.getBlock ( )

Returns the block that the painting was placed on

Returns
Block returns the block painting placed on

Definition at line 46 of file PaintingPlaceEvent.java.

46  {
47  return block;
48  }
BlockFace org.bukkit.event.painting.PaintingPlaceEvent.getBlockFace ( )

Returns the face of the block that the painting was placed on

Returns
BlockFace returns the face of the block the painting was placed on

Definition at line 56 of file PaintingPlaceEvent.java.

56  {
57  return blockFace;
58  }
Player org.bukkit.event.painting.PaintingPlaceEvent.getPlayer ( )

Returns the player placing the painting

Returns
Entity returns the player placing the painting

Definition at line 37 of file PaintingPlaceEvent.java.

37  {
38  return player;
39  }
boolean org.bukkit.event.painting.PaintingPlaceEvent.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 60 of file PaintingPlaceEvent.java.

60  {
61  return cancelled;
62  }
void org.bukkit.event.painting.PaintingPlaceEvent.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 64 of file PaintingPlaceEvent.java.

64  {
65  this.cancelled = cancel;
66  }

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