Class NCountedPixelBuffer<T>
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.newsystem.bufferbundle.buffers.NBuffer
com.hypixel.hytale.builtin.hytalegenerator.newsystem.bufferbundle.buffers.NPixelBuffer<T>
com.hypixel.hytale.builtin.hytalegenerator.newsystem.bufferbundle.buffers.NCountedPixelBuffer<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 TypeFieldDescriptionstatic final Bounds3istatic final intprivate Tstatic final Vector3iprivate NCountedPixelBuffer.StateFields inherited from class com.hypixel.hytale.builtin.hytalegenerator.newsystem.bufferbundle.buffers.NPixelBuffer
SIZEFields 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 TypeMethodDescriptionvoidcopyFrom(NCountedPixelBuffer<T> sourceBuffer) getPixelContent(Vector3i position) private static intvoidsetPixelContent(Vector3i position, T value) private void
-
Field Details
-
BUFFER_SIZE_BITS
public static final int BUFFER_SIZE_BITS- See Also:
-
SIZE_VOXEL_GRID
-
BOUNDS_VOXEL_GRID
-
pixelType
-
state
-
countedArrayContents
-
singleValue
-
-
Constructor Details
-
NCountedPixelBuffer
-
-
Method Details
-
getPixelContent
- Specified by:
getPixelContentin classNPixelBuffer<T>
-
setPixelContent
- Specified by:
setPixelContentin classNPixelBuffer<T>
-
getPixelType
- Specified by:
getPixelTypein classNPixelBuffer<T>
-
getUniqueEntries
-
copyFrom
-
getMemoryUsage
-
switchFromSingleValueToArray
private void switchFromSingleValueToArray() -
index
-