28 lines
655 B
Java
28 lines
655 B
Java
package com.hypixel.hytale.protocol.packets.buildertools;
|
|
|
|
import com.hypixel.hytale.protocol.io.ProtocolException;
|
|
|
|
public enum BuilderToolArgGroup {
|
|
Tool(0),
|
|
Brush(1);
|
|
|
|
public static final BuilderToolArgGroup[] VALUES = values();
|
|
private final int value;
|
|
|
|
private BuilderToolArgGroup(int value) {
|
|
this.value = value;
|
|
}
|
|
|
|
public int getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
public static BuilderToolArgGroup fromValue(int value) {
|
|
if (value >= 0 && value < VALUES.length) {
|
|
return VALUES[value];
|
|
} else {
|
|
throw ProtocolException.invalidEnumValue("BuilderToolArgGroup", value);
|
|
}
|
|
}
|
|
}
|