Class UniquePrefabConfiguration

java.lang.Object
com.hypixel.hytale.server.worldgen.prefab.unique.UniquePrefabConfiguration

public class UniquePrefabConfiguration extends Object
  • Field Details

    • heightCondition

      protected final ICoordinateRndCondition heightCondition
    • placementConfiguration

      protected final BlockMaskCondition placementConfiguration
    • rotations

      protected final PrefabRotation[] rotations
    • biomeMask

      protected final IIntCondition biomeMask
    • mapCondition

      protected final ICoordinateCondition mapCondition
    • parent

      protected final IBlockFluidCondition parent
    • anchor

      protected final Vector2d anchor
    • spawnOffset

      protected final Vector3d 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

  • Method Details

    • getAnchor

      public Vector2d getAnchor()
    • getMaxDistance

      public double getMaxDistance()
    • getMapCondition

      public ICoordinateCondition getMapCondition()
    • getPlacementConfiguration

      public BlockMaskCondition getPlacementConfiguration()
    • getSpawnOffset

      public Vector3d getSpawnOffset()
    • isValidParentBiome

      public boolean isValidParentBiome(@Nonnull Biome biome)
    • isFitHeightmap

      public boolean isFitHeightmap()
    • isSubmerge

      public boolean isSubmerge()
    • isValidParentBlock

      public boolean isValidParentBlock(int block, int fluid)
    • getHeightCondition

      public ICoordinateRndCondition getHeightCondition()
    • getRotation

      public PrefabRotation getRotation(@Nonnull Random random)
    • 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()