PrefabPatternGeneratorJsonLoader

public class PrefabPatternGeneratorJsonLoader extends JsonLoader

Class PrefabPatternGeneratorJsonLoader. Provides prefabpatterngeneratorjsonloader functionality for the Hytale server.

java.lang.Object > JsonLoader > PrefabPatternGeneratorJsonLoader

Field Summary

heightThresholds

final IHeightThresholdInterpreter heightThresholds

Field heightThresholds.

category

final String category

Field category.

blockArray

final ResolvedBlockArray blockArray

Field blockArray.

biomeSet

final LongSet biomeSet

Field biomeSet.

deepSearch

final boolean deepSearch

Field deepSearch.

array

final JsonArray array

Field array.

name

final String name

Field name.

name2

final String name2

Field name2.

Method Detail

PrefabPatternGeneratorJsonLoader

public public PrefabPatternGeneratorJsonLoader (@Nonnull final SeedString seed, final Path dataFolder, final JsonElement json, final FileLoadingContext context)

Method PrefabPatternGeneratorJsonLoader.

Parameters:
@Nonnull final SeedString seed
final Path dataFolder
final JsonElement json
final FileLoadingContext context

load

public PrefabPatternGenerator load ()

Method load.

PrefabPatternGenerator

public new PrefabPatternGenerator (this.seed.hashCode()

Method PrefabPatternGenerator.

Parameters:
this.seed.hashCode( this.seed.hashCode(

loadPattern

protected IPointGenerator loadPattern ()

Method loadPattern.

PointGeneratorJsonLoader

public new PointGeneratorJsonLoader (this.seed, this.dataFolder, this.get("GridGenerator")

Method PointGeneratorJsonLoader.

Parameters:
this.seed this.seed
this.dataFolder this.dataFolder
this.get("GridGenerator" this.get("GridGenerator"

loadCategory

protected PrefabCategory loadCategory ()

Method loadCategory.

loadParent

protected IBlockFluidCondition loadParent ()

Method loadParent.

ResolvedBlockArrayJsonLoader

public new ResolvedBlockArrayJsonLoader ((SeedString)

Method ResolvedBlockArrayJsonLoader.

Parameters:
(SeedString (SeedString

loadHeightThresholds

protected IHeightThresholdInterpreter loadHeightThresholds ()

Method loadHeightThresholds.

HeightThresholdInterpreterJsonLoader

public new HeightThresholdInterpreterJsonLoader (this.seed, this.dataFolder, this.get("HeightThreshold")

Method HeightThresholdInterpreterJsonLoader.

Parameters:
this.seed this.seed
this.dataFolder this.dataFolder
this.get("HeightThreshold" this.get("HeightThreshold"

loadHeightCondition

protected ICoordinateRndCondition loadHeightCondition (@Nullable final IHeightThresholdInterpreter thresholdInterpreter)

Method loadHeightCondition.

Parameters:
@Nullable final IHeightThresholdInterpreter thresholdInterpreter

loadMapCondition

protected ICoordinateCondition loadMapCondition ()

Method loadMapCondition.

NoiseMaskConditionJsonLoader

public new NoiseMaskConditionJsonLoader (this.seed, this.dataFolder, this.get("NoiseMask")

Method NoiseMaskConditionJsonLoader.

Parameters:
this.seed this.seed
this.dataFolder this.dataFolder
this.get("NoiseMask" this.get("NoiseMask"

loadMask

protected BlockMaskCondition loadMask ()

Method loadMask.

BlockPlacementMaskJsonLoader

public new BlockPlacementMaskJsonLoader ((SeedString)

Method BlockPlacementMaskJsonLoader.

Parameters:
(SeedString (SeedString

loadRotations

protected PrefabRotation[] loadRotations ()

Method loadRotations.

loadDisplacement

protected ICoordinateDoubleSupplier loadDisplacement ()

Method loadDisplacement.

RandomCoordinateDoubleSupplier

public new RandomCoordinateDoubleSupplier (new DoubleRangeJsonLoader(this.seed, this.dataFolder, this.get("Displacement")

Method RandomCoordinateDoubleSupplier.

Parameters:
new DoubleRangeJsonLoader(this.seed
this.dataFolder this.dataFolder
this.get("Displacement" this.get("Displacement"

loadFitHeightmap

protected boolean loadFitHeightmap ()

Method loadFitHeightmap.

loadOnWater

protected boolean loadOnWater ()

Method loadOnWater.

loadDeepSearch

protected boolean loadDeepSearch (@Nonnull final IHeightThresholdInterpreter interpreter)

Method loadDeepSearch.

Parameters:
@Nonnull final IHeightThresholdInterpreter interpreter

loadSubmerge

protected boolean loadSubmerge ()

Method loadSubmerge.

loadMaxSize

protected int loadMaxSize ()

Method loadMaxSize.

loadExclusionRadius

protected int loadExclusionRadius ()

Method loadExclusionRadius.

Error

public new Error ("Could not find rotation \"" + name + "\". Allowed: " + Arrays.toString(PrefabRotation.VALUES)

Method Error.

Parameters:
"Could not find rotation \"" + name + "\". Allowed: " + Arrays.toString(PrefabRotation.VALUES