public class WorldSpawnManager extends SpawnManager
Class WorldSpawnManager. Provides worldspawnmanager functionality for the Hytale server.
java.lang.Object > SpawnManager > WorldSpawnManager
Field Summary
spawnWrapper
Field spawnWrapper.
environments
Field environments.
envConfigs
Field envConfigs.
spawn
Field spawn.
npcs
Field npcs.
spawnConfigIndex
Field spawnConfigIndex.
npcIndex2
Field npcIndex2.
roleSpawnParameters
Field roleSpawnParameters.
environmentSpawnParameters
Field environmentSpawnParameters.
spawnParameters
Field spawnParameters.
store
Field store.
worldSpawnData
Field worldSpawnData.
npc
Field npc.
spawnConfiguration
Field spawnConfiguration.
isTracked
Field isTracked.
chunkStore
Field chunkStore.
worldTimeResource
Field worldTimeResource.
moonPhase
Field moonPhase.
spawnJobData
Field spawnJobData.
worldEnvironmentSpawnStats
Field worldEnvironmentSpawnStats.
Method Detail
WorldSpawnManager
public
WorldSpawnManager
()
Method WorldSpawnManager.
removeSpawnWrapper
Method removeSpawnWrapper.
- Parameters:
final intspawnConfigurationIndex
getRolesForEnvironment
IntSet
getRolesForEnvironment
(final int environment)
Method getRolesForEnvironment.
- Parameters:
final intenvironment
createEnvironmentSpawnParameters
EnvironmentSpawnParameters
createEnvironmentSpawnParameters
(final int environmentIndex, @Nullable final Environment environment)
Method createEnvironmentSpawnParameters.
- Parameters:
final intenvironmentIndex@Nullable final Environmentenvironment
EnvironmentSpawnParameters
new
EnvironmentSpawnParameters
((environment != null)
Method EnvironmentSpawnParameters.
- Parameters:
(environment !=null
getEnvironmentSpawnParameters
Method getEnvironmentSpawnParameters.
- Parameters:
final intenvironmentIndex
updateSpawnParameters
void
updateSpawnParameters
(final int environmentIndex, @Nullable final Environment environment)
Method updateSpawnParameters.
- Parameters:
final intenvironmentIndex@Nullable final Environmentenvironment
rebuildConfigurations
void
rebuildConfigurations
(@Nullable final IntSet changeSet)
Method rebuildConfigurations.
- Parameters:
@Nullable final IntSetchangeSet
WorldSpawnWrapper
new
WorldSpawnWrapper
(spawn)
Method WorldSpawnWrapper.
- Parameters:
spawnspawn
trackNPCs
void
trackNPCs
(@Nonnull final IntSet spawnConfigs)
Method trackNPCs.
- Parameters:
@Nonnull final IntSetspawnConfigs
untrackNPCs
void
untrackNPCs
(final int spawnConfig)
Method untrackNPCs.
- Parameters:
final intspawnConfig
onEnvironmentChanged
void
onEnvironmentChanged
()
Method onEnvironmentChanged.
onRoleRemoved
void
onRoleRemoved
(@Nonnull final World world, final int roleIndex, @Nonnull final IntSet environments)
Method onRoleRemoved.
- Parameters:
@Nonnull final Worldworldfinal introleIndex@Nonnull final IntSetenvironments
onRoleAdded
void
onRoleAdded
(@Nonnull final World world, final int roleIndex, @Nonnull final IntSet environments, final WorldSpawnWrapper spawnWrapper, @Nonnull final RoleSpawnParameters spawnParams)
Method onRoleAdded.
- Parameters:
@Nonnull final Worldworldfinal introleIndex@Nonnull final IntSetenvironmentsfinal WorldSpawnWrapperspawnWrapper@Nonnull final RoleSpawnParametersspawnParams
combinedIndex
long
combinedIndex
(final int npc, final int environment)
Method combinedIndex.
- Parameters:
final intnpcfinal intenvironment
haveCombination
boolean
haveCombination
(final int npc, final int environment)
Method haveCombination.
- Parameters:
final intnpcfinal intenvironment
addCombination
void
addCombination
(final int npc, final int environment, final int config)
Method addCombination.
- Parameters:
final intnpcfinal intenvironmentfinal intconfig
IntOpenHashSet
new
IntOpenHashSet
()
Method IntOpenHashSet.
removeCombination
void
removeCombination
(final int npc, final int environment)
Method removeCombination.
- Parameters:
final intnpcfinal intenvironment
getCombination
String
getCombination
(final int npc, final int environment)
Method getCombination.
- Parameters:
final intnpcfinal intenvironment