Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PlayerBedLeaveEvent.java
1 package org.bukkit.event.player;
2 
3 import org.bukkit.block.Block;
4 import org.bukkit.entity.Player;
6 
7 /**
8  * This event is fired when the player is leaving a bed.
9  */
10 public class PlayerBedLeaveEvent extends PlayerEvent {
11  private static final HandlerList handlers = new HandlerList();
12  private final Block bed;
13 
14  public PlayerBedLeaveEvent(final Player who, final Block bed) {
15  super(who);
16  this.bed = bed;
17  }
18 
19  /**
20  * Returns the bed block involved in this event.
21  *
22  * @return the bed block involved in this event
23  */
24  public Block getBed() {
25  return bed;
26  }
27 
28  @Override
29  public HandlerList getHandlers() {
30  return handlers;
31  }
32 
33  public static HandlerList getHandlerList() {
34  return handlers;
35  }
36 }