Package org.spout.vanilla.data

Examples of org.spout.vanilla.data.RailsState


  public abstract RailsState getState(Block block);

  @Override
  public void onUpdate(BlockMaterial oldMaterial, Block block) {
    super.onUpdate(oldMaterial, block);
    RailsState state = this.getState(block);
    if (state.isSloped()) {
      // Check if the facing side is still supporting
      Block facing = block.translate(state.getDirections()[0]);
      BlockMaterial att = facing.getMaterial();
      if (att instanceof VanillaBlockMaterial) {
        if (((VanillaBlockMaterial) att).canSupport(this, BlockFace.TOP)) {
          return;
        }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.data.RailsState

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.