ClientType enum
Пакет: com.hypixel.hytale.protocol.packets.connection
Файл: com/hypixel/hytale/protocol/packets/connection/ClientType.java
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
ClientType[] |
VALUES |
Методы (3)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
static |
ClientType |
fromValueClientType fromValue(int var0) |
public |
int |
getValueint getValue() |
|
|
if if(var0 >= 0 && var0 < VALUES.length) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.protocol.packets.connection;
class="kw">import com.hypixel.hytale.protocol.io.ProtocolException;
class="kw">public enum ClientType {
Game(0),
Editor(1);
class="kw">public class="kw">static class="kw">final ClientType[] VALUES = values();
class="kw">private class="kw">final int value;
ClientType(int nullxx) {
this.value = nullxx;
}
class="kw">public int getValue() {
class="kw">return this.value;
}
class="kw">public class="kw">static ClientType fromValue(int var0) {
if (var0 >= 0 && var0 < VALUES.length) {
class="kw">return VALUES[var0];
} else {
throw ProtocolException.invalidEnumValue("ClientType", var0);
}
}
}