Cancellable
@Deprecated public class EntityPlaceEvent extends EntityEvent implements Cancellable
Event.Result
entity
Constructor | Description |
---|---|
EntityPlaceEvent(Entity entity,
Player player,
Block block,
BlockFace blockFace) |
Deprecated.
|
Modifier and Type | Method | 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, getEntityType
getEventName, isAsynchronous
@Nullable public Player getPlayer()
@NotNull public Block getBlock()
@NotNull 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 event@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.