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