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

package com.hypixel.hytale.protocol;

import com.hypixel.hytale.protocol.io.ProtocolException;

public enum Rotation
{
    None(0), 
    Ninety(1), 
    OneEighty(2), 
    TwoSeventy(3);
    
    public static final Rotation[] VALUES;
    private final int value;
    
    private Rotation(final int value) {
        this.value = value;
    }
    
    public int getValue() {
        return this.value;
    }
    
    public static Rotation fromValue(final int value) {
        if (value >= 0 && value < Rotation.VALUES.length) {
            return Rotation.VALUES[value];
        }
        throw ProtocolException.invalidEnumValue("Rotation", value);
    }
    
    static {
        VALUES = values();
    }
}
