public static enum PlayerBedFailEnterEvent.FailReason extends Enum<PlayerBedFailEnterEvent.FailReason>
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 is obstructed.
|
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 | Field and Description |
---|---|
static PlayerBedFailEnterEvent.FailReason[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
static PlayerBedFailEnterEvent.FailReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlayerBedFailEnterEvent.FailReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerBedFailEnterEvent.FailReason NOT_POSSIBLE_HERE
public static final PlayerBedFailEnterEvent.FailReason 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 PlayerBedFailEnterEvent.FailReason TOO_FAR_AWAY
public static final PlayerBedFailEnterEvent.FailReason OBSTRUCTED
public static final PlayerBedFailEnterEvent.FailReason OTHER_PROBLEM
public static final PlayerBedFailEnterEvent.FailReason NOT_SAFE
public static final PlayerBedFailEnterEvent.FailReason[] VALUES
public static PlayerBedFailEnterEvent.FailReason[] values()
for (PlayerBedFailEnterEvent.FailReason c : PlayerBedFailEnterEvent.FailReason.values()) System.out.println(c);
public static PlayerBedFailEnterEvent.FailReason 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.