Examples of BlockMaterial


Examples of org.spout.api.material.BlockMaterial

    for (byte px = 0; px < 16; px++) {
      for (byte pz = 0; pz < 16; pz++) {
        for (byte py = -1; py < 4; py++) {
          final Block block = world.getBlock(x + px, y + py, z + pz);
          if (block.isAtSurface()) {
            final BlockMaterial material = block.getMaterial();
            if (material == VanillaMaterials.DIRT) {
              final BlockMaterial top;
              final Biome biome = block.getBiomeType();
              if (biome instanceof GrassyBiome) {
                top = ((GrassyBiome) biome).getGroundCover()[0].getMaterial(true);
              } else {
                top = VanillaMaterials.GRASS;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.