@Override public RailLogic getLogic(MinecartMember<?> member, Block railsBlock) { // Get the direction of the rails to find out the logic to use BlockFace dir = Util.getPlateDirection(railsBlock); if (dir == BlockFace.SELF) { // set track direction based on direction of this cart dir = FaceUtil.toRailsDirection(member.getDirectionTo()); } return RailLogicHorizontal.get(dir); }
@Override public BlockFace getDirection(Block railsBlock) { return Util.getPlateDirection(railsBlock); }