Class NVoxelBuffer<T>
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.newsystem.bufferbundle.buffers.NBuffer
com.hypixel.hytale.builtin.hytalegenerator.newsystem.bufferbundle.buffers.NVoxelBuffer<T>
- All Implemented Interfaces:
MemInstrument
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static enumNested classes/interfaces inherited from interface com.hypixel.hytale.builtin.hytalegenerator.newsystem.performanceinstruments.MemInstrument
MemInstrument.Report -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NVoxelBuffer.ArrayContents<T> private static final Bounds3istatic final intprivate NVoxelBuffer<T> private Tstatic final Vector3iprivate NVoxelBuffer.StateFields inherited from interface com.hypixel.hytale.builtin.hytalegenerator.newsystem.performanceinstruments.MemInstrument
ARRAY_HEADER_SIZE, ARRAYLIST_OBJECT_SIZE, BOOLEAN_SIZE, BYTES_IN_MEGABYTES, CLASS_OBJECT_SIZE, DOUBLE_SIZE, HASHMAP_ENTRY_SIZE, INT_SIZE, OBJECT_HEADER_SIZE, OBJECT_REFERENCE_SIZE, VECTOR3D_SIZE, VECTOR3I_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidgetVoxelContent(Vector3i position) private static intprivate NVoxelBuffer<T> lastReference(NVoxelBuffer<T> sourceBuffer) voidreference(NVoxelBuffer<T> sourceBuffer) voidsetVoxelContent(Vector3i position, T value) private void
-
Field Details
-
BUFFER_SIZE_BITS
public static final int BUFFER_SIZE_BITS- See Also:
-
SIZE
-
bounds
-
voxelType
-
state
-
arrayContents
-
singleValue
-
referenceBuffer
-
-
Constructor Details
-
NVoxelBuffer
-
-
Method Details
-
getVoxelContent
-
getVoxelType
-
setVoxelContent
-
reference
-
lastReference
-
getMemoryUsage
-
switchFromSingleValueToArray
private void switchFromSingleValueToArray() -
dereference
private void dereference() -
index
-