public class PlayerLeaveSleepEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerLeaveSleepEvent(Player player,
Block bed) |
| Modifier and Type | Method and Description |
|---|---|
Block |
bed()
Gets the bed that the player tried to leave
|
void |
cancel(boolean cancelled) |
boolean |
isIgnored() |
playerpublic PlayerLeaveSleepEvent(Player player, Block bed)
public boolean isIgnored()
isIgnored in interface Cancellablepublic void cancel(boolean cancelled)
cancel in interface Cancellablecancelled - set the cancellation state of the eventCopyright © 2016. All rights reserved.