Class CavePrefabContainer.CavePrefabEntry.CavePrefabConfig
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.prefab.CavePrefabContainer.CavePrefabEntry.CavePrefabConfig
- Enclosing class:
CavePrefabContainer.CavePrefabEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IIntConditionprotected final BlockMaskConditionprotected final IDoubleCoordinateHashSupplierprotected final ICoordinateRndConditionprotected final IDoubleRangeprotected final ICoordinateConditionprotected final CavePrefabPlacementprotected final PrefabRotation[] -
Constructor Summary
ConstructorsConstructorDescriptionCavePrefabConfig(PrefabRotation[] rotations, CavePrefabPlacement placement, IIntCondition biomeMask, BlockMaskCondition blockMask, IDoubleRange iterations, IDoubleCoordinateHashSupplier displacementSupplier, ICoordinateCondition maskCondition, ICoordinateRndCondition heightCondition) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetDisplacement(int seed, int x, int z, CaveNode caveNode) intintgetIterations(double random) getRotation(Random random) booleanisMatchingBiome(Biome biome) booleanisMatchingHeight(int seed, int x, int y, int z, Random random) booleanisMatchingNoiseDensity(int seed, int x, int z)
-
Field Details
-
rotations
-
placement
-
biomeMask
-
blockMask
-
iterations
-
displacementSupplier
-
maskCondition
-
heightCondition
-
-
Constructor Details
-
CavePrefabConfig
public CavePrefabConfig(PrefabRotation[] rotations, CavePrefabPlacement placement, IIntCondition biomeMask, BlockMaskCondition blockMask, IDoubleRange iterations, IDoubleCoordinateHashSupplier displacementSupplier, ICoordinateCondition maskCondition, ICoordinateRndCondition heightCondition)
-
-
Method Details
-
getRotation
-
getBiomeMask
-
getBlockMask
-
getIterations
public int getIterations(double random) -
getDisplacement
-
getHeight
-
isMatchingNoiseDensity
public boolean isMatchingNoiseDensity(int seed, int x, int z) -
isMatchingHeight
-
isMatchingBiome
-