CachedPositionProvider

public class CachedPositionProvider extends PositionProvider

Class CachedPositionProvider. Provides cachedpositionprovider functionality for the Hytale server.

java.lang.Object > PositionProvider > CachedPositionProvider

Field Summary

threadData

private WorkerIndexer.Data threadData

Field threadData.

cachedData

final CacheThreadMemory cachedData

Field cachedData.

minSection

final Vector3i minSection

Field minSection.

maxSection

final Vector3i maxSection

Field maxSection.

sectionAddress

final Vector3i sectionAddress

Field sectionAddress.

key

final long key

Field key.

sectionMin

final Vector3d sectionMin

Field sectionMin.

sectionMax

final Vector3d sectionMax

Field sectionMax.

generatedPositions

final ArrayList generatedPositions

Field generatedPositions.

minInclusive

final Vector3d minInclusive

Field minInclusive.

maxExclusive

final Vector3d maxExclusive

Field maxExclusive.

obj

final ArrayList obj

Field obj.

childContext

final Context childContext

Field childContext.

removedKey

final long removedKey

Field removedKey.

vector3i

final Vector3i vector3i

Field vector3i.

vector3i2

final Vector3i vector3i2

Field vector3i2.

vector3i3

final Vector3i vector3i3

Field vector3i3.

address

final Vector3i address

Field address.

vector3d

final Vector3d vector3d

Field vector3d.

min

final Vector3d min

Field min.

vector3d2

final Vector3d vector3d2

Field vector3d2.

vector3d3

final Vector3d vector3d3

Field vector3d3.

Method Detail

CachedPositionProvider

public public CachedPositionProvider (@Nonnull final PositionProvider positionProvider, final int sectionSize, final int cacheSize, final boolean useInternalThreadData, final int threadCount)

Method CachedPositionProvider.

Parameters:
@Nonnull final PositionProvider positionProvider
final int sectionSize
final int cacheSize
final boolean useInternalThreadData
final int threadCount

CacheThreadMemory

public new CacheThreadMemory (cacheSize)

Method CacheThreadMemory.

Parameters:
cacheSize cacheSize

positionsIn

public void positionsIn (@Nonnull final Context context)

Method positionsIn.

Parameters:
@Nonnull final Context context

get

public void get (@Nonnull final Context context)

Method get.

Parameters:
@Nonnull final Context context

Context

public new Context (minInclusive, maxExclusive, (Consumer)

Method Context.

Parameters:
minInclusive minInclusive
maxExclusive maxExclusive
(Consumer (Consumer

sectionAddress

private Vector3i sectionAddress (@Nonnull final Vector3d pointer)

Method sectionAddress.

Parameters:
@Nonnull final Vector3d pointer

sectionMin

private Vector3d sectionMin (@Nonnull final Vector3i sectionAddress)

Method sectionMin.

Parameters:
@Nonnull final Vector3i sectionAddress

toSectionAddress

private int toSectionAddress (final double position)

Method toSectionAddress.

Parameters:
final double position

sectionFloor

public int sectionFloor (final int voxelAddress)

Method sectionFloor.

Parameters:
final int voxelAddress