UniquePrefabContainer

public class UniquePrefabContainer

Class UniquePrefabContainer. Provides uniqueprefabcontainer functionality for the Hytale server.

java.lang.Object > UniquePrefabContainer

Field Summary

random

final Random random

Field random.

entries

final UniquePrefabEntry[] entries

Field entries.

generator

final UniquePrefabGenerator generator

Field generator.

configuration

final UniquePrefabConfiguration configuration

Field configuration.

location

final Vector3i location

Field location.

prefab

final IPrefabBuffer prefab

Field prefab.

bounds

final IChunkBounds bounds

Field bounds.

Method Detail

UniquePrefabContainer

public public UniquePrefabContainer (final int seedOffset, final UniquePrefabGenerator[] generators)

Method UniquePrefabContainer.

Parameters:
final int seedOffset
final UniquePrefabGenerator[] generators

getGenerators

public UniquePrefabGenerator[] getGenerators ()

Method getGenerators.

generate

public UniquePrefabEntry[] generate (final int seed, @Nullable final Vector2i position, @Nonnull final ChunkGenerator chunkGenerator)

Method generate.

Parameters:
final int seed
@Nullable final Vector2i position
@Nonnull final ChunkGenerator chunkGenerator

UniquePrefabEntry

public new UniquePrefabEntry (generator.getName()

Method UniquePrefabEntry.

Parameters:
generator.getName( generator.getName(

toString

public String toString ()

Method toString.

getName

public String getName ()

Method getName.

getCategory

public PrefabCategory getCategory ()

Method getCategory.

getPosition

public Vector3i getPosition ()

Method getPosition.

getPrefabSupplier

public WorldGenPrefabSupplier getPrefabSupplier ()

Method getPrefabSupplier.

getConfiguration

public BlockMaskCondition getConfiguration ()

Method getConfiguration.

getRotation

public PrefabRotation getRotation ()

Method getRotation.

getSpawnOffset

public Vector3d getSpawnOffset ()

Method getSpawnOffset.

getLowBoundX

public int getLowBoundX ()

Method getLowBoundX.

getLowBoundY

public int getLowBoundY ()

Method getLowBoundY.

getLowBoundZ

public int getLowBoundZ ()

Method getLowBoundZ.

getHighBoundX

public int getHighBoundX ()

Method getHighBoundX.

getHighBoundY

public int getHighBoundY ()

Method getHighBoundY.

getHighBoundZ

public int getHighBoundZ ()

Method getHighBoundZ.

getEnvironmentId

public int getEnvironmentId ()

Method getEnvironmentId.

isFitHeightmap

public boolean isFitHeightmap ()

Method isFitHeightmap.

isSubmerge

public boolean isSubmerge ()

Method isSubmerge.

getExclusionRadiusSquared

public double getExclusionRadiusSquared ()

Method getExclusionRadiusSquared.

isSpawnLocation

public boolean isSpawnLocation ()

Method isSpawnLocation.

isShowOnMap

public boolean isShowOnMap ()

Method isShowOnMap.