Package net.minestom.server.map
Interface LargeFramebuffer
- All Known Implementing Classes:
LargeDirectFramebuffer,LargeGraphics2DFramebuffer
public interface LargeFramebuffer
Framebuffer that is meant to be split in sub-framebuffers.
Contrary to
Framebuffer, LargeFramebuffer supports sizes over 128x128 pixels.-
Method Summary
Modifier and TypeMethodDescriptioncreateSubView(int left, int top) Returns a newFramebufferthat represent a 128x128 sub-view of this framebuffer.bytegetMapColor(int x, int y) intheight()default MapDataPacketpreparePacket(int mapId, int left, int top) Prepares the packet to render a 128x128 sub view of this framebufferintwidth()
-
Method Details
-
width
int width() -
height
int height() -
createSubView
Returns a newFramebufferthat represent a 128x128 sub-view of this framebuffer. Implementations are free (but not guaranteed) to throw exceptions if left & top produces out-of-bounds coordinates.- Parameters:
left-top-- Returns:
- the sub-view
Framebuffer
-
getMapColor
byte getMapColor(int x, int y) -
preparePacket
Prepares the packet to render a 128x128 sub view of this framebuffer
-