Class PlayerSomnolence

java.lang.Object
com.hypixel.hytale.builtin.beds.sleep.components.PlayerSomnolence
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class PlayerSomnolence extends Object implements Component<EntityStore>
A component that represents the sleep state of a player entity.
  • Field Details

    • AWAKE

      @Nonnull public static final PlayerSomnolence AWAKE
      A singleton instance representing a player who is fully awake.
  • Constructor Details

    • PlayerSomnolence

      public PlayerSomnolence()
      Empty Constructor for a PlayerSomnolence instance.
    • PlayerSomnolence

      public PlayerSomnolence(@Nonnull PlayerSleep state)
      Default Constructor for a PlayerSomnolence instance.
      Parameters:
      state - The sleep state of the player.
  • Method Details