Class PlayerChangeStateEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.PlayerChangeStateEvent
Called when a player changes this state. For example, this happens if a player
starts swimming, goes to bed or sits on a chair.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the new player state.Gets the old player state.Methods inherited from class net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Method Details
-
getOldState
Gets the old player state.- Returns:
- the old player state.
-
getNewState
Gets the new player state.- Returns:
- the new player state.
-