use of net.glowstone.map.GlowMapCanvas in project Glowstone by GlowstoneMC.
the class GlowPlayer method sendMap.
@Override
public void sendMap(MapView map) {
GlowMapCanvas mapCanvas = GlowMapCanvas.createAndRender(map, this);
session.send(new MapDataMessage(map.getId(), map.getScale().ordinal(), Collections.emptyList(), mapCanvas.toSection()));
}
Aggregations