public class BeaconSpawnController extends SpawnController
Class BeaconSpawnController. Provides beaconspawncontroller functionality for the Hytale server.
java.lang.Object > SpawnController > BeaconSpawnController
Field Summary
nextPlayerIndex
Field nextPlayerIndex.
baseMaxTotalSpawns
Field baseMaxTotalSpawns.
currentScaledMaxTotalSpawns
Field currentScaledMaxTotalSpawns.
baseMaxConcurrentSpawns
Field baseMaxConcurrentSpawns.
currentScaledMaxConcurrentSpawns
Field currentScaledMaxConcurrentSpawns.
spawnsThisRound
Field spawnsThisRound.
remainingSpawns
Field remainingSpawns.
roundStart
Field roundStart.
beaconRadiusSquared
Field beaconRadiusSquared.
spawnRadiusSquared
Field spawnRadiusSquared.
despawnNPCAfterTimeout
Field despawnNPCAfterTimeout.
despawnBeaconAfterTimeout
Field despawnBeaconAfterTimeout.
despawnNPCsIfIdle
Field despawnNPCsIfIdle.
legacySpawnBeaconComponent
Field legacySpawnBeaconComponent.
wrapper
Field wrapper.
spawn
Field spawn.
spawnId
Field spawnId.
roleIndex
Field roleIndex.
predictedTotal
Field predictedTotal.
beaconRadius
Field beaconRadius.
spawnRadius
Field spawnRadius.
context
Field context.
ownerUuidComponent
Field ownerUuidComponent.
Method Detail
BeaconSpawnController
Method BeaconSpawnController.
- Parameters:
@Nonnull final Worldworld@Nonnull final RefownerRef
getMaxActiveJobs
int
getMaxActiveJobs
()
Method getMaxActiveJobs.
createRandomSpawnJob
Method createRandomSpawnJob.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor
NPCBeaconSpawnJob
new
NPCBeaconSpawnJob
()
Method NPCBeaconSpawnJob.
getSpawnsThisRound
int
getSpawnsThisRound
()
Method getSpawnsThisRound.
setRemainingSpawns
void
setRemainingSpawns
(final int remainingSpawns)
Method setRemainingSpawns.
- Parameters:
final intremainingSpawns
addRoundSpawn
void
addRoundSpawn
()
Method addRoundSpawn.
isRoundStart
boolean
isRoundStart
()
Method isRoundStart.
setRoundStart
void
setRoundStart
(final boolean roundStart)
Method setRoundStart.
- Parameters:
final booleanroundStart
getBaseMaxConcurrentSpawns
int[]
getBaseMaxConcurrentSpawns
()
Method getBaseMaxConcurrentSpawns.
getPlayersInRegion
List
getPlayersInRegion
()
Method getPlayersInRegion.
getCurrentScaledMaxConcurrentSpawns
int
getCurrentScaledMaxConcurrentSpawns
()
Method getCurrentScaledMaxConcurrentSpawns.
setCurrentScaledMaxConcurrentSpawns
void
setCurrentScaledMaxConcurrentSpawns
(final int currentScaledMaxConcurrentSpawns)
Method setCurrentScaledMaxConcurrentSpawns.
- Parameters:
final intcurrentScaledMaxConcurrentSpawns
getDespawnBeaconAfterTimeout
Duration
getDespawnBeaconAfterTimeout
()
Method getDespawnBeaconAfterTimeout.
getSpawnRadiusSquared
double
getSpawnRadiusSquared
()
Method getSpawnRadiusSquared.
getBeaconRadiusSquared
double
getBeaconRadiusSquared
()
Method getBeaconRadiusSquared.
getBaseMaxTotalSpawns
int
getBaseMaxTotalSpawns
()
Method getBaseMaxTotalSpawns.
setCurrentScaledMaxTotalSpawns
void
setCurrentScaledMaxTotalSpawns
(final int currentScaledMaxTotalSpawns)
Method setCurrentScaledMaxTotalSpawns.
- Parameters:
final intcurrentScaledMaxTotalSpawns
setNextPlayerIndex
void
setNextPlayerIndex
(final int nextPlayerIndex)
Method setNextPlayerIndex.
- Parameters:
final intnextPlayerIndex
getEntityTimeoutCounter
Method getEntityTimeoutCounter.
getEntitiesPerPlayer
Object2IntMap
getEntitiesPerPlayer
()
Method getEntitiesPerPlayer.
isDespawnNPCsIfIdle
boolean
isDespawnNPCsIfIdle
()
Method isDespawnNPCsIfIdle.
getDespawnNPCAfterTimeout
double
getDespawnNPCAfterTimeout
()
Method getDespawnNPCAfterTimeout.
getThreatComparator
Comparator
getThreatComparator
()
Method getThreatComparator.
notifySpawnedEntityExists
void
notifySpawnedEntityExists
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method notifySpawnedEntityExists.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
notifyNPCRemoval
void
notifyNPCRemoval
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method notifyNPCRemoval.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
hasSlots
boolean
hasSlots
()
Method hasSlots.
markNPCUnspawnable
void
markNPCUnspawnable
(final int roleIndex)
Method markNPCUnspawnable.
- Parameters:
final introleIndex
clearUnspawnableNPCs
void
clearUnspawnableNPCs
()
Method clearUnspawnableNPCs.
onAllConcurrentSpawned
Method onAllConcurrentSpawned.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor