// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.builtin.beds.sleep.components;

import javax.annotation.Nullable;
import com.hypixel.hytale.builtin.beds.BedsPlugin;
import com.hypixel.hytale.component.ComponentType;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import com.hypixel.hytale.component.Component;

public class PlayerSomnolence implements Component<EntityStore>
{
    public static PlayerSomnolence AWAKE;
    private PlayerSleep state;
    
    public static ComponentType<EntityStore, PlayerSomnolence> getComponentType() {
        return BedsPlugin.getInstance().getPlayerSomnolenceComponentType();
    }
    
    public PlayerSomnolence() {
        this.state = PlayerSleep.FullyAwake.INSTANCE;
    }
    
    public PlayerSomnolence(final PlayerSleep state) {
        this.state = PlayerSleep.FullyAwake.INSTANCE;
        this.state = state;
    }
    
    public PlayerSleep getSleepState() {
        return this.state;
    }
    
    @Nullable
    @Override
    public Component<EntityStore> clone() {
        final PlayerSomnolence clone = new PlayerSomnolence();
        clone.state = this.state;
        return clone;
    }
    
    static {
        PlayerSomnolence.AWAKE = new PlayerSomnolence(PlayerSleep.FullyAwake.INSTANCE);
    }
}
