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

package com.hypixel.hytale.protocol.packets.world;

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

public enum RotationDirection
{
    Positive(0), 
    Negative(1);
    
    public static final RotationDirection[] VALUES;
    private final int value;
    
    private RotationDirection(final int value) {
        this.value = value;
    }
    
    public int getValue() {
        return this.value;
    }
    
    public static RotationDirection fromValue(final int value) {
        if (value >= 0 && value < RotationDirection.VALUES.length) {
            return RotationDirection.VALUES[value];
        }
        throw ProtocolException.invalidEnumValue("RotationDirection", value);
    }
    
    static {
        VALUES = values();
    }
}
