SpawnSuppressionSystems

public class SpawnSuppressionSystems

Class SpawnSuppressionSystems. Provides spawnsuppressionsystems functionality for the Hytale server.

java.lang.Object > SpawnSuppressionSystems

Field Summary

suppressionId

final String suppressionId

Field suppressionId.

suppression

final SpawnSuppression suppression

Field suppression.

suppressedGroups

final int[] suppressedGroups

Field suppressedGroups.

set

final IntSet set

Field set.

radius

final double radius

Field radius.

position

final Vector3d position

Field position.

minChunkX

final int minChunkX

Field minChunkX.

minChunkZ

final int minChunkZ

Field minChunkZ.

maxChunkX

final int maxChunkX

Field maxChunkX.

maxChunkZ

final int maxChunkZ

Field maxChunkZ.

minY

final int minY

Field minY.

maxY

final int maxY

Field maxY.

chunkSuppressionMap

final Long2ObjectConcurrentHashMap chunkSuppressionMap

Field chunkSuppressionMap.

chunkIndex

final long chunkIndex

Field chunkIndex.

oldEntry

final ChunkSuppressionEntry oldEntry

Field oldEntry.

chunkEntry

final ChunkSuppressionEntry chunkEntry

Field chunkEntry.

chunkReference

final Ref chunkReference

Field chunkReference.

chunkSuppressionQueue

final ChunkSuppressionQueue chunkSuppressionQueue

Field chunkSuppressionQueue.

results

final ObjectList> results

Field results.

markerRef

final Ref markerRef

Field markerRef.

marker

final SpawnMarkerEntity marker

Field marker.

context

final HytaleLogger.Api context

Field context.

resource

final SpawnSuppressionController resource

Field resource.

store

final Store store

Field store.

suppressionController

final SpawnSuppressionController suppressionController

Field suppressionController.

removedAssets

final Set removedAssets

Field removedAssets.

chunkComponentStore

final ChunkStore chunkComponentStore

Field chunkComponentStore.

chunkStore

final Store chunkStore

Field chunkStore.

archetype

final Archetype archetype

Field archetype.

suppressor

final SpawnSuppressionComponent suppressor

Field suppressor.

transform

final TransformComponent transform

Field transform.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

fromExternal

final boolean fromExternal

Field fromExternal.

entry

final SpawnSuppressorEntry entry

Field entry.

uuid

final UUID uuid

Field uuid.

prev

final SpawnSuppressorEntry prev

Field prev.

oldSpans

final List oldSpans

Field oldSpans.

suppressedSpans

final ObjectArrayList suppressedSpans

Field suppressedSpans.

Method Detail

suppressSpawns

static void suppressSpawns (@Nonnull final ResourceType chunkSuppressionQueueResourceType, @Nonnull final ComponentType spawnMarkerEntityComponentType, final UUID uuid, @Nonnull final SpawnSuppressorEntry entry, @Nonnull final SpawnSuppressionController suppressionController, @Nonnull final Store store, @Nonnull final ChunkStore chunkComponentStore)

Method suppressSpawns.

Parameters:
@Nonnull final ResourceType chunkSuppressionQueueResourceType
@Nonnull final ComponentType spawnMarkerEntityComponentType
final UUID uuid
@Nonnull final SpawnSuppressorEntry entry
@Nonnull final SpawnSuppressionController suppressionController
@Nonnull final Store store
@Nonnull final ChunkStore chunkComponentStore

Load

public public Load (final ResourceType spawnSuppressionControllerResourceType, final ComponentType spawnMarkerEntityComponentType, final ResourceType chunkSuppressionQueueResourceType, final ComponentType chunkSuppressionEntryComponentType)

Method Load.

Parameters:
final ResourceType spawnSuppressionControllerResourceType
final ComponentType spawnMarkerEntityComponentType
final ResourceType chunkSuppressionQueueResourceType
final ComponentType chunkSuppressionEntryComponentType

EventRegistry

public new EventRegistry (new CopyOnWriteArrayList()

Method EventRegistry.

Parameters:
new CopyOnWriteArrayList(

onSystemAddedToStore

public void onSystemAddedToStore (@Nonnull final Store store)

Method onSystemAddedToStore.

Parameters:
@Nonnull final Store store

onSystemRemovedFromStore

public void onSystemRemovedFromStore (@Nonnull final Store store)

Method onSystemRemovedFromStore.

Parameters:
@Nonnull final Store store

onSystemUnregistered

public void onSystemUnregistered ()

Method onSystemUnregistered.

onSpawnSuppressionsLoaded

private void onSpawnSuppressionsLoaded (@Nonnull final LoadedAssetsEvent> event)

Method onSpawnSuppressionsLoaded.

Parameters:
@Nonnull final LoadedAssetsEvent> event

onSpawnSuppressionsRemoved

private void onSpawnSuppressionsRemoved (@Nonnull final RemovedAssetsEvent> event)

Method onSpawnSuppressionsRemoved.

Parameters:
@Nonnull final RemovedAssetsEvent> event

rebuildSuppressionMap

private void rebuildSuppressionMap (@Nonnull final World world, @Nonnull final Store store, @Nonnull final SpawnSuppressionController suppressionController)

Method rebuildSuppressionMap.

Parameters:
@Nonnull final World world
@Nonnull final Store store
@Nonnull final SpawnSuppressionController suppressionController

Suppressor

public public Suppressor (final ComponentType spawnSuppressorComponentType, final ResourceType spawnSuppressionControllerResourceType, final ComponentType spawnMarkerEntityComponentType, final ResourceType chunkSuppressionQueueResourceType, final ResourceType, EntityStore>> spawnMarkerSpatialResourceType)

Method Suppressor.

Parameters:
final ComponentType spawnSuppressorComponentType
final ResourceType spawnSuppressionControllerResourceType
final ComponentType spawnMarkerEntityComponentType
final ResourceType chunkSuppressionQueueResourceType
final ResourceType, EntityStore>> spawnMarkerSpatialResourceType

getQuery

public Query getQuery ()

Method getQuery.

getGroup

public SystemGroup getGroup ()

Method getGroup.

onEntityAdded

public void onEntityAdded (@Nonnull final Ref reference, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref reference
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

SpawnSuppressorEntry

public new SpawnSuppressorEntry (suppressor.getSpawnSuppression()

Method SpawnSuppressorEntry.

Parameters:
suppressor.getSpawnSuppression( suppressor.getSpawnSuppression(

IllegalStateException

public new IllegalStateException (String.format("A spawn suppressor with the ID %s is already registered.", uuid)

Method IllegalStateException.

Parameters:
String.format("A spawn suppressor with the ID %s is already registered."
uuid uuid

onEntityRemove

public void onEntityRemove (@Nonnull final Ref reference, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref reference
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

EnsureNetworkSendable

public public EnsureNetworkSendable ()

Method EnsureNetworkSendable.

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

NetworkId

public new NetworkId (store.getExternalData()

Method NetworkId.

Parameters:
store.getExternalData( store.getExternalData(

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store