org.bukkit.event.player.PlayerBedLeaveEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chest-server Show documentation
Show all versions of chest-server Show documentation
A spigot fork to kotlin structure and news.
The newest version!
package org.bukkit.event.player;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
/**
* This event is fired when the player is leaving a bed.
*/
public class PlayerBedLeaveEvent extends PlayerEvent {
private static final HandlerList handlers = new HandlerList();
private final Block bed;
public PlayerBedLeaveEvent(final Player who, final Block bed) {
super(who);
this.bed = bed;
}
public static HandlerList getHandlerList() {
return handlers;
}
/**
* Returns the bed block involved in this event.
*
* @return the bed block involved in this event
*/
public Block getBed() {
return bed;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy