Package io.papermc.paper.block.bed
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-
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
Used when the bed rule is 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 -
NEVER
Used when the bed rule is set to always be denied
-
-
Method Details
-
success
boolean success()Returnstrueif this result is a success- Returns:
- whether this result is a success
-