public class SpawnBeaconSystems
Class SpawnBeaconSystems. Provides spawnbeaconsystems functionality for the Hytale server.
java.lang.Object > SpawnBeaconSystems
Field Summary
legacySpawnBeaconComponent
Field legacySpawnBeaconComponent.
spawnConfigId
Field spawnConfigId.
index
Field index.
world
Field world.
spawnController
Field spawnController.
spawnWrapper
Field spawnWrapper.
positionSelector
Field positionSelector.
maxSpawnScaleCurve
Field maxSpawnScaleCurve.
baseMaxTotalSpawns
Field baseMaxTotalSpawns.
currentScaledMaxTotalSpawns
Field currentScaledMaxTotalSpawns.
delay
Field delay.
spawnBeaconComponent
Field spawnBeaconComponent.
config
Field config.
positionSelectorComponent
Field positionSelectorComponent.
transformComponent
Field transformComponent.
position
Field position.
poolProvider
Field poolProvider.
uuidComponent
Field uuidComponent.
despawnSelfAfter
Field despawnSelfAfter.
worldTimeResource
Field worldTimeResource.
ref
Field ref.
npc
Field npc.
validatedEntityList
Field validatedEntityList.
despawnNPCsIfIdle
Field despawnNPCsIfIdle.
beaconRadiusSquared
Field beaconRadiusSquared.
despawnNPCAfterTimeout
Field despawnNPCAfterTimeout.
spawnedEntityReference
Field spawnedEntityReference.
spawnedEntityNpcComponent
Field spawnedEntityNpcComponent.
role
Field role.
hasTarget
Field hasTarget.
spawnedEntityTransformComponent
Field spawnedEntityTransformComponent.
npcPosition
Field npcPosition.
beaconDistance
Field beaconDistance.
timeout
Field timeout.
timeManager
Field timeManager.
y
Field y.
yRange
Field yRange.
minY
Field minY.
maxY
Field maxY.
playersInRegion
Field playersInRegion.
result
Field result.
resultPlayerComponent
Field resultPlayerComponent.
resultTransformComponent
Field resultTransformComponent.
yPos
Field yPos.
spawnBeaconRef
Field spawnBeaconRef.
playerReference
Field playerReference.
playerTransformComponent
Field playerTransformComponent.
playerPos
Field playerPos.
entitiesPerPlayer
Field entitiesPerPlayer.
lockedTargetRef
Field lockedTargetRef.
lockedTarget
Field lockedTarget.
nextSpawnAfter
Field nextSpawnAfter.
now
Field now.
ownerRef
Field ownerRef.
concurrentSpawnScaleCurve
Field concurrentSpawnScaleCurve.
baseMaxConcurrentSpawns
Field baseMaxConcurrentSpawns.
remainingSpawns
Field remainingSpawns.
legacySpawnBeaconEntity
Field legacySpawnBeaconEntity.
playerPosition
Field playerPosition.
spawningContext
Field spawningContext.
rotation
Field rotation.
roleIndex
Field roleIndex.
npcRef
Field npcRef.
context
Field context.
pos
Field pos.
playerRef
Field playerRef.
playerComponent
Field playerComponent.
beaconDelayComponent
Field beaconDelayComponent.
Method Detail
onEntityAdded
void
onEntityAdded
(@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onEntityRemove
void
onEntityRemove
(@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
PositionSelectorUpdate
public
PositionSelectorUpdate
(final ComponentType componentType, final ResourceType floodFillEntryPoolProviderSimpleResourceType)
Method PositionSelectorUpdate.
- Parameters:
final ComponentTypecomponentTypefinal ResourceTypefloodFillEntryPoolProviderSimpleResourceType
SystemDependency
new
SystemDependency
(Order.AFTER, CheckDespawn.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERCheckDespawn.classCheckDespawn.class
getDependencies
Set>
getDependencies
()
Method getDependencies.
isParallel
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
CheckDespawn
public
CheckDespawn
(final ComponentType componentType, final ComponentType initialBeaconDelayComponentType)
Method CheckDespawn.
- Parameters:
final ComponentTypecomponentTypefinal ComponentTypeinitialBeaconDelayComponentType
despawnAllSpawns
void
despawnAllSpawns
(@Nonnull final List> spawnedEntities, @Nonnull final CommandBuffer commandBuffer)
Method despawnAllSpawns.
- Parameters:
@Nonnull final List>spawnedEntities@Nonnull final CommandBuffercommandBuffer
ControllerTick
public
ControllerTick
(final ComponentType componentType, final ComponentType floodFillPositionSelectorComponentType, final ComponentType initialBeaconDelayComponentType)
Method ControllerTick.
- Parameters:
final ComponentTypecomponentTypefinal ComponentTypefloodFillPositionSelectorComponentTypefinal ComponentTypeinitialBeaconDelayComponentType
isReadyToRespawn
boolean
isReadyToRespawn
(final LegacySpawnBeaconEntity spawnBeacon, final WorldTimeResource timeManager)
Method isReadyToRespawn.
- Parameters:
final LegacySpawnBeaconEntityspawnBeaconfinal WorldTimeResourcetimeManager
prepareSpawnJobGeneration
void
prepareSpawnJobGeneration
(@Nonnull final BeaconSpawnController spawnController, @Nonnull final ComponentAccessor componentAccessor)
Method prepareSpawnJobGeneration.
- Parameters:
@Nonnull final BeaconSpawnControllerspawnController@Nonnull final ComponentAccessorcomponentAccessor
createRandomSpawnJobs
void
createRandomSpawnJobs
(@Nonnull final BeaconSpawnController spawnController, @Nonnull final ComponentAccessor componentAccessor)
Method createRandomSpawnJobs.
- Parameters:
@Nonnull final BeaconSpawnControllerspawnController@Nonnull final ComponentAccessorcomponentAccessor
SpawnJobTick
public
SpawnJobTick
(final ComponentType componentType, final ComponentType initialBeaconDelayComponentType)
Method SpawnJobTick.
- Parameters:
final ComponentTypecomponentTypefinal ComponentTypeinitialBeaconDelayComponentType
onEndProbing
void
onEndProbing
(@Nonnull final BeaconSpawnController spawnController, @Nonnull final NPCBeaconSpawnJob spawnJob, final Result result, @Nonnull final ComponentAccessor componentAccessor)
Method onEndProbing.
- Parameters:
@Nonnull final BeaconSpawnControllerspawnController@Nonnull final NPCBeaconSpawnJobspawnJobfinal Resultresult@Nonnull final ComponentAccessorcomponentAccessor
if
else
if
(result == Result.PERMANENT_FAILURE)
Method if.
- Parameters:
result ==Result.PERMANENT_FAILURE
pickSpawnPosition
boolean
pickSpawnPosition
(@Nonnull final BeaconSpawnController spawnController, @Nonnull final NPCBeaconSpawnJob spawnJob, @Nonnull final CommandBuffer commandBuffer)
Method pickSpawnPosition.
- Parameters:
@Nonnull final BeaconSpawnControllerspawnController@Nonnull final NPCBeaconSpawnJobspawnJob@Nonnull final CommandBuffercommandBuffer
trySpawn
Result
trySpawn
(@Nonnull final BeaconSpawnController spawnController, @Nonnull final NPCBeaconSpawnJob spawnJob, @Nonnull final CommandBuffer commandBuffer)
Method trySpawn.
- Parameters:
@Nonnull final BeaconSpawnControllerspawnController@Nonnull final NPCBeaconSpawnJobspawnJob@Nonnull final CommandBuffercommandBuffer
spawn
Result
spawn
(final World world, @Nonnull final BeaconSpawnController spawnController, @Nonnull final NPCBeaconSpawnJob spawnJob, @Nonnull final CommandBuffer commandBuffer)
Method spawn.
- Parameters:
final Worldworld@Nonnull final BeaconSpawnControllerspawnController@Nonnull final NPCBeaconSpawnJobspawnJob@Nonnull final CommandBuffercommandBuffer
postSpawn
>
postSpawn
(npc, ref, roleIndex, spawnController.isDebugSpawnFrozen()
Method postSpawn.
- Parameters:
npcnpcrefrefroleIndexroleIndexspawnController.isDebugSpawnFrozen(spawnController.isDebugSpawnFrozen(
onSpawn
void
onSpawn
(@Nonnull final Ref npcReference, @Nonnull final BeaconSpawnController spawnController, @Nonnull final NPCBeaconSpawnJob spawnJob, @Nonnull final Store store)
Method onSpawn.
- Parameters:
@Nonnull final RefnpcReference@Nonnull final BeaconSpawnControllerspawnController@Nonnull final NPCBeaconSpawnJobspawnJob@Nonnull final Storestore