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