Package org.spout.api.material

Examples of org.spout.api.material.BlockMaterial.destroy()


        if (b != null && b.getChunk().isLoaded()) {
          BlockMaterial mat = b.getMaterial();
          short data = b.getBlockData();
          if (mat.getId() == VanillaMaterials.LEAVES.getId() && !Leaves.isPlayerPlaced(data)) {
            if (!isLeafAttached(b, LOG_SCAN_RANGE)) {
              mat.destroy(b, new MaterialCause<Log>(this.cause, VanillaMaterials.LOG, this.center));
              found = true;
              blocks.set(index, null);
              break;
            }
          }
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.