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

package com.hypixel.hytale.protocol;

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

public enum ItemArmorSlot
{
    Head(0), 
    Chest(1), 
    Hands(2), 
    Legs(3);
    
    public static final ItemArmorSlot[] VALUES;
    private final int value;
    
    private ItemArmorSlot(final int value) {
        this.value = value;
    }
    
    public int getValue() {
        return this.value;
    }
    
    public static ItemArmorSlot fromValue(final int value) {
        if (value >= 0 && value < ItemArmorSlot.VALUES.length) {
            return ItemArmorSlot.VALUES[value];
        }
        throw ProtocolException.invalidEnumValue("ItemArmorSlot", value);
    }
    
    static {
        VALUES = values();
    }
}
