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

package com.hypixel.hytale.protocol;

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

public enum MovementDirection
{
    None(0), 
    Forward(1), 
    Back(2), 
    Left(3), 
    Right(4), 
    ForwardLeft(5), 
    ForwardRight(6), 
    BackLeft(7), 
    BackRight(8);
    
    public static final MovementDirection[] VALUES;
    private final int value;
    
    private MovementDirection(final int value) {
        this.value = value;
    }
    
    public int getValue() {
        return this.value;
    }
    
    public static MovementDirection fromValue(final int value) {
        if (value >= 0 && value < MovementDirection.VALUES.length) {
            return MovementDirection.VALUES[value];
        }
        throw ProtocolException.invalidEnumValue("MovementDirection", value);
    }
    
    static {
        VALUES = values();
    }
}
