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