HeightThresholdInterpreterJsonLoader class
Пакет: com.hypixel.hytale.procedurallib.json
Файл: com/hypixel/hytale/procedurallib/json/HeightThresholdInterpreterJsonLoader.java
extends: JsonLoader<K, IHeightThresholdInterpreter>
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
int |
length |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.procedurallib.json;
class="kw">import com.google.gson.JsonElement;
class="kw">import com.hypixel.hytale.procedurallib.condition.IHeightThresholdInterpreter;
class="kw">import java.nio.file.Path;
class="kw">import javax.annotation.Nonnull;
class="kw">public class HeightThresholdInterpreterJsonLoader<K class="kw">extends SeedResource> class="kw">extends JsonLoader<K, IHeightThresholdInterpreter> {
class="kw">protected class="kw">final int length;
class="kw">public HeightThresholdInterpreterJsonLoader(@Nonnull SeedString<K> var1, Path var2, JsonElement var3, int var4) {
super(var1.append(".HeightThresholdInterpreter"), var2, var3);
this.length = var4;
}
@Nonnull
class="kw">public IHeightThresholdInterpreter load() {
class="kw">return NoiseHeightThresholdInterpreterJsonLoader.shouldHandle(this.json.getAsJsonObject())
? new NoiseHeightThresholdInterpreterJsonLoader<>(this.seed, this.dataFolder, this.json, this.length).load()
: new BasicHeightThresholdInterpreterJsonLoader<>(this.seed, this.dataFolder, this.json, this.length).load();
}
}