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