SpawnJobData

public class SpawnJobData implements Component

Class SpawnJobData. Provides spawnjobdata functionality for the Hytale server.

java.lang.Object > SpawnJobData

Field Summary

environmentIndex

private int environmentIndex

Field environmentIndex.

totalColumnsTested

private int totalColumnsTested

Field totalColumnsTested.

totalColumnsBlocked

private int totalColumnsBlocked

Field totalColumnsBlocked.

budgetUsed

private int budgetUsed

Field budgetUsed.

totalBudgetUsed

private int totalBudgetUsed

Field totalBudgetUsed.

spawnFrozen

private boolean spawnFrozen

Field spawnFrozen.

roleIndex

private int roleIndex

Field roleIndex.

spawnConfig

private SpawnWrapper spawnConfig

Field spawnConfig.

spawnConfigIndex

private int spawnConfigIndex

Field spawnConfigIndex.

flockSize

private int flockSize

Field flockSize.

flockAsset

private FlockAsset flockAsset

Field flockAsset.

environment

private Environment environment

Field environment.

spansTried

private int spansTried

Field spansTried.

spansSuccess

private int spansSuccess

Field spansSuccess.

ignoreFullyPopulated

private boolean ignoreFullyPopulated

Field ignoreFullyPopulated.

terminated

private boolean terminated

Field terminated.

Method Detail

SpawnJobData

public public SpawnJobData ()

Method SpawnJobData.

getComponentType

public SpawnJobData> getComponentType ()

Method getComponentType.

getJobId

public int getJobId ()

Method getJobId.

getEnvironmentIndex

public int getEnvironmentIndex ()

Method getEnvironmentIndex.

getTotalColumnsTested

public int getTotalColumnsTested ()

Method getTotalColumnsTested.

incrementTotalColumnsTested

public void incrementTotalColumnsTested ()

Method incrementTotalColumnsTested.

getTotalColumnsBlocked

public int getTotalColumnsBlocked ()

Method getTotalColumnsBlocked.

incrementTotalColumnsBlocked

public void incrementTotalColumnsBlocked ()

Method incrementTotalColumnsBlocked.

getBudgetUsed

public int getBudgetUsed ()

Method getBudgetUsed.

setBudgetUsed

public void setBudgetUsed (final int budgetUsed)

Method setBudgetUsed.

Parameters:
final int budgetUsed

adjustBudgetUsed

public void adjustBudgetUsed (final int amount)

Method adjustBudgetUsed.

Parameters:
final int amount

getTotalBudgetUsed

public int getTotalBudgetUsed ()

Method getTotalBudgetUsed.

isSpawnFrozen

public boolean isSpawnFrozen ()

Method isSpawnFrozen.

setSpawnFrozen

public void setSpawnFrozen (final boolean spawnFrozen)

Method setSpawnFrozen.

Parameters:
final boolean spawnFrozen

getSpawningContext

public SpawningContext getSpawningContext ()

Method getSpawningContext.

getRoleIndex

public int getRoleIndex ()

Method getRoleIndex.

getSpawnConfig

public SpawnWrapper getSpawnConfig ()

Method getSpawnConfig.

getSpawnConfigIndex

public int getSpawnConfigIndex ()

Method getSpawnConfigIndex.

getFlockSize

public int getFlockSize ()

Method getFlockSize.

getFlockAsset

public FlockAsset getFlockAsset ()

Method getFlockAsset.

getSuppressionSpanHelper

public SuppressionSpanHelper getSuppressionSpanHelper ()

Method getSuppressionSpanHelper.

getEnvironment

public Environment getEnvironment ()

Method getEnvironment.

getSpansTried

public int getSpansTried ()

Method getSpansTried.

incrementSpansTried

public void incrementSpansTried ()

Method incrementSpansTried.

getSpansSuccess

public int getSpansSuccess ()

Method getSpansSuccess.

incrementSpansSuccess

public void incrementSpansSuccess ()

Method incrementSpansSuccess.

getRejectionMap

public Object2IntMap getRejectionMap ()

Method getRejectionMap.

isIgnoreFullyPopulated

public boolean isIgnoreFullyPopulated ()

Method isIgnoreFullyPopulated.

setIgnoreFullyPopulated

public void setIgnoreFullyPopulated (final boolean ignoreFullyPopulated)

Method setIgnoreFullyPopulated.

Parameters:
final boolean ignoreFullyPopulated

isTerminated

public boolean isTerminated ()

Method isTerminated.

terminate

public void terminate ()

Method terminate.

init

public void init (final int roleIndex, final Environment environment, final int environmentIndex, @Nonnull final SpawnWrapper spawnConfig, final FlockAsset flockDefinition, final int flockSize)

Method init.

Parameters:
final int roleIndex
final Environment environment
final int environmentIndex
@Nonnull final SpawnWrapper spawnConfig
final FlockAsset flockDefinition
final int flockSize

clone

public Component clone ()

Method clone.