ShaderType enum
Пакет: com.hypixel.hytale.protocol
Файл: com/hypixel/hytale/protocol/ShaderType.java
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
ShaderType[] |
VALUES |
Методы (3)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
static |
ShaderType |
fromValueShaderType fromValue(int var0) |
public |
int |
getValueint getValue() |
|
|
if if(var0 >= 0 && var0 < VALUES.length) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.protocol;
class="kw">import com.hypixel.hytale.protocol.io.ProtocolException;
class="kw">public enum ShaderType {
None(0),
Wind(1),
WindAttached(2),
WindRandom(3),
WindFractal(4),
Ice(5),
Water(6),
Lava(7),
Slime(8),
Ripple(9);
class="kw">public class="kw">static class="kw">final ShaderType[] VALUES = values();
class="kw">private class="kw">final int value;
ShaderType(int nullxx) {
this.value = nullxx;
}
class="kw">public int getValue() {
class="kw">return this.value;
}
class="kw">public class="kw">static ShaderType fromValue(int var0) {
if (var0 >= 0 && var0 < VALUES.length) {
class="kw">return VALUES[var0];
} else {
throw ProtocolException.invalidEnumValue("ShaderType", var0);
}
}
}