RotateBlockMode enum
Пакет: com.hypixel.hytale.server.core.prefab.selection.standard
Файл: com/hypixel/hytale/server/core/prefab/selection/standard/RotateBlockMode.java
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
|
ALL,
NON_UNIFORM,
NON_FULL_BLOCKS, |
NOTHING |
Методы (2)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
|
|
if if(var0 == null) |
|
return |
switchreturn switch(var0) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.prefab.selection.standard;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;
class="kw">public enum RotateBlockMode {
ALL,
NON_UNIFORM,
NON_FULL_BLOCKS,
NOTHING;
RotateBlockMode() {
}
@Nonnull
class="kw">public class="kw">static RotateBlockMode fromString(@Nullable String var0) {
if (var0 == null) {
class="kw">return ALL;
}
class="kw">return class="kw">switch (var0) {
case "NonUniform" -> NON_UNIFORM;
case "NonFullBlocks" -> NON_FULL_BLOCKS;
case "Nothing" -> NOTHING;
class="kw">default -> ALL;
};
}
}