Contents
Class PlayerSomnolence
java.lang.Object
com.hypixel.hytale.builtin.beds.sleep.components.PlayerSomnolence
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
A component that represents the sleep state of a player entity.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PlayerSomnolenceA singleton instance representing a player who is fully awake.Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionEmpty Constructor for aPlayerSomnolenceinstance.PlayerSomnolence(PlayerSleep state) Default Constructor for aPlayerSomnolenceinstance. -
Method Summary
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
AWAKE
A singleton instance representing a player who is fully awake.
-
-
Constructor Details
-
PlayerSomnolence
public PlayerSomnolence()Empty Constructor for aPlayerSomnolenceinstance. -
PlayerSomnolence
Default Constructor for aPlayerSomnolenceinstance.- Parameters:
state- The sleep state of the player.
-
-
Method Details
-
getComponentType
- Returns:
- the component type for the
PlayerSomnolencecomponent.
-
getSleepState
- Returns:
- the current sleep state of the player.
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-