Package org.spout.vanilla.material.block.attachable

Examples of org.spout.vanilla.material.block.attachable.Attachable


      if (face != BlockFace.BOTTOM && face != BlockFace.TOP) {
        directional.setFacing(block, BlockFace.fromYaw(face.getDirection().getAxesAngleDeg().getY()
            + rotation.getAxesAngleDeg().getY()));
      }
    } else if (material instanceof Attachable) {
      final Attachable attachable = (Attachable) material;
      final Block block = position.getWorld().getBlock(transformed);
      final BlockFace face = attachable.getAttachedFace(block);
      if (face != BlockFace.BOTTOM && face != BlockFace.TOP) {
        attachable.setAttachedFace(block, BlockFace.fromYaw(face.getDirection().getAxesAngleDeg().getY()
            + rotation.getAxesAngleDeg().getY()), null);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.material.block.attachable.Attachable

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.