Package org.spout.api.material

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


  @Override
  public boolean onDestroy(Block block, Cause<?> cause) {
    block = block.translate(this.getFacing(block).getOpposite());
    BlockMaterial mat = block.getMaterial();
    if (mat instanceof PistonBlock) {
      return mat.onDestroy(block, cause);
    } else {
      return super.onDestroy(block, cause);
    }
  }
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.