use of net.glowstone.net.message.play.game.MapDataMessage 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