Search in sources :

Example 1 with GlowMapCanvas

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()));
}
Also used : GlowMapCanvas(net.glowstone.map.GlowMapCanvas) MapDataMessage(net.glowstone.net.message.play.game.MapDataMessage)

Aggregations

GlowMapCanvas (net.glowstone.map.GlowMapCanvas)1 MapDataMessage (net.glowstone.net.message.play.game.MapDataMessage)1