Search in sources :

Example 1 with MapDataMessage

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()));
}
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