WorldSpawnManager

public class WorldSpawnManager extends SpawnManager

Class WorldSpawnManager. Provides worldspawnmanager functionality for the Hytale server.

java.lang.Object > SpawnManager > WorldSpawnManager

Field Summary

spawnWrapper

final WorldSpawnWrapper spawnWrapper

Field spawnWrapper.

environments

final IntSet environments

Field environments.

envConfigs

final EnvironmentSpawnParameters envConfigs

Field envConfigs.

spawn

final WorldNPCSpawn spawn

Field spawn.

npcs

final Int2ObjectMap npcs

Field npcs.

spawnConfigIndex

final int spawnConfigIndex

Field spawnConfigIndex.

npcIndex2

final int npcIndex2

Field npcIndex2.

roleSpawnParameters

final RoleSpawnParameters roleSpawnParameters

Field roleSpawnParameters.

environmentSpawnParameters

final EnvironmentSpawnParameters environmentSpawnParameters

Field environmentSpawnParameters.

spawnParameters

final EnvironmentSpawnParameters spawnParameters

Field spawnParameters.

store

final Store store

Field store.

worldSpawnData

final WorldSpawnData worldSpawnData

Field worldSpawnData.

npc

final NPCEntity npc

Field npc.

spawnConfiguration

final int spawnConfiguration

Field spawnConfiguration.

isTracked

final boolean isTracked

Field isTracked.

chunkStore

final Store chunkStore

Field chunkStore.

worldTimeResource

final WorldTimeResource worldTimeResource

Field worldTimeResource.

moonPhase

final int moonPhase

Field moonPhase.

spawnJobData

final SpawnJobData spawnJobData

Field spawnJobData.

worldEnvironmentSpawnStats

final WorldEnvironmentSpawnData worldEnvironmentSpawnStats

Field worldEnvironmentSpawnStats.

Method Detail

WorldSpawnManager

public public WorldSpawnManager ()

Method WorldSpawnManager.

removeSpawnWrapper

public WorldSpawnWrapper removeSpawnWrapper (final int spawnConfigurationIndex)

Method removeSpawnWrapper.

Parameters:
final int spawnConfigurationIndex

addSpawnWrapper

public boolean addSpawnWrapper (@Nonnull final WorldSpawnWrapper spawnWrapper)

Method addSpawnWrapper.

Parameters:
@Nonnull final WorldSpawnWrapper spawnWrapper

getRolesForEnvironment

public IntSet getRolesForEnvironment (final int environment)

Method getRolesForEnvironment.

Parameters:
final int environment

createEnvironmentSpawnParameters

public EnvironmentSpawnParameters createEnvironmentSpawnParameters (final int environmentIndex, @Nullable final Environment environment)

Method createEnvironmentSpawnParameters.

Parameters:
final int environmentIndex
@Nullable final Environment environment

EnvironmentSpawnParameters

public new EnvironmentSpawnParameters ((environment != null)

Method EnvironmentSpawnParameters.

Parameters:
(environment != null

getEnvironmentSpawnParameters

public EnvironmentSpawnParameters getEnvironmentSpawnParameters (final int environmentIndex)

Method getEnvironmentSpawnParameters.

Parameters:
final int environmentIndex

updateSpawnParameters

public void updateSpawnParameters (final int environmentIndex, @Nullable final Environment environment)

Method updateSpawnParameters.

Parameters:
final int environmentIndex
@Nullable final Environment environment

rebuildConfigurations

public void rebuildConfigurations (@Nullable final IntSet changeSet)

Method rebuildConfigurations.

Parameters:
@Nullable final IntSet changeSet

WorldSpawnWrapper

public new WorldSpawnWrapper (spawn)

Method WorldSpawnWrapper.

Parameters:
spawn spawn

trackNPCs

static void trackNPCs (@Nonnull final IntSet spawnConfigs)

Method trackNPCs.

Parameters:
@Nonnull final IntSet spawnConfigs

untrackNPCs

public void untrackNPCs (final int spawnConfig)

Method untrackNPCs.

Parameters:
final int spawnConfig

onEnvironmentChanged

static void onEnvironmentChanged ()

Method onEnvironmentChanged.

untrackNPC

static void untrackNPC (@Nonnull final World world, @Nonnull final NPCEntity npc)

Method untrackNPC.

Parameters:
@Nonnull final World world
@Nonnull final NPCEntity npc

onRoleRemoved

static void onRoleRemoved (@Nonnull final World world, final int roleIndex, @Nonnull final IntSet environments)

Method onRoleRemoved.

Parameters:
@Nonnull final World world
final int roleIndex
@Nonnull final IntSet environments

onRoleAdded

static 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 World world
final int roleIndex
@Nonnull final IntSet environments
final WorldSpawnWrapper spawnWrapper
@Nonnull final RoleSpawnParameters spawnParams

combinedIndex

static long combinedIndex (final int npc, final int environment)

Method combinedIndex.

Parameters:
final int npc
final int environment

haveCombination

private boolean haveCombination (final int npc, final int environment)

Method haveCombination.

Parameters:
final int npc
final int environment

addCombination

private void addCombination (final int npc, final int environment, final int config)

Method addCombination.

Parameters:
final int npc
final int environment
final int config

IntOpenHashSet

public new IntOpenHashSet ()

Method IntOpenHashSet.

removeCombination

private void removeCombination (final int npc, final int environment)

Method removeCombination.

Parameters:
final int npc
final int environment

getCombination

private String getCombination (final int npc, final int environment)

Method getCombination.

Parameters:
final int npc
final int environment