Class VoxelBuffer<T>

java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.engine.bufferbundle.buffers.Buffer
com.hypixel.hytale.builtin.hytalegenerator.engine.bufferbundle.buffers.VoxelBuffer<T>
All Implemented Interfaces:
MemInstrument

public class VoxelBuffer<T> extends Buffer
  • Field Details

    • BUFFER_SIZE_BITS

      public static final int BUFFER_SIZE_BITS
      See Also:
    • SIZE

      @Nonnull public static final org.joml.Vector3i SIZE
  • Constructor Details

    • VoxelBuffer

      public VoxelBuffer(@Nonnull Class<T> voxelType)
  • Method Details

    • getVoxelContent

      @Nullable public T getVoxelContent(int x, int y, int z)
    • getVoxelContent

      @Nullable public T getVoxelContent(@Nonnull org.joml.Vector3i position)
    • getVoxelType

      @Nonnull public Class<T> getVoxelType()
    • setVoxelContent

      public void setVoxelContent(int x, int y, int z, @Nullable T value)
    • setVoxelContent

      public void setVoxelContent(@Nonnull org.joml.Vector3i position, @Nullable T value)
    • reference

      public void reference(@Nonnull VoxelBuffer<T> sourceBuffer)
    • getMemoryUsage

      @Nonnull public MemInstrument.Report getMemoryUsage()