PlayerSleepInBed

Link to playersleepinbed

El Evento PlayerSleepInBed se activa cada vez que un jugador duerme. Este evento puede controlar si el jugador es capaz de dormir estableciendo resultado.

You will need to cast the event in the function header as this class:
crafttweaker.event.PlayerSleepInBedEvent
You can, of course, also import the class before and use that name then.

Event interface extensions

Link to event-interface-extensions

PlayerSleepInBed Events implement the following interfaces and are able to call all of their methods/getters/setters as well:

Tipos de resultado

Link to tipos-de-resultado

  • NOT_POSSIBLE
  • NOT_POSSIBLE_NOW
  • NOT_SAPE
  • Ok
  • Otro_PROBLEM
  • FARE_DESC

The following information can be retrieved from the event:

ZenGetterReturn Type
ZenGetter
x
Return Type
int
ZenGetter
y
Return Type
int
ZenGetter
z
Return Type
int
ZenGetter
player
Return Type
IPlayer
ZenGetter
result
Return Type
cadena (los valores posibles están arriba)

Lo siguiente puede establecerse en el evento:

ZenSetterParameter Type
ZenSetter
result
Parameter Type
cadena (los valores posibles están arriba)