NVoxelBuffer

public class NVoxelBuffer

Class NVoxelBuffer. Provides nvoxelbuffer functionality for the Hytale server.

java.lang.Object > NVoxelBuffer

Field Summary

state

private State state

Field state.

arrayContents

private ArrayContents arrayContents

Field arrayContents.

singleValue

private T singleValue

Field singleValue.

referenceBuffer

private NVoxelBuffer referenceBuffer

Field referenceBuffer.

size_bytes

final long size_bytes

Field size_bytes.

Method Detail

NVoxelBuffer

public public NVoxelBuffer (@Nonnull final Class voxelType)

Method NVoxelBuffer.

Parameters:
@Nonnull final Class voxelType

getVoxelContent

public T getVoxelContent (@Nonnull final Vector3i position)

Method getVoxelContent.

Parameters:
@Nonnull final Vector3i position

switch

public return switch (this.state.ordinal()

Method switch.

Parameters:
this.state.ordinal( this.state.ordinal(

getVoxelType

public Class getVoxelType ()

Method getVoxelType.

setVoxelContent

public void setVoxelContent (@Nonnull final Vector3i position, @Nullable final T value)

Method setVoxelContent.

Parameters:
@Nonnull final Vector3i position
@Nullable final T value

reference

public void reference (@Nonnull final NVoxelBuffer sourceBuffer)

Method reference.

Parameters:
@Nonnull final NVoxelBuffer sourceBuffer

lastReference

private NVoxelBuffer lastReference (@Nonnull NVoxelBuffer sourceBuffer)

Method lastReference.

Parameters:
@Nonnull NVoxelBuffer sourceBuffer

getMemoryUsage

public MemInstrument.Report getMemoryUsage ()

Method getMemoryUsage.

switchFromSingleValueToArray

private void switchFromSingleValueToArray ()

Method switchFromSingleValueToArray.

dereference

private void dereference ()

Method dereference.

index

static int index (@Nonnull final Vector3i position)

Method index.

Parameters:
@Nonnull final Vector3i position

ArrayContents

public public ArrayContents ()

Method ArrayContents.