#654: Clarify conditions where a bed can explode

This commit is contained in:
Doc 2021-08-28 18:57:58 +10:00 committed by md_5
parent ca5b4b1ae6
commit ea7b3a0d80
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -1,5 +1,6 @@
package org.bukkit.event.player; package org.bukkit.event.player;
import org.bukkit.World;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
@ -20,8 +21,12 @@ public class PlayerBedEnterEvent extends PlayerEvent implements Cancellable {
*/ */
OK, OK,
/** /**
* The world doesn't allow sleeping (ex. Nether or The End). Entering * The world doesn't allow sleeping or saving the spawn point (eg,
* the bed is prevented and the bed explodes. * Nether, The End or Custom Worlds). This is based on
* {@link World#isBedWorks()} and {@link World#isNatural()}.
*
* Entering the bed is prevented and if {@link World#isBedWorks()} is
* false then the bed explodes.
*/ */
NOT_POSSIBLE_HERE, NOT_POSSIBLE_HERE,
/** /**