Package org.spout.api.material.block

Examples of org.spout.api.material.block.BlockFace


  public boolean extend(Block block) {
    int length = this.getExtendableLength(block);
    if (length != -1) {
      if (length > 0) {
        BlockFace facing = this.getFacing(block);
        MoveReaction reac;

        //the previous material
        BlockMaterial prevMat = VanillaMaterials.PISTON_EXTENSION;
        short prevData = (short) (block.getBlockData() & 0x7);
View Full Code Here


    return false;
  }

  public boolean retract(Block block) {
    if (this.isSticky()) {
      BlockFace facing = this.getFacing(block);
      Block next = block.translate(facing);
      if (this.isSticky()) {
        Block from = next.translate(facing);
        if (this.getReaction(from) == MoveReaction.ALLOW) {
          next.setMaterial(from.getMaterial());
View Full Code Here

TOP

Related Classes of org.spout.api.material.block.BlockFace

Copyright © 2018 www.massapicom. 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.