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 Type Method Description Framebuffer
createSubView(int left, int top)
Returns a newFramebuffer
that represent a 128x128 sub-view of this framebuffer.byte
getMapColor(int x, int y)
int
height()
default void
preparePacket(MapDataPacket packet, int left, int top)
Prepares the packet to render a 128x128 sub view of this framebufferint
width()
-
Method Details
-
width
int width() -
height
int height() -
createSubView
Returns a newFramebuffer
that 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- Parameters:
packet
- theMapDataPacket
to prepareleft
-top
-
-