Examples of canSupport()


Examples of org.spout.vanilla.material.VanillaBlockMaterial.canSupport()

                Block block = region.getBlock(x, y - dy, z);
                BlockMaterial mat = block.getMaterial();
                if (mat instanceof VanillaBlockMaterial) {
                  VanillaBlockMaterial vbm = (VanillaBlockMaterial) mat;
                  //Place snow ontop of solid
                  if (vbm.canSupport(VanillaMaterials.SNOW, BlockFace.TOP)) {
                    Block above = block.translate(BlockFace.TOP);
                    if (!VanillaMaterials.SNOW.willMeltAt(above)) {
                      above.setMaterial(VanillaMaterials.SNOW);
                    }
                    return;
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.