Class PrefabPatternGeneratorJsonLoader
java.lang.Object
com.hypixel.hytale.procedurallib.json.Loader<SeedStringResource,PrefabPatternGenerator>
com.hypixel.hytale.procedurallib.json.JsonLoader<SeedStringResource,PrefabPatternGenerator>
com.hypixel.hytale.server.worldgen.loader.prefab.PrefabPatternGeneratorJsonLoader
public class PrefabPatternGeneratorJsonLoader
extends JsonLoader<SeedStringResource,PrefabPatternGenerator>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.hypixel.hytale.procedurallib.json.JsonLoader
jsonFields inherited from class com.hypixel.hytale.procedurallib.json.Loader
dataFolder, seed -
Constructor Summary
ConstructorsConstructorDescriptionPrefabPatternGeneratorJsonLoader(SeedString<SeedStringResource> seed, Path dataFolder, com.google.gson.JsonElement json, FileLoadingContext context) -
Method Summary
Modifier and TypeMethodDescriptionload()protected PrefabCategoryprotected booleanloadDeepSearch(IHeightThresholdInterpreter interpreter) protected ICoordinateDoubleSupplierprotected intprotected booleanprotected ICoordinateRndConditionloadHeightCondition(IHeightThresholdInterpreter thresholdInterpreter) protected IHeightThresholdInterpreterprotected ICoordinateConditionprotected BlockMaskConditionloadMask()protected intprotected booleanprotected IBlockFluidConditionprotected IPointGeneratorprotected PrefabRotation[]static PrefabRotation[]loadRotations(com.google.gson.JsonElement element) protected booleanMethods 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
-
Field Details
-
context
-
-
Constructor Details
-
PrefabPatternGeneratorJsonLoader
public PrefabPatternGeneratorJsonLoader(@Nonnull SeedString<SeedStringResource> seed, Path dataFolder, com.google.gson.JsonElement json, FileLoadingContext context)
-
-
Method Details
-
load
- Specified by:
loadin classLoader<SeedStringResource,PrefabPatternGenerator>
-
loadPattern
-
loadCategory
-
loadParent
-
loadHeightThresholds
-
loadHeightCondition
@Nonnull protected ICoordinateRndCondition loadHeightCondition(@Nullable IHeightThresholdInterpreter thresholdInterpreter) -
loadMapCondition
-
loadMask
-
loadRotations
-
loadDisplacement
-
loadFitHeightmap
protected boolean loadFitHeightmap() -
loadOnWater
protected boolean loadOnWater() -
loadDeepSearch
-
loadSubmerge
protected boolean loadSubmerge() -
loadMaxSize
protected int loadMaxSize() -
loadExclusionRadius
protected int loadExclusionRadius() -
loadRotations
@Nullable public static PrefabRotation[] loadRotations(@Nullable com.google.gson.JsonElement element)
-