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