Class ResolvedVariantsBlockArrayLoader
java.lang.Object
com.hypixel.hytale.procedurallib.json.Loader<SeedStringResource,ResolvedBlockArray>
com.hypixel.hytale.procedurallib.json.JsonLoader<SeedStringResource,ResolvedBlockArray>
com.hypixel.hytale.server.worldgen.loader.util.ResolvedVariantsBlockArrayLoader
public class ResolvedVariantsBlockArrayLoader
extends JsonLoader<SeedStringResource,ResolvedBlockArray>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.procedurallib.json.JsonLoader
JsonLoader.Constants -
Field Summary
Fields inherited from class com.hypixel.hytale.procedurallib.json.JsonLoader
jsonFields inherited from class com.hypixel.hytale.procedurallib.json.Loader
dataFolder, seed -
Constructor Summary
ConstructorsConstructorDescriptionResolvedVariantsBlockArrayLoader(SeedString<SeedStringResource> seed, Path dataFolder, com.google.gson.JsonElement json) -
Method Summary
Modifier and TypeMethodDescriptionload()static ResolvedBlockArrayloadSingleBlock(com.google.gson.JsonObject object) static ResolvedBlockArrayloadSingleBlock(String blockName) static BlockFluidEntry[]resolveBlockArrayWithVariants(String baseKey, BlockTypeAssetMap<String, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType> assetMap, int fluidId) Methods inherited from class com.hypixel.hytale.procedurallib.json.JsonLoader
error, error, get, getRaw, has, isBoolean, isNumber, loadFile, loadFileConstructor, loadFileElem, mustGet, mustGet, mustGetArray, mustGetBool, mustGetNumber, mustGetObject, mustGetStringMethods inherited from class com.hypixel.hytale.procedurallib.json.Loader
getDataFolder, getSeed
-
Constructor Details
-
ResolvedVariantsBlockArrayLoader
public ResolvedVariantsBlockArrayLoader(SeedString<SeedStringResource> seed, Path dataFolder, com.google.gson.JsonElement json)
-
-
Method Details
-
load
- Specified by:
loadin classLoader<SeedStringResource,ResolvedBlockArray>
-
loadSingleBlock
-
loadSingleBlock
@Nonnull public static ResolvedBlockArray loadSingleBlock(@Nonnull com.google.gson.JsonObject object) -
resolveBlockArrayWithVariants
@Nonnull public static BlockFluidEntry[] resolveBlockArrayWithVariants(String baseKey, @Nonnull BlockTypeAssetMap<String, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType> assetMap, int fluidId)
-