@Deprecated public class EntityPlaceEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor and Description |
|---|
EntityPlaceEvent(Entity entity,
Player player,
Block block,
BlockFace blockFace)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlock()
Deprecated.
Returns the block that the entity was placed on
|
BlockFace |
getBlockFace()
Deprecated.
Returns the face of the block that the entity was placed on
|
static HandlerList |
getHandlerList()
Deprecated.
|
HandlerList |
getHandlers()
Deprecated.
|
Player |
getPlayer()
Deprecated.
Returns the player placing the entity
|
boolean |
isCancelled()
Deprecated.
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Deprecated.
Sets the cancellation state of this event.
|
getEntity, getEntityTypegetEventName, isAsynchronous@Nullable public Player getPlayer()
@NotNull public Block getBlock()
@NotNull public BlockFace getBlockFace()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.