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

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

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

public enum PaletteType
{
    Empty(0), 
    HalfByte(1), 
    Byte(2), 
    Short(3);
    
    public static final PaletteType[] VALUES;
    private final int value;
    
    private PaletteType(final int value) {
        this.value = value;
    }
    
    public int getValue() {
        return this.value;
    }
    
    public static PaletteType fromValue(final int value) {
        if (value >= 0 && value < PaletteType.VALUES.length) {
            return PaletteType.VALUES[value];
        }
        throw ProtocolException.invalidEnumValue("PaletteType", value);
    }
    
    static {
        VALUES = values();
    }
}
