PlayerSleepInBed
Link to playersleepinbed
Wydarzenie PlayerSleepInBed jest uruchamiane za każdym razem, gdy gracz śnie. To wydarzenie może kontrolować, czy gracz jest w stanie uśpić przez ustawienie wyniku
.
Event Class
Link to event-class
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:
Typy wyników
Link to typy-wyników
- Nie masz jeszcze miejsca
- Nie masz już miejsca
- BEZPIECZEŃSTWO
- OK
- OTHER_PROBLEM
- Powierzchnia
ZenGetters
Link to zengetters
The following information can be retrieved from the event:
ZenGetter | Return 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 ciąg znaków (możliwe wartości są powyżej) |
ZenSetters
Link to zensetters
W wydarzeniu można ustawić następujące dane:
ZenSetter | Parameter Type |
---|---|
ZenSetter result | Parameter Type ciąg znaków (możliwe wartości są powyżej) |