Cancellable
@Deprecated public class EntityPlaceEvent extends EntityEvent implements Cancellable
Event.Result
entity
Constructor | Description |
---|---|
EntityPlaceEvent(@NotNull Entity entity,
@Nullable Player player,
@NotNull Block block,
@NotNull BlockFace blockFace) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull Block |
getBlock() |
Deprecated.
Returns the block that the entity was placed on
|
@NotNull BlockFace |
getBlockFace() |
Deprecated.
Returns the face of the block that the entity was placed on
|
static @NotNull HandlerList |
getHandlerList() |
Deprecated.
|
@NotNull HandlerList |
getHandlers() |
Deprecated.
|
@Nullable 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 @Nullable Player getPlayer()
@NotNull public @NotNull Block getBlock()
@NotNull public @NotNull 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 @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.