PrefabPatternGenerator

public class PrefabPatternGenerator

Class PrefabPatternGenerator. Provides prefabpatterngenerator functionality for the Hytale server.

java.lang.Object > PrefabPatternGenerator

Field Summary

No fields documented.

Method Detail

PrefabPatternGenerator

public public PrefabPatternGenerator (final int seedOffset, final PrefabCategory category, final IPointGenerator gridGenerator, final ICoordinateRndCondition heightCondition, final IHeightThresholdInterpreter heightThresholdInterpreter, final BlockMaskCondition prefabPlacementConfiguration, final ICoordinateCondition mapCondition, final IBlockFluidCondition parentCondition, final PrefabRotation[] rotations, final ICoordinateDoubleSupplier displacement, final boolean fitHeightmap, final boolean onWater, final boolean deepSearch, final boolean submerge, final int maxSize, final int exclusionRadius)

Method PrefabPatternGenerator.

Parameters:
final int seedOffset
final PrefabCategory category
final IPointGenerator gridGenerator
final ICoordinateRndCondition heightCondition
final IHeightThresholdInterpreter heightThresholdInterpreter
final BlockMaskCondition prefabPlacementConfiguration
final ICoordinateCondition mapCondition
final IBlockFluidCondition parentCondition
final PrefabRotation[] rotations
final ICoordinateDoubleSupplier displacement
final boolean fitHeightmap
final boolean onWater
final boolean deepSearch
final boolean submerge
final int maxSize
final int exclusionRadius

getCategory

public PrefabCategory getCategory ()

Method getCategory.

getGridGenerator

public IPointGenerator getGridGenerator ()

Method getGridGenerator.

getMapCondition

public ICoordinateCondition getMapCondition ()

Method getMapCondition.

getPrefabPlacementConfiguration

public BlockMaskCondition getPrefabPlacementConfiguration ()

Method getPrefabPlacementConfiguration.

isFitHeightmap

public boolean isFitHeightmap ()

Method isFitHeightmap.

getParentCondition

public IBlockFluidCondition getParentCondition ()

Method getParentCondition.

getHeightCondition

public ICoordinateRndCondition getHeightCondition ()

Method getHeightCondition.

getHeightThresholdInterpreter

public IHeightThresholdInterpreter getHeightThresholdInterpreter ()

Method getHeightThresholdInterpreter.

getRotations

public PrefabRotation[] getRotations ()

Method getRotations.

getDisplacement

public int getDisplacement (final int seed, final int x, final int z)

Method getDisplacement.

Parameters:
final int seed
final int x
final int z

isOnWater

public boolean isOnWater ()

Method isOnWater.

isDeepSearch

public boolean isDeepSearch ()

Method isDeepSearch.

isSubmerge

public boolean isSubmerge ()

Method isSubmerge.

getMaxSize

public int getMaxSize ()

Method getMaxSize.

getExclusionRadius

public int getExclusionRadius ()

Method getExclusionRadius.

toString

public String toString ()

Method toString.