Examples of RailLogic


Examples of com.bergerkiller.bukkit.tc.rails.logic.RailLogic

      next = pos.add(BlockFace.DOWN);
    } else {
      return null;
    }
    // Check for movement from sloped to vertical, and adjust the Y-position based on that
    RailLogic lastLogic = member.getRailTracker().getLastLogic();
    if (lastLogic.isSloped()) {
      if (lastLogic.getDirection() == member.getDirection().getOppositeFace()) {
        member.getEntity().loc.setY((double) next.y + 0.95);
      }
    }
    return next;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.