Interface BedRuleResult
Represents the result of a bed rule during
PlayerBedEnterEvent
and PlayerBedFailEnterEvent. Bed rules are responsible
for allowing players to sleep and to set their spawn point- Since:
- 1.21.11
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BedRuleResultUsed when the bed rule is allowedstatic final BedRuleResultUsed when the bed rule is set to always be deniedstatic final BedRuleResultUsed when the bed rule is denied due to there being too much light. -
Method Summary
-
Field Details
-
ALLOWED
-
TOO_MUCH_LIGHT
Used when the bed rule is denied due to there being too much light. This is the case during daytime without thunderstorms- Since:
- 1.21.11
-
NEVER
-
-
Method Details
-
success
boolean success()Returnstrueif this result is a success- Returns:
- whether this result is a success
- Since:
- 1.21.11
-