public class WorldNPCSpawnStat
Class WorldNPCSpawnStat. Provides worldnpcspawnstat functionality for the Hytale server.
java.lang.Object > WorldNPCSpawnStat
Field Summary
builderInfoReference
Field builderInfoReference.
minSpawnSize
Field minSpawnSize.
expected
Field expected.
actual
Field actual.
unspawnable
Field unspawnable.
spansTried
Field spansTried.
spansSuccess
Field spansSuccess.
successfulJobCount
Field successfulJobCount.
successfulJobTotalBudget
Field successfulJobTotalBudget.
failedJobCount
Field failedJobCount.
failedJobTotalBudget
Field failedJobTotalBudget.
slotsLeft
Field slotsLeft.
npcModule
Field npcModule.
flockDefinition
Field flockDefinition.
Method Detail
WorldNPCSpawnStat
public
WorldNPCSpawnStat
(final int roleIndex, final WorldSpawnWrapper spawnWrapper, @Nonnull final RoleSpawnParameters spawnParams, final World world)
Method WorldNPCSpawnStat.
- Parameters:
final introleIndexfinal WorldSpawnWrapperspawnWrapper@Nonnull final RoleSpawnParametersspawnParamsfinal Worldworld
getRoleIndex
int
getRoleIndex
()
Method getRoleIndex.
getExpected
double
getExpected
()
Method getExpected.
setExpected
void
setExpected
(final double expected)
Method setExpected.
- Parameters:
final doubleexpected
getActual
int
getActual
()
Method getActual.
adjustActual
void
adjustActual
(final int count)
Method adjustActual.
- Parameters:
final intcount
isUnspawnable
boolean
isUnspawnable
()
Method isUnspawnable.
setUnspawnable
void
setUnspawnable
(final boolean unspawnable)
Method setUnspawnable.
- Parameters:
final booleanunspawnable
getSpansTried
int
getSpansTried
()
Method getSpansTried.
getSpansSuccess
int
getSpansSuccess
()
Method getSpansSuccess.
getSuccessfulJobCount
int
getSuccessfulJobCount
()
Method getSuccessfulJobCount.
getSuccessfulJobTotalBudget
int
getSuccessfulJobTotalBudget
()
Method getSuccessfulJobTotalBudget.
getFailedJobCount
int
getFailedJobCount
()
Method getFailedJobCount.
getFailedJobTotalBudget
int
getFailedJobTotalBudget
()
Method getFailedJobTotalBudget.
getWeight
double
getWeight
(final int moonPhase)
Method getWeight.
- Parameters:
final intmoonPhase
getMissingCount
Method getMissingCount.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor
getAvailableSlots
int
getAvailableSlots
()
Method getAvailableSlots.
updateSpawnStats
void
updateSpawnStats
(final int spansTried, final int spansSuccess, final int budgetUsed, @Nonnull final Object2IntMap rejections, final boolean success)
Method updateSpawnStats.
- Parameters:
final intspansTriedfinal intspansSuccessfinal intbudgetUsed@Nonnull final Object2IntMaprejectionsfinal booleansuccess
resetUnspawnable
void
resetUnspawnable
()
Method resetUnspawnable.
isSpawnable
boolean
isSpawnable
()
Method isSpawnable.
recomputeSpawnSize
void
recomputeSpawnSize
()
Method recomputeSpawnSize.
CountOnly
public
CountOnly
(final int roleIndex)
Method CountOnly.
- Parameters:
final introleIndex