Class LargeDirectFramebuffer

java.lang.Object
net.minestom.server.map.framebuffers.LargeDirectFramebuffer
All Implemented Interfaces:
LargeFramebuffer

public class LargeDirectFramebuffer extends Object implements LargeFramebuffer
LargeFramebuffer with direct access to the colors array.

This implementation does not throw errors when accessing out-of-bounds coordinates through sub-views, and will instead use MapColors.NONE. This is only the case for sub-views, access through setMapColor(int, int, byte) and getMapColor(int, int) will throw an exception if out-of-bounds coordinates are inputted.

  • Constructor Details

    • LargeDirectFramebuffer

      public LargeDirectFramebuffer(int width, int height)
      Creates a new LargeDirectFramebuffer with the desired size
      Parameters:
      width -
      height -
  • Method Details