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

package com.hypixel.hytale.protocol;

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

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