Package se.llbit.chunky.world

Examples of se.llbit.chunky.world.Chunk$Renderer


    for (ChunkPosition pos: buffer) {
      int x = pos.x;
      int z = pos.z;

      Chunk chunk = world.getChunk(pos);

      renderer.render(chunk, buffer, x, z);
      if (highlightEnabled) {
        chunk.renderHighlight(buffer, x, z,
            hlBlock, hlColor);
      }
      if (selection.isSelected(pos)) {
        buffer.fillRectAlpha(
            view.chunkScale * (x - view.px0),
View Full Code Here


      int bx = (int) QuickMath.floor((x-cx)*16);
      int bz = (int) QuickMath.floor((z-cz)*16);
      bx = Math.max(0, Math.min(Chunk.X_MAX-1, bx));
      bz = Math.max(0, Math.min(Chunk.Z_MAX-1, bz));
      ChunkPosition cp = ChunkPosition.get(cx, cz);
      Chunk hoveredChunk = chunky.getWorld().getChunk(cp);
      if (!hoveredChunk.isEmpty()) {
        mapLabel.setText(String.format("%s, biome: %s",
            ""+hoveredChunk.toString(),
            hoveredChunk.biomeAt(bx, bz)));
      } else {
        mapLabel.setText(hoveredChunk.toString());
      }
      return cp;
    }
View Full Code Here

TOP

Related Classes of se.llbit.chunky.world.Chunk$Renderer

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.