Package org.bukkit.material

Examples of org.bukkit.material.Rails


   */
  public static void setRails(org.bukkit.block.Block rails, BlockFace direction) {
    Material type = rails.getType();
    if (type == Material.RAILS) {
      int olddata = getRawData(rails);
      Rails r = (Rails) MaterialUtil.getData(type, olddata);
      r.setDirection(FaceUtil.toRailsDirection(direction), r.isOnSlope());
      // If changed, update the data
      if (MaterialUtil.getRawData(r) != olddata) {
        setData(rails, r);
      }
    }
View Full Code Here

TOP

Related Classes of org.bukkit.material.Rails

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.