public class PlayerBedFailEnterEvent extends PlayerEvent implements Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
PlayerBedFailEnterEvent.FailReason |
Event.Resultplayer| Constructor and Description |
|---|
PlayerBedFailEnterEvent(@NotNull Player player,
@NotNull PlayerBedFailEnterEvent.FailReason failReason,
@NotNull Block bed,
boolean willExplode,
@Nullable net.kyori.adventure.text.Component message) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Block |
getBed() |
@NotNull PlayerBedFailEnterEvent.FailReason |
getFailReason() |
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@Nullable net.kyori.adventure.text.Component |
getMessage() |
boolean |
getWillExplode() |
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Cancel this event.
|
void |
setMessage(@Nullable net.kyori.adventure.text.Component message) |
void |
setWillExplode(boolean willExplode) |
getPlayercallEvent, getEventName, isAsynchronous@NotNull public @NotNull PlayerBedFailEnterEvent.FailReason getFailReason()
public boolean getWillExplode()
public void setWillExplode(boolean willExplode)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
NOTE: This does not cancel the player getting in the bed, but any messages/explosions that may occur because of the interaction.
setCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.