Class DirectFramebuffer
java.lang.Object
net.minestom.server.map.framebuffers.DirectFramebuffer
- All Implemented Interfaces:
Framebuffer
Framebuffer
with direct access to the colors array-
Field Summary
Fields inherited from interface net.minestom.server.map.Framebuffer
HEIGHT, WIDTH
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.map.Framebuffer
preparePacket, preparePacket
-
Constructor Details
-
DirectFramebuffer
public DirectFramebuffer()
-
-
Method Details
-
getColors
public byte[] getColors()Mutable colors array- Returns:
-
get
public byte get(int x, int z) -
set
-
toMapColors
public byte[] toMapColors()- Specified by:
toMapColors
in interfaceFramebuffer
-