Class UniquePrefabConfiguration
java.lang.Object
com.hypixel.hytale.server.worldgen.prefab.unique.UniquePrefabConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Vector2dprotected final IIntConditionprotected final intprotected final doubleprotected final booleanprotected final ICoordinateRndConditionprotected final ICoordinateConditionprotected final intprotected final doubleprotected final booleanprotected final IBlockFluidConditionprotected final BlockMaskConditionprotected final PrefabRotation[]protected final booleanprotected final booleanprotected final Vector3dprotected final booleanprotected final double -
Constructor Summary
ConstructorsConstructorDescriptionUniquePrefabConfiguration(ICoordinateRndCondition heightCondition, BlockMaskCondition placementConfiguration, PrefabRotation[] rotations, IIntCondition biomeMask, ICoordinateCondition mapCondition, IBlockFluidCondition parent, Vector2d anchor, Vector3d spawnOffset, double maxDistance, boolean fitHeightmap, boolean submerge, boolean onWater, int environmentId, int maxAttempts, double exclusionRadius, boolean spawnLocation, double zoneBorderExclusion, boolean showOnMap) -
Method Summary
Modifier and TypeMethodDescriptionintdoubleintdoublegetRotation(Random random) doublebooleanbooleanbooleanbooleanbooleanbooleanisValidParentBiome(Biome biome) booleanisValidParentBlock(int block, int fluid)
-
Field Details
-
heightCondition
-
placementConfiguration
-
rotations
-
biomeMask
-
mapCondition
-
parent
-
anchor
-
spawnOffset
-
maxDistance
protected final double maxDistance -
fitHeightmap
protected final boolean fitHeightmap -
submerge
protected final boolean submerge -
onWater
protected final boolean onWater -
environmentId
protected final int environmentId -
maxAttempts
protected final int maxAttempts -
exclusionRadiusSquared
protected final double exclusionRadiusSquared -
spawnLocation
protected final boolean spawnLocation -
zoneBorderExclusion
protected final double zoneBorderExclusion -
showOnMap
protected final boolean showOnMap
-
-
Constructor Details
-
UniquePrefabConfiguration
public UniquePrefabConfiguration(ICoordinateRndCondition heightCondition, BlockMaskCondition placementConfiguration, PrefabRotation[] rotations, IIntCondition biomeMask, ICoordinateCondition mapCondition, IBlockFluidCondition parent, Vector2d anchor, Vector3d spawnOffset, double maxDistance, boolean fitHeightmap, boolean submerge, boolean onWater, int environmentId, int maxAttempts, double exclusionRadius, boolean spawnLocation, double zoneBorderExclusion, boolean showOnMap)
-
-
Method Details
-
getAnchor
-
getMaxDistance
public double getMaxDistance() -
getMapCondition
-
getPlacementConfiguration
-
getSpawnOffset
-
isValidParentBiome
-
isFitHeightmap
public boolean isFitHeightmap() -
isSubmerge
public boolean isSubmerge() -
isValidParentBlock
public boolean isValidParentBlock(int block, int fluid) -
getHeightCondition
-
getRotation
-
isOnWater
public boolean isOnWater() -
getEnvironmentId
public int getEnvironmentId() -
getMaxAttempts
public int getMaxAttempts() -
getExclusionRadiusSquared
public double getExclusionRadiusSquared() -
isSpawnLocation
public boolean isSpawnLocation() -
getZoneBorderExclusion
public double getZoneBorderExclusion() -
isShowOnMap
public boolean isShowOnMap()
-