Package org.spout.vanilla.material

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


        if (mat instanceof TntBlock) {
          ((TntBlock) mat).onIgnite(sBlock, toCause(b)); // Ignite TntBlock
        } else if (mat instanceof VanillaBlockMaterial) {
          VanillaBlockMaterial sVanillaBlock = (VanillaBlockMaterial) mat; // Destroy vanilla blocks without drops
          sVanillaBlock.getDrops().clear();
          sVanillaBlock.destroy(sBlock, toCause(b));
        } else {
          sBlock.setMaterial(VanillaMaterials.AIR); // Set non vanilla blocks to air
        }
        // Put fire in it's place?
        if (rand.nextInt(blockData + 10) < 5 && hasBurningSource(sBlock) && !VanillaBlockMaterial.isRaining(sBlock)) {
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.