NSimplePixelBuffer

public class NSimplePixelBuffer

Class NSimplePixelBuffer. Provides nsimplepixelbuffer functionality for the Hytale server.

java.lang.Object > NSimplePixelBuffer

Field Summary

state

private State state

Field state.

arrayContents

private ArrayContents arrayContents

Field arrayContents.

singleValue

private T singleValue

Field singleValue.

size_bytes

final long size_bytes

Field size_bytes.

Method Detail

NSimplePixelBuffer

public public NSimplePixelBuffer (@Nonnull final Class pixelType)

Method NSimplePixelBuffer.

Parameters:
@Nonnull final Class pixelType

getPixelContent

public T getPixelContent (@Nonnull final Vector3i position)

Method getPixelContent.

Parameters:
@Nonnull final Vector3i position

switch

public return switch (this.state.ordinal()

Method switch.

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

setPixelContent

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

Method setPixelContent.

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

getPixelType

public Class getPixelType ()

Method getPixelType.

copyFrom

public void copyFrom (@Nonnull final NSimplePixelBuffer sourceBuffer)

Method copyFrom.

Parameters:
@Nonnull final NSimplePixelBuffer sourceBuffer

getMemoryUsage

public MemInstrument.Report getMemoryUsage ()

Method getMemoryUsage.

ensureContents

private void ensureContents ()

Method ensureContents.

switchFromSingleValueToArray

private void switchFromSingleValueToArray ()

Method switchFromSingleValueToArray.

index

static int index (@Nonnull final Vector3i position)

Method index.

Parameters:
@Nonnull final Vector3i position

ArrayContents

public public ArrayContents ()

Method ArrayContents.