Contents
- Description
- Nested Class Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getRoleIndex()
- getExpected()
- setExpected(double)
- getActual()
- adjustActual(int)
- isUnspawnable()
- setUnspawnable(boolean)
- getSpawnWrapper()
- getSpawnParams()
- getSpansTried()
- getSpansSuccess()
- getSuccessfulJobCount()
- getSuccessfulJobTotalBudget()
- getFailedJobCount()
- getFailedJobTotalBudget()
- getWeight(int)
- getMissingCount(ComponentAccessor)
- getAvailableSlots()
- getRejectionCount(SpawnRejection)
- updateSpawnStats(int, int, int, Object2IntMap, boolean)
- resetUnspawnable()
Class WorldNPCSpawnStat
java.lang.Object
com.hypixel.hytale.server.spawning.world.WorldNPCSpawnStat
- Direct Known Subclasses:
WorldNPCSpawnStat.CountOnly
Created on 10/06/2020
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWorldNPCSpawnStat(int roleIndex, WorldSpawnWrapper spawnWrapper, RoleSpawnParameters spawnParams, World world) -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustActual(int count) intintdoubleintintdoublegetMissingCount(ComponentAccessor<EntityStore> componentAccessor) intgetRejectionCount(SpawnRejection rejection) intintintintintdoublegetWeight(int moonPhase) booleanvoidvoidsetExpected(double expected) voidsetUnspawnable(boolean unspawnable) voidupdateSpawnStats(int spansTried, int spansSuccess, int budgetUsed, it.unimi.dsi.fastutil.objects.Object2IntMap<SpawnRejection> rejections, boolean success)
-
Constructor Details
-
WorldNPCSpawnStat
public WorldNPCSpawnStat(int roleIndex, WorldSpawnWrapper spawnWrapper, @Nonnull RoleSpawnParameters spawnParams, World world)
-
-
Method Details
-
getRoleIndex
public int getRoleIndex() -
getExpected
public double getExpected() -
setExpected
public void setExpected(double expected) -
getActual
public int getActual() -
adjustActual
public void adjustActual(int count) -
isUnspawnable
public boolean isUnspawnable() -
setUnspawnable
public void setUnspawnable(boolean unspawnable) -
getSpawnWrapper
-
getSpawnParams
-
getSpansTried
public int getSpansTried() -
getSpansSuccess
public int getSpansSuccess() -
getSuccessfulJobCount
public int getSuccessfulJobCount() -
getSuccessfulJobTotalBudget
public int getSuccessfulJobTotalBudget() -
getFailedJobCount
public int getFailedJobCount() -
getFailedJobTotalBudget
public int getFailedJobTotalBudget() -
getWeight
public double getWeight(int moonPhase) -
getMissingCount
-
getAvailableSlots
public int getAvailableSlots() -
getRejectionCount
-
updateSpawnStats
public void updateSpawnStats(int spansTried, int spansSuccess, int budgetUsed, @Nonnull it.unimi.dsi.fastutil.objects.Object2IntMap<SpawnRejection> rejections, boolean success) -
resetUnspawnable
public void resetUnspawnable()
-