Class DirectFramebuffer

java.lang.Object
net.minestom.server.map.framebuffers.DirectFramebuffer
All Implemented Interfaces:
Framebuffer

public class DirectFramebuffer extends Object implements Framebuffer
Framebuffer with direct access to the colors array
  • Constructor Details

    • DirectFramebuffer

      public DirectFramebuffer()
  • Method Details

    • getColors

      public byte[] getColors()
      Mutable colors array
      Returns:
    • get

      public byte get(int x, int z)
    • set

      public DirectFramebuffer set(int x, int z, byte color)
    • toMapColors

      public byte[] toMapColors()
      Specified by:
      toMapColors in interface Framebuffer