Package se.llbit.chunky.map

Examples of se.llbit.chunky.map.WorldRenderer


    // we access ChunkMap via Chunky but here we also need to lock Chunky
    synchronized (chunky) {
    synchronized (this) {
      ChunkView mapView = chunky.getMapView();

      WorldRenderer renderer = chunky.getWorldRenderer();
      World world = chunky.getWorld();
      ChunkSelectionTracker selection = chunky.getChunkSelection();

      renderer.render(world, mapBuffer, Chunk.biomeRenderer, selection);
      mapBuffer.renderBuffered(g);

      renderer.renderPlayer(world, g, view, true);
      renderer.renderSpawn(world, g, view, true);

      // draw view rectangle
      g.setColor(Color.orange);
      g.drawRect(
          (int) FastMath.round(mapView.x0 - view.x0),
View Full Code Here

TOP

Related Classes of se.llbit.chunky.map.WorldRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.