Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getExpectedNPCs()
- getRandomChunkColumnIterator()
- init(int, WorldChunk)
- registerSegment(int, int)
- getSegmentCount()
- updateDensity(double)
- getWeight(double)
- isFullyPopulated(double)
- markRoleAsUnspawnable(int)
- isRoleSpawnable(int)
- allRolesUnspawnable()
- wasProcessedAsUnspawnable()
- markProcessedAsUnspawnable()
Class ChunkEnvironmentSpawnData
java.lang.Object
com.hypixel.hytale.server.spawning.world.ChunkEnvironmentSpawnData
The ChunkEnvironmentSpawnData stores data local to an specific biome in a specific chunk.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoubleintdoublegetWeight(double spawnedNPCs) voidinit(int environmentIndex, WorldChunk chunk) booleanisFullyPopulated(double spawnedNPCs) booleanisRoleSpawnable(int roleIndex) voidvoidmarkRoleAsUnspawnable(int roleIndex) voidregisterSegment(int x, int z) voidupdateDensity(double density) boolean
-
Constructor Details
-
ChunkEnvironmentSpawnData
public ChunkEnvironmentSpawnData()
-
-
Method Details
-
getExpectedNPCs
public double getExpectedNPCs() -
getRandomChunkColumnIterator
-
init
-
registerSegment
public void registerSegment(int x, int z) -
getSegmentCount
public int getSegmentCount() -
updateDensity
public void updateDensity(double density) -
getWeight
public double getWeight(double spawnedNPCs) -
isFullyPopulated
public boolean isFullyPopulated(double spawnedNPCs) -
markRoleAsUnspawnable
public void markRoleAsUnspawnable(int roleIndex) -
isRoleSpawnable
public boolean isRoleSpawnable(int roleIndex) -
allRolesUnspawnable
public boolean allRolesUnspawnable() -
wasProcessedAsUnspawnable
public boolean wasProcessedAsUnspawnable() -
markProcessedAsUnspawnable
public void markProcessedAsUnspawnable()
-