public static enum PlayerBedEnterEvent.BedEnterResult extends Enum<PlayerBedEnterEvent.BedEnterResult>
Enum Constant and Description |
---|
NOT_POSSIBLE_HERE
The world doesn't allow sleeping (ex.
|
NOT_POSSIBLE_NOW
Entering the bed is prevented due to it not being night nor
thundering currently.
|
NOT_SAFE
Entering the bed is prevented due to there being monsters nearby.
|
OBSTRUCTED
Bed was obstructed.
|
OK
The player will enter the bed.
|
OTHER_PROBLEM
Entering the bed is prevented due to there being some other problem.
|
TOO_FAR_AWAY
Entering the bed is prevented due to the player being too far away.
|
Modifier and Type | Method and Description |
---|---|
static PlayerBedEnterEvent.BedEnterResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlayerBedEnterEvent.BedEnterResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerBedEnterEvent.BedEnterResult OK
public static final PlayerBedEnterEvent.BedEnterResult NOT_POSSIBLE_HERE
public static final PlayerBedEnterEvent.BedEnterResult NOT_POSSIBLE_NOW
If the event is forcefully allowed during daytime, the player will enter the bed (and set its bed location), but might get immediately thrown out again.
public static final PlayerBedEnterEvent.BedEnterResult TOO_FAR_AWAY
public static final PlayerBedEnterEvent.BedEnterResult OBSTRUCTED
public static final PlayerBedEnterEvent.BedEnterResult NOT_SAFE
public static final PlayerBedEnterEvent.BedEnterResult OTHER_PROBLEM
public static PlayerBedEnterEvent.BedEnterResult[] values()
for (PlayerBedEnterEvent.BedEnterResult c : PlayerBedEnterEvent.BedEnterResult.values()) System.out.println(c);
public static PlayerBedEnterEvent.BedEnterResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021. All rights reserved.