Package org.spout.api.material.block

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


    }

    //Redstone event
    BlockMaterial oldMat = event.getBlock().getMaterial();
    BlockMaterial newMat = event.getSnapshot().getMaterial();
    BlockSnapshot initialState = new BlockSnapshot(event.getBlock());
    //RedstoneChangeEvent
    //Three possibilities here:
    //1.) Redstone source material was placed, generating power
    //2.) Redstone source material was removed, removing power
    //3.) Redstone source material's data level changed, indicating change in power
View Full Code Here


    return false;
  }

  @Override
  public short getDirectRedstonePower(Block block, BlockFace direction, RedstonePowerMode powerMode) {
    return direction == BlockFace.BOTTOM ? getRedstonePowerStrength(new BlockSnapshot(block)) : 0;
  }
View Full Code Here

TOP

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

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.