33 lines
736 B
Java
33 lines
736 B
Java
package com.hypixel.hytale.protocol.packets.setup;
|
|
|
|
import com.hypixel.hytale.protocol.io.ProtocolException;
|
|
|
|
public enum ClientFeature {
|
|
SplitVelocity(0),
|
|
Mantling(1),
|
|
SprintForce(2),
|
|
CrouchSlide(3),
|
|
SafetyRoll(4),
|
|
DisplayHealthBars(5),
|
|
DisplayCombatText(6);
|
|
|
|
public static final ClientFeature[] VALUES = values();
|
|
private final int value;
|
|
|
|
private ClientFeature(int value) {
|
|
this.value = value;
|
|
}
|
|
|
|
public int getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
public static ClientFeature fromValue(int value) {
|
|
if (value >= 0 && value < VALUES.length) {
|
|
return VALUES[value];
|
|
} else {
|
|
throw ProtocolException.invalidEnumValue("ClientFeature", value);
|
|
}
|
|
}
|
|
}
|