HangingPlaceEvent
instead.@Deprecated public class PaintingPlaceEvent extends PaintingEvent implements Cancellable
Event.Result
painting
Constructor and Description |
---|
PaintingPlaceEvent(Painting painting,
Player player,
Block block,
BlockFace blockFace)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Block |
getBlock()
Deprecated.
Returns the block that the painting was placed on
|
BlockFace |
getBlockFace()
Deprecated.
Returns the face of the block that the painting was placed on
|
static HandlerList |
getHandlerList()
Deprecated.
|
HandlerList |
getHandlers()
Deprecated.
|
Player |
getPlayer()
Deprecated.
Returns the player placing the painting
|
boolean |
isCancelled()
Deprecated.
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Deprecated.
Sets the cancellation state of this event.
|
getPainting
getEventName, isAsynchronous
public Player getPlayer()
public Block getBlock()
public BlockFace getBlockFace()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.