Class Graphics2DFramebuffer
java.lang.Object
net.minestom.server.map.framebuffers.Graphics2DFramebuffer
- All Implemented Interfaces:
Framebuffer
Framebuffer
that embeds a BufferedImage, allowing for rendering directly via Graphics2D or its pixel 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
-
Graphics2DFramebuffer
public Graphics2DFramebuffer()
-
-
Method Details
-
getRenderer
-
getBackingImage
-
get
public int get(int x, int z) -
set
-
toMapColors
public byte[] toMapColors()- Specified by:
toMapColors
in interfaceFramebuffer
-