Class NSimplePixelBuffer<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.NSimplePixelBuffer<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 NSimplePixelBuffer.ArrayContents<T> private static final Bounds3iprivate Tprivate NSimplePixelBuffer.StateFields inherited from class com.hypixel.hytale.builtin.hytalegenerator.newsystem.bufferbundle.buffers.NPixelBuffer
BUFFER_SIZE_BITS, 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(NSimplePixelBuffer<T> sourceBuffer) private voidgetPixelContent(Vector3i position) private static intvoidsetPixelContent(Vector3i position, T value) private void
-
Field Details
-
bounds
-
pixelType
-
state
-
arrayContents
-
singleValue
-
-
Constructor Details
-
NSimplePixelBuffer
-
-
Method Details
-
getPixelContent
- Specified by:
getPixelContentin classNPixelBuffer<T>
-
setPixelContent
- Specified by:
setPixelContentin classNPixelBuffer<T>
-
getPixelType
- Specified by:
getPixelTypein classNPixelBuffer<T>
-
copyFrom
-
getMemoryUsage
-
ensureContents
private void ensureContents() -
switchFromSingleValueToArray
private void switchFromSingleValueToArray() -
index
-