Class PrefabPatternGenerator
java.lang.Object
com.hypixel.hytale.server.worldgen.prefab.PrefabPatternGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PrefabCategoryprotected final booleanprotected final ICoordinateDoubleSupplierprotected final intprotected final booleanprotected final IPointGeneratorprotected final ICoordinateRndConditionprotected final IHeightThresholdInterpreterprotected final ICoordinateConditionprotected final intprotected final booleanprotected final IBlockFluidConditionprotected final BlockMaskConditionprotected final PrefabRotation[]protected final intprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionPrefabPatternGenerator(int seedOffset, PrefabCategory category, IPointGenerator gridGenerator, ICoordinateRndCondition heightCondition, IHeightThresholdInterpreter heightThresholdInterpreter, BlockMaskCondition prefabPlacementConfiguration, ICoordinateCondition mapCondition, IBlockFluidCondition parentCondition, PrefabRotation[] rotations, ICoordinateDoubleSupplier displacement, boolean fitHeightmap, boolean onWater, boolean deepSearch, boolean submerge, int maxSize, int exclusionRadius) -
Method Summary
Modifier and TypeMethodDescriptionintgetDisplacement(int seed, int x, int z) intintbooleanbooleanbooleanbooleantoString()
-
Field Details
-
seedOffset
protected final int seedOffset -
category
-
gridGenerator
-
heightCondition
-
heightThresholdInterpreter
-
prefabPlacementConfiguration
-
mapCondition
-
parentCondition
-
rotations
-
displacement
-
fitHeightmap
protected final boolean fitHeightmap -
onWater
protected final boolean onWater -
deepSearch
protected final boolean deepSearch -
submerge
protected final boolean submerge -
maxSize
protected final int maxSize -
exclusionRadius
protected final int exclusionRadius
-
-
Constructor Details
-
PrefabPatternGenerator
public PrefabPatternGenerator(int seedOffset, PrefabCategory category, IPointGenerator gridGenerator, ICoordinateRndCondition heightCondition, IHeightThresholdInterpreter heightThresholdInterpreter, BlockMaskCondition prefabPlacementConfiguration, ICoordinateCondition mapCondition, IBlockFluidCondition parentCondition, PrefabRotation[] rotations, ICoordinateDoubleSupplier displacement, boolean fitHeightmap, boolean onWater, boolean deepSearch, boolean submerge, int maxSize, int exclusionRadius)
-
-
Method Details
-
getCategory
-
getGridGenerator
-
getMapCondition
-
getPrefabPlacementConfiguration
-
isFitHeightmap
public boolean isFitHeightmap() -
getParentCondition
-
getHeightCondition
-
getHeightThresholdInterpreter
-
getRotations
-
getDisplacement
public int getDisplacement(int seed, int x, int z) -
isOnWater
public boolean isOnWater() -
isDeepSearch
public boolean isDeepSearch() -
isSubmerge
public boolean isSubmerge() -
getMaxSize
public int getMaxSize() -
getExclusionRadius
public int getExclusionRadius() -
toString
-